Skip to content

Commit 5114b09

Browse files
authored
Merge pull request #1287 from stackhpc/2024.1-2023.1-merge
2024.1: 2023.1 merge
2 parents c28bb98 + 06d6ca3 commit 5114b09

19 files changed

+280
-22
lines changed

.github/path-filters.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file is a list of path filters for the PR workflow in .github/workflows/stackhpc-pull-request.yml.
2-
aio:
2+
aio: &aio
33
- '.automation'
44
- '.automation.conf/config.sh'
55
- '.automation.conf/tempest/load-lists/default'
@@ -20,6 +20,11 @@ aio:
2020
- 'kayobe-env'
2121
- 'requirements.txt'
2222
- 'terraform/aio/**'
23-
check-tags:
23+
check-tags: &check-tags
2424
- '.github/workflows/stackhpc-check-tags.yml'
2525
- 'etc/kayobe/kolla-image-tags.yml'
26+
- 'etc/kayobe/pulp.yml'
27+
- 'tools/kolla-images.py'
28+
build-kayobe-image:
29+
- *aio
30+
- *check-tags

.github/workflows/multinode-inputs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ class Scenario:
3333
UBUNTU_JAMMY = OSRelease("ubuntu", "jammy", "ubuntu")
3434
# NOTE(upgrade): Add supported releases here.
3535
OPENSTACK_RELEASES = [
36-
OpenStackRelease("2023.1", "zed", [ROCKY_9, UBUNTU_JAMMY])
36+
OpenStackRelease("2024.1", "2023.1", [ROCKY_9, UBUNTU_JAMMY]),
37+
OpenStackRelease("2023.1", "zed", [ROCKY_9, UBUNTU_JAMMY]),
3738
]
3839
NEUTRON_PLUGINS = ["ovs", "ovn"]
3940

.github/workflows/stackhpc-check-tags.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ jobs:
4646
run: |
4747
docker image pull $KAYOBE_IMAGE
4848
49+
- name: Check kolla-images.py image map and tag hierarchy
50+
run: |
51+
docker run -t --rm \
52+
-v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
53+
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
54+
$KAYOBE_IMAGE \
55+
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh \
56+
'$KAYOBE_CONFIG_PATH/ansible/check-kolla-images-py.yml'
57+
4958
- name: Check container image tags
5059
run: |
5160
docker run -t --rm \

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
name: Multinode periodic
3636
needs:
3737
- generate-inputs
38-
uses: stackhpc/stackhpc-openstack-gh-workflows/.github/workflows/multinode.yml@1.0.1
38+
uses: stackhpc/stackhpc-openstack-gh-workflows/.github/workflows/multinode.yml@1.1.0
3939
with:
4040
multinode_name: mn-prdc-${{ github.run_id }}
4141
os_distribution: ${{ needs.generate-inputs.outputs.os_distribution }}

.github/workflows/stackhpc-multinode.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ name: Multinode
5252
jobs:
5353
multinode:
5454
name: Multinode
55-
uses: stackhpc/stackhpc-openstack-gh-workflows/.github/workflows/multinode.yml@1.0.1
55+
uses: stackhpc/stackhpc-openstack-gh-workflows/.github/workflows/multinode.yml@1.1.0
5656
with:
5757
multinode_name: ${{ inputs.multinode_name }}
5858
os_distribution: ${{ inputs.os_distribution }}

.github/workflows/stackhpc-pull-request.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
2121
outputs:
2222
aio: ${{ steps.changes.outputs.aio }}
23+
build-kayobe-image: ${{ steps.changes.outputs.build-kayobe-image }}
2324
check-tags: ${{ steps.changes.outputs.check-tags }}
2425
steps:
2526
- name: GitHub Checkout
@@ -74,7 +75,7 @@ jobs:
7475
- check-changes
7576
uses: ./.github/workflows/stackhpc-build-kayobe-image.yml
7677
with:
77-
if: ${{ needs.check-changes.outputs.aio == 'true' }}
78+
if: ${{ needs.check-changes.outputs.build-kayobe-image == 'true' }}
7879
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
7980

8081
check-tags:
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
- name: Check kolla-images.py image map and tag hierarchy
3+
hosts: localhost
4+
gather_facts: false
5+
tasks:
6+
- name: Create a temporary directory
7+
ansible.builtin.tempfile:
8+
state: directory
9+
suffix: kolla-ansible
10+
register: tempdir_result
11+
12+
- name: Clone Kolla Ansible repository
13+
ansible.builtin.git:
14+
repo: "{{ stackhpc_kolla_ansible_source_url }}"
15+
version: "{{ stackhpc_kolla_ansible_source_version }}"
16+
dest: "{{ tempdir_result.path }}"
17+
18+
- name: Check image mapping
19+
ansible.builtin.command:
20+
cmd: >-
21+
{{ kayobe_config_path }}/../../tools/kolla-images.py
22+
check-image-map
23+
--kolla-ansible-path {{ tempdir_result.path }}
24+
25+
- name: Check tag hierarchy
26+
ansible.builtin.command:
27+
cmd: >-
28+
{{ kayobe_config_path }}/../../tools/kolla-images.py
29+
check-hierarchy
30+
--kolla-ansible-path {{ tempdir_result.path }}
31+
32+
- name: Remove temporary directory
33+
ansible.builtin.file:
34+
path: "{{ tempdir_result.path }}"
35+
state: absent

etc/kayobe/ansible/check-tags.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- name: Check whether tags exist in Pulp container registry
66
hosts: localhost
7+
gather_facts: false
78
tasks:
89
- name: Query images and tags
910
command:

etc/kayobe/ansible/fix-hostname.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,10 @@
2121
cmd: hostnamectl set-hostname "{{ inventory_hostname }}"
2222
when: current_hostname.stdout != inventory_hostname
2323
become: true
24+
25+
- name: Reboot hosts
26+
import_playbook: "{{ playbook_dir | realpath }}/reboot.yml"
27+
vars:
28+
reboot_hosts: fix-hostname
29+
reboot_with_bootstrap_user: true
30+
when: current_hostname.stdout != inventory_hostname

etc/kayobe/ansible/growroot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
vars:
7676
pv: "{{ pvs.stdout | from_json }}"
7777
disk_tmp: "{{ pv.report[0].pv[0].pv_name[:-1] }}"
78-
disk: "{{ disk_tmp[:-1] if disk_tmp[-1] == 'p' and disk_tmp[:9] == '/dev/nvme' else disk_tmp }}"
78+
disk: "{{ disk_tmp[:-1] if pv.report[0].pv[0].pv_name | regex_search('[a-z0-9]+[0-9]+p[0-9]+') else disk_tmp }}"
7979
part_num: "{{ pv.report[0].pv[0].pv_name[-1] }}"
8080
become: true
8181
failed_when: "growpart.rc != 0 and 'NOCHANGE' not in growpart.stdout"

0 commit comments

Comments
 (0)