@@ -31,16 +31,16 @@ class Scenario:
3131
3232
3333ROCKY_9 = OSRelease ("rocky" , "9" , "cloud-user" )
34+ ROCKY_10 = OSRelease ("rocky" , "10" , "cloud-user" )
3435UBUNTU_JAMMY = OSRelease ("ubuntu" , "jammy" , "ubuntu" )
3536UBUNTU_NOBLE = OSRelease ("ubuntu" , "noble" , "ubuntu" )
3637# NOTE(upgrade): Add supported releases here.
3738OPENSTACK_RELEASES = [
38- OpenStackRelease ("2024.1" , "2023.1 " , [ROCKY_9 , UBUNTU_JAMMY ]),
39+ OpenStackRelease ("2024.1" , "" , [ROCKY_9 , UBUNTU_JAMMY ]),
3940 OpenStackRelease ("2025.1" , "2024.1" , [ROCKY_9 , UBUNTU_NOBLE ]),
41+ OpenStackRelease ("2025.1" , "" , [ROCKY_10 ]),
4042]
4143NEUTRON_PLUGINS = ["ovs" , "ovn" ]
42- VERSION_HIERARCHY = ["2023.1" , "2024.1" , "2025.1" ]
43-
4444
4545def main () -> None :
4646
@@ -75,12 +75,12 @@ def random_scenario() -> Scenario:
7575 openstack_release = random .choice (OPENSTACK_RELEASES )
7676 os_release = random .choice (openstack_release .os_releases )
7777 neutron_plugin = random .choice (NEUTRON_PLUGINS )
78- upgrade = "major" if random .random () > 0.6 else "none"
78+ upgrade = "major" if ( random .random () > 0.6 and openstack_release . previous_version != "" ) else "none"
7979 return Scenario (openstack_release , os_release , neutron_plugin , upgrade )
8080
8181
8282def get_branch (version : str ) -> str :
83- return f"stackhpc/{ version } "
83+ return f"stackhpc/{ version } " if version != "" else ""
8484
8585
8686def get_tkm_version (version : str ) -> str :
0 commit comments