Skip to content

Commit 63e3e84

Browse files
authored
Merge branch 'stackhpc/2025.1' into epoxy_bump_capi_driver
2 parents b4dd720 + f7e8c94 commit 63e3e84

File tree

6 files changed

+33
-9
lines changed

6 files changed

+33
-9
lines changed

.github/workflows/multinode-inputs.py

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class OSRelease:
1717
@dataclass
1818
class OpenStackRelease:
1919
version: str
20-
previous_version: str
2120
os_releases: t.List[OSRelease]
2221

2322

@@ -34,11 +33,12 @@ class Scenario:
3433
UBUNTU_NOBLE = OSRelease("ubuntu", "noble", "ubuntu")
3534
# NOTE(upgrade): Add supported releases here.
3635
OPENSTACK_RELEASES = [
37-
OpenStackRelease("2023.1", "zed", [ROCKY_9, UBUNTU_JAMMY]),
38-
OpenStackRelease("2024.1", "2023.1", [ROCKY_9, UBUNTU_JAMMY]),
39-
OpenStackRelease("2025.1", "2024.1", [ROCKY_9, UBUNTU_NOBLE]),
36+
OpenStackRelease("2023.1", [ROCKY_9, UBUNTU_JAMMY]),
37+
OpenStackRelease("2024.1", [ROCKY_9, UBUNTU_JAMMY]),
38+
OpenStackRelease("2025.1", [ROCKY_9, UBUNTU_NOBLE]),
4039
]
4140
NEUTRON_PLUGINS = ["ovs", "ovn"]
41+
VERSION_HIERARCHY = ["zed", "2023.1", "2024.1", "2025.1"]
4242

4343

4444
def main() -> None:
@@ -52,13 +52,20 @@ def random_scenario() -> Scenario:
5252
openstack_release = random.choice(OPENSTACK_RELEASES)
5353
os_release = random.choice(openstack_release.os_releases)
5454
neutron_plugin = random.choice(NEUTRON_PLUGINS)
55-
upgrade = 'major' if random.random() > 0.6 else 'none'
55+
upgrade = "major" if random.random() > 0.6 else "none"
5656
return Scenario(openstack_release, os_release, neutron_plugin, upgrade)
5757

5858

5959
def generate_inputs(scenario: Scenario) -> t.Dict[str, str]:
6060
branch = get_branch(scenario.openstack_release.version)
61-
previous_branch = get_branch(scenario.openstack_release.previous_version)
61+
previous_branch = get_branch(
62+
VERSION_HIERARCHY[
63+
VERSION_HIERARCHY.index(scenario.openstack_release.version) - 1
64+
]
65+
)
66+
terraform_kayobe_multinode_version = get_tkm_version(
67+
scenario.openstack_release.version
68+
)
6269
inputs = {
6370
"os_distribution": scenario.os_release.distribution,
6471
"os_release": scenario.os_release.release,
@@ -67,6 +74,7 @@ def generate_inputs(scenario: Scenario) -> t.Dict[str, str]:
6774
"upgrade": scenario.upgrade,
6875
"stackhpc_kayobe_config_version": branch,
6976
"stackhpc_kayobe_config_previous_version": previous_branch,
77+
"terraform_kayobe_multinode_version": terraform_kayobe_multinode_version,
7078
}
7179
return inputs
7280

@@ -75,6 +83,13 @@ def get_branch(version: str) -> str:
7583
return f"stackhpc/{version}"
7684

7785

86+
def get_tkm_version(version: str) -> str:
87+
if version in ["zed", "2023.1"]:
88+
return "ea61ea1730e179e05e8f0e58b759267664c555e7"
89+
else:
90+
return "main"
91+
92+
7893
def write_output(name: str, value: str) -> None:
7994
print(f"{name}={value}")
8095

.github/workflows/stackhpc-multinode-periodic.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
upgrade: ${{ steps.generate-inputs.outputs.upgrade }}
2020
stackhpc_kayobe_config_version: ${{ steps.generate-inputs.outputs.stackhpc_kayobe_config_version }}
2121
stackhpc_kayobe_config_previous_version: ${{ steps.generate-inputs.outputs.stackhpc_kayobe_config_previous_version }}
22+
terraform_kayobe_multinode_version: ${{ steps.generate-inputs.outputs.terraform_kayobe_multinode_version }}
2223
steps:
2324
- name: Checkout
2425
uses: actions/checkout@v4
@@ -45,6 +46,7 @@ jobs:
4546
upgrade: ${{ needs.generate-inputs.outputs.upgrade }}
4647
stackhpc_kayobe_config_version: ${{ needs.generate-inputs.outputs.stackhpc_kayobe_config_version }}
4748
stackhpc_kayobe_config_previous_version: ${{ needs.generate-inputs.outputs.stackhpc_kayobe_config_previous_version }}
49+
terraform_kayobe_multinode_version: ${{ needs.generate-inputs.outputs.terraform_kayobe_multinode_version }}
4850
enable_slack_alert: true
4951
secrets: inherit
5052
if: github.repository == 'stackhpc/stackhpc-kayobe-config'

etc/kayobe/kolla-image-tags.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ kolla_image_tags:
66
openstack:
77
rocky-9: 2025.1-rocky-9-20250730T105631
88
ubuntu-noble: 2025.1-ubuntu-noble-20250730T105631
9+
keystone:
10+
rocky-9: 2025.1-rocky-9-20250805T134044
11+
ubuntu-noble: 2025.1-ubuntu-noble-20250805T134044
912
magnum:
1013
rocky-9: 2025.1-rocky-9-20250805T095746
1114
ubuntu-noble: 2025.1-ubuntu-noble-20250805T095746

etc/kayobe/kolla.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ kolla_sources:
135135
type: git
136136
location: https://github.com/stackhpc/stackhpc-inspector-plugins.git
137137
reference: 1.3.0
138+
keystone-base:
139+
type: git
140+
location: https://github.com/stackhpc/keystone.git
141+
reference: stackhpc/{{ openstack_release }}
138142
magnum-base:
139143
type: git
140144
location: https://github.com/stackhpc/magnum.git

etc/kayobe/stackhpc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ stackhpc_repo_elrepo_9_version: "{{ stackhpc_repo_distribution }}"
149149

150150
# Kolla source repository.
151151
stackhpc_kolla_source_url: "https://github.com/stackhpc/kolla"
152-
stackhpc_kolla_source_version: stackhpc/20.1.0.6
152+
stackhpc_kolla_source_version: stackhpc/20.1.0.7
153153

154154
# Kolla Ansible source repository.
155155
stackhpc_kolla_ansible_source_url: "https://github.com/stackhpc/kolla-ansible"
156-
stackhpc_kolla_ansible_source_version: stackhpc/20.1.0.5
156+
stackhpc_kolla_ansible_source_version: stackhpc/20.1.0.6
157157

158158
###############################################################################
159159
# Container image registry

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
kayobe@git+https://github.com/stackhpc/kayobe@stackhpc/18.1.0.6
1+
kayobe@git+https://github.com/stackhpc/kayobe@stackhpc/18.1.0.7
22
ansible-modules-hashivault>=5.3.0
33
pulp-glue<0.32,>=0.29.2
44
jmespath

0 commit comments

Comments
 (0)