Browse code

Merge "add big warning for extras.d usage"

Jenkins authored on 2015/10/08 14:42:48
Showing 1 changed files
... ...
@@ -179,6 +179,12 @@ function die_if_not_set {
179 179
     $xtrace
180 180
 }
181 181
 
182
+function deprecated {
183
+    local text=$1
184
+    DEPRECATED_TEXT+="\n$text"
185
+    echo "WARNING: $text"
186
+}
187
+
182 188
 # Prints line number and "message" in error format
183 189
 # err $LINENO "message"
184 190
 function err {
... ...
@@ -1699,6 +1705,16 @@ function run_phase {
1699 1699
     if [[ -d $TOP_DIR/extras.d ]]; then
1700 1700
         for i in $TOP_DIR/extras.d/*.sh; do
1701 1701
             [[ -r $i ]] && source $i $mode $phase
1702
+            # NOTE(sdague): generate a big warning about using
1703
+            # extras.d in an unsupported way which will let us track
1704
+            # unsupported usage in the gate.
1705
+            local exceptions="50-ironic.sh 60-ceph.sh 80-tempest.sh"
1706
+            local extra=$(basename $i)
1707
+            if [[ ! ( $exceptions =~ "$extra" ) ]]; then
1708
+                deprecated "extras.d support is being removed in Mitaka-1"
1709
+                deprecated "jobs for project $extra will break after that point"
1710
+                deprecated "please move project to a supported devstack plugin model"
1711
+            fi
1702 1712
         done
1703 1713
     fi
1704 1714
     # the source phase corresponds to settings loading in plugins