Browse Source

Add newton->ocata undercloud upgrades to unsupported list

Change-Id: I4c8f389978717848e755f12856dd454d605c9137
master
John Trowbridge 1 year ago
parent
commit
f76569c23b

+ 4
- 0
scripts/emit_releases_file/emit_releases_file.py View File

@@ -79,6 +79,10 @@ def compose_releases_dictionary(stable_release, featureset):
79 79
             stable_release == RELEASES[0]:
80 80
         raise RuntimeError("Cannot upgrade to {}".format(RELEASES[0]))
81 81
 
82
+    if featureset.get('undercloud_upgrade') and stable_release == 'ocata':
83
+        raise RuntimeError("Undercloud upgrades are not supported from "
84
+                           "newton to ocata")
85
+
82 86
     if featureset.get('overcloud_upgrade') and \
83 87
        featureset.get('undercloud_upgrade'):
84 88
         raise RuntimeError("This tool currently only supports upgrading the "

+ 10
- 0
scripts/emit_releases_file/test_unsupported_upgrades.py View File

@@ -25,6 +25,16 @@ def test_only_mixed_overcloud_upgrades_are_supported():
25 25
         compose_releases_dictionary(stable_release, featureset)
26 26
 
27 27
 
28
+def test_undercloud_upgrades_from_newton_to_ocata_are_unsupported():
29
+    featureset = {
30
+        'undercloud_upgrade': True,
31
+    }
32
+
33
+    stable_release = 'ocata'
34
+    with pytest.raises(RuntimeError):
35
+        compose_releases_dictionary(stable_release, featureset)
36
+
37
+
28 38
 @pytest.mark.parametrize('upgrade_type',
29 39
                          ['ffu_overcloud_upgrade', 'overcloud_upgrade'])
30 40
 def test_overcloud_upgrades_has_to_be_mixed(upgrade_type):

Loading…
Cancel
Save