Skip to content

Commit 8c0039d

Browse files
committed
Merge branch 'stackhpc/2024.1' into 2024.1-ansible-lint-alex
2 parents f45dcd4 + 1c5d937 commit 8c0039d

19 files changed

+3094
-3110
lines changed

.github/auto-label.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
path:
3+
pullrequest: true
4+
paths:
5+
doc: 'documentation'
6+
.github: 'workflows'
7+
terraform: 'workflows'
8+
etc:
9+
kayobe:
10+
enviromnents:
11+
ci-aio: 'workflows'
12+
ci-builder: 'workflows'
13+
ci-multinode: 'workflows'
14+
trivy: 'workflows'
15+
ansible: 'ansible'
16+
kolla:
17+
config:
18+
grafana: "monitoring"
19+
prometheus: "monitoring"
20+
fluentd: "monitoring"
21+
22+
staleness:
23+
pullrequest: true
24+
25+
requestsize:
26+
enabled: true

.github/workflows/overcloud-host-image-build.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,11 @@ jobs:
239239
source venvs/kayobe/bin/activate &&
240240
source src/kayobe-config/kayobe-env --environment ci-builder &&
241241
kayobe playbook run \
242-
src/kayobe-config/etc/kayobe/ansible/pulp-host-image-upload.yml \
243-
-e image_path=/opt/kayobe/images/overcloud-rocky-9 \
244-
-e host_image_tag=${{ steps.host_image_tag.outputs.host_image_tag }} \
242+
src/kayobe-config/etc/kayobe/ansible/pulp-artifact-upload.yml \
243+
-e artifact_path=/opt/kayobe/images/overcloud-rocky-9 \
244+
-e artifact_tag=${{ steps.host_image_tag.outputs.host_image_tag }} \
245+
-e artifact_type="kayobe-images" \
246+
-e file_regex="*.qcow2" \
245247
-e os_distribution="rocky" \
246248
-e os_release="9"
247249
env:
@@ -291,9 +293,11 @@ jobs:
291293
source venvs/kayobe/bin/activate &&
292294
source src/kayobe-config/kayobe-env --environment ci-builder &&
293295
kayobe playbook run \
294-
src/kayobe-config/etc/kayobe/ansible/pulp-host-image-upload.yml \
295-
-e image_path=/opt/kayobe/images/overcloud-ubuntu-jammy \
296-
-e host_image_tag=${{ steps.host_image_tag.outputs.host_image_tag }} \
296+
src/kayobe-config/etc/kayobe/ansible/pulp-artifact-upload.yml \
297+
-e artifact_path=/opt/kayobe/images/overcloud-ubuntu-jammy \
298+
-e artifact_tag=${{ steps.host_image_tag.outputs.host_image_tag }} \
299+
-e artifact_type="kayobe-images" \
300+
-e file_regex="*.qcow2" \
297301
-e os_distribution="ubuntu" \
298302
-e os_release="jammy"
299303
env:

.github/workflows/overcloud-host-image-promote.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ jobs:
7676
source venvs/kayobe/bin/activate &&
7777
source src/kayobe-config/kayobe-env --environment ci-builder &&
7878
kayobe playbook run \
79-
src/kayobe-config/etc/kayobe/ansible/pulp-host-image-promote.yml \
80-
-e image_path='/opt/kayobe/images/overcloud-rocky-linux-9' \
79+
src/kayobe-config/etc/kayobe/ansible/pulp-artifact-promote.yml \
80+
-e artifact_type="kayobe-images" \
8181
-e os_distribution='rocky' \
8282
-e os_release='9'
8383
env:
84-
OVERCLOUD_HOST_IMAGE_TAG: ${{ inputs.image_tag }}
84+
ARTIFACT_TAG: ${{ inputs.image_tag }}
8585
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
8686
if: inputs.rocky9
8787

@@ -90,11 +90,11 @@ jobs:
9090
source venvs/kayobe/bin/activate &&
9191
source src/kayobe-config/kayobe-env --environment ci-builder &&
9292
kayobe playbook run \
93-
src/kayobe-config/etc/kayobe/ansible/pulp-host-image-promote.yml \
94-
-e image_path='/opt/kayobe/images/overcloud-ubuntu-jammy' \
93+
src/kayobe-config/etc/kayobe/ansible/pulp-artifact-promote.yml \
94+
-e artifact_type="kayobe-images" \
9595
-e os_distribution='ubuntu' \
9696
-e os_release='jammy'
9797
env:
98-
OVERCLOUD_HOST_IMAGE_TAG: ${{ inputs.image_tag }}
98+
ARTIFACT_TAG: ${{ inputs.image_tag }}
9999
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
100100
if: inputs.ubuntu-jammy

doc/source/operations/upgrading-openstack.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ The ``neutron_dns_domain`` must end with a period ``.`` e.g. ``example.com.``.
110110
The domain set should be something that is not use anywhere else such as
111111
``internal.compute.example.com.``
112112

113-
The Neuron DNS integration can be disabled by setting
113+
The Neutron DNS integration can be disabled by setting
114114
``neutron_dns_integration: false`` in ``kolla/globals.yml``
115115

116116
Redis Default User

etc/kayobe/ansible/pulp-host-image-promote.yml renamed to etc/kayobe/ansible/pulp-artifact-promote.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
---
2-
# Tag is the version of the image to promote, stored in an env variable named OVERCLOUD_HOST_IMAGE_TAG
3-
- name: Promote an image to production
2+
# Tag is the version of the artifact to promote, stored in an env variable named ARTIFACT_TAG
3+
- name: Promote an artifact to production
44
hosts: localhost
55
vars:
66
remote_pulp_url: "{{ stackhpc_release_pulp_url }}"
7-
remote_pulp_username: "{{ stackhpc_image_repository_username }}"
8-
remote_pulp_password: "{{ stackhpc_image_repository_password }}"
9-
repository_name: kayobe-images-{{ openstack_release }}-{{ os_distribution }}-{{ os_release }}
10-
base_path: kayobe-images/{{ openstack_release }}/{{ os_distribution }}/{{ os_release }}
11-
promotion_tag: "{{ lookup('env', 'OVERCLOUD_HOST_IMAGE_TAG') }}"
7+
remote_pulp_username: "{{ stackhpc_release_pulp_username }}"
8+
remote_pulp_password: "{{ stackhpc_release_pulp_password }}"
9+
repository_name: "{{ artifact_type }}-{{ openstack_release }}-{{ os_distribution }}-{{ os_release }}"
10+
pulp_base_path: "{{ artifact_type }}/{{ openstack_release }}/{{ os_distribution }}/{{ os_release }}"
11+
promotion_tag: "{{ lookup('env', 'ARTIFACT_TAG') }}"
1212
tasks:
13-
- name: Check whether the image exists
13+
- name: Check whether the artifact exists
1414
pulp.squeezer.file_distribution:
1515
pulp_url: "{{ remote_pulp_url }}"
1616
username: "{{ remote_pulp_username }}"
1717
password: "{{ remote_pulp_password }}"
1818
name: "{{ repository_name }}_{{ promotion_tag }}"
19-
base_path: "{{ base_path }}/{{ promotion_tag }}"
19+
base_path: "{{ pulp_base_path }}/{{ promotion_tag }}"
2020
register: distribution_details
2121
until: distribution_details is success
2222
retries: 3
2323
delay: 5
2424

25-
- name: Fail if the image does not exist
25+
- name: Fail if the artifact does not exist
2626
ansible.builtin.fail:
27-
msg: Image {{ promotion_tag }} does not exist
27+
msg: "artifact {{ promotion_tag }} does not exist"
2828
when: distribution_details.distribution is none
2929

3030
- name: Ensure production content guard is set
@@ -33,7 +33,7 @@
3333
username: "{{ remote_pulp_username }}"
3434
password: "{{ remote_pulp_password }}"
3535
name: "{{ repository_name }}_{{ promotion_tag }}"
36-
base_path: "{{ base_path }}/{{ promotion_tag }}"
36+
base_path: "{{ pulp_base_path }}/{{ promotion_tag }}"
3737
content_guard: release
3838
state: present
3939
register: content_guard_result

etc/kayobe/ansible/pulp-host-image-upload.yml renamed to etc/kayobe/ansible/pulp-artifact-upload.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---
2-
- name: Upload and create a distribution for an image
2+
- name: Upload and create a distribution for an artifact
33
hosts: seed
44
vars:
55
remote_pulp_url: "{{ stackhpc_release_pulp_url }}"
6-
remote_pulp_username: "{{ stackhpc_image_repository_username }}"
7-
remote_pulp_password: "{{ stackhpc_image_repository_password }}"
8-
repository_name: kayobe-images-{{ openstack_release }}-{{ os_distribution }}-{{ os_release }}
9-
pulp_base_path: kayobe-images/{{ openstack_release }}/{{ os_distribution }}/{{ os_release }}
6+
remote_pulp_username: "{{ stackhpc_release_pulp_username }}"
7+
remote_pulp_password: "{{ stackhpc_release_pulp_password }}"
8+
repository_name: "{{ artifact_type }}-{{ openstack_release }}-{{ os_distribution }}-{{ os_release }}"
9+
pulp_base_path: "{{ artifact_type }}/{{ openstack_release }}/{{ os_distribution }}/{{ os_release }}"
1010
tasks:
11-
- name: Print image tag
11+
- name: Print artifact tag
1212
ansible.builtin.debug:
13-
msg: "Image tag: {{ host_image_tag }}"
13+
msg: "artifact tag: {{ artifact_tag }}"
1414

1515
- name: Get filename
1616
ansible.builtin.find:
17-
paths: "{{ image_path }}"
18-
patterns: "*.qcow2"
17+
paths: "{{ artifact_path }}"
18+
patterns: "{{ file_regex }}"
1919
register: found_files
2020

2121
- name: Upload an artifact
@@ -109,8 +109,8 @@
109109
pulp_url: "{{ remote_pulp_url }}"
110110
username: "{{ remote_pulp_username }}"
111111
password: "{{ remote_pulp_password }}"
112-
name: "{{ repository_name }}_{{ host_image_tag }}"
113-
base_path: "{{ pulp_base_path }}/{{ host_image_tag }}"
112+
name: "{{ repository_name }}_{{ artifact_tag }}"
113+
base_path: "{{ pulp_base_path }}/{{ artifact_tag }}"
114114
publication: "{{ publication_details.publication.pulp_href }}"
115115
content_guard: development
116116
state: present
@@ -120,23 +120,23 @@
120120
retries: 3
121121
delay: 5
122122

123-
- name: Update new images file with versioned path
123+
- name: Update new artifacts file with versioned path
124124
ansible.builtin.lineinfile:
125-
path: /tmp/updated_images.txt
126-
line: "{{ remote_pulp_url }}/pulp/content/{{ pulp_base_path }}/{{ host_image_tag }}/{{ found_files.files[0].path | basename }}"
125+
path: /tmp/updated_artifacts.txt
126+
line: "{{ remote_pulp_url }}/pulp/content/{{ pulp_base_path }}/{{ artifact_tag }}/{{ found_files.files[0].path | basename }}"
127127
create: true
128128
listen: Latest distribution details changed
129129

130-
- name: Update new images file with latest path
130+
- name: Update new artifacts file with latest path
131131
ansible.builtin.lineinfile:
132-
path: /tmp/updated_images.txt
132+
path: /tmp/updated_artifacts.txt
133133
line: "{{ remote_pulp_url }}/pulp/content/{{ pulp_base_path }}/latest/{{ found_files.files[0].path | basename }}"
134-
listen: Latest distribution details changed
134+
when: latest_distribution_details.changed
135135

136136
- name: Print versioned path
137137
ansible.builtin.debug:
138-
msg: "New versioned path: {{ remote_pulp_url }}/pulp/content/{{ pulp_base_path }}/{{ host_image_tag }}/{{ found_files.files[0].path | basename }}"
139-
listen: Latest distribution details changed
138+
msg: "New versioned path: {{ remote_pulp_url }}/pulp/content/{{ pulp_base_path }}/{{ artifact_tag }}/{{ found_files.files[0].path | basename }}"
139+
when: latest_distribution_details.changed
140140

141141
- name: Print latest path
142142
ansible.builtin.debug:
@@ -145,5 +145,5 @@
145145

146146
- name: Print version tag
147147
ansible.builtin.debug:
148-
msg: "New tag: {{ host_image_tag }}"
149-
listen: Latest distribution details changed
148+
msg: "New tag: {{ artifact_tag }}"
149+
when: latest_distribution_details.changed

etc/kayobe/ansible/pulp-host-image-download.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
- name: Download image artifact
2525
ansible.builtin.get_url:
2626
url: "{{ stackhpc_overcloud_host_image_url_no_auth }}"
27-
username: "{{ stackhpc_image_repository_username }}"
28-
password: "{{ stackhpc_image_repository_password }}"
27+
username: "{{ stackhpc_release_pulp_username }}"
28+
password: "{{ stackhpc_release_pulp_password }}"
2929
force_basic_auth: true
3030
unredirected_headers:
3131
- Authorization

etc/kayobe/environments/ci-builder/stackhpc-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,5 @@ stackhpc_docker_registry_password: !vault |
9494
3664
9595
9696
# Username and password of the overcloud host image repository.
97-
stackhpc_image_repository_username: "{{ stackhpc_docker_registry_username }}"
98-
stackhpc_image_repository_password: "{{ stackhpc_docker_registry_password }}"
97+
stackhpc_release_pulp_username: "{{ stackhpc_docker_registry_username }}"
98+
stackhpc_release_pulp_password: "{{ stackhpc_docker_registry_password }}"

etc/kayobe/ipa.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,7 @@ ipa_build_dib_elements_extra:
119119
#ipa_collectors_default:
120120

121121
# List of additional inspection collectors to run.
122-
ipa_collectors_extra:
123-
- "dmi-decode"
124-
- "extra-hardware"
125-
- "numa-topology"
122+
ipa_collectors_extra: "{{ ['dmi-decode', 'extra-hardware', 'numa-topology'] if ipa_build_images else [] }}"
126123

127124
# List of inspection collectors to run.
128125
#ipa_collectors:

etc/kayobe/kolla-image-tags.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,26 @@ kolla_image_tags:
99
blazar:
1010
rocky-9: 2024.1-rocky-9-20241125T093138
1111
ubuntu-jammy: 2024.1-ubuntu-jammy-20241125T093138
12+
cinder:
13+
rocky-9: 2024.1-rocky-9-20241204T081836
14+
ubuntu-jammy: 2024.1-ubuntu-jammy-20241204T081836
1215
heat:
1316
rocky-9: 2024.1-rocky-9-20240805T142526
1417
nova:
1518
rocky-9: 2024.1-rocky-9-20241004T094540
1619
ubuntu-jammy: 2024.1-ubuntu-jammy-20241004T094540
1720
neutron:
18-
rocky-9: 2024.1-rocky-9-20241025T090323
19-
ubuntu-jammy: 2024.1-ubuntu-jammy-20241025T090323
21+
rocky-9: 2024.1-rocky-9-20241203T232519
22+
ubuntu-jammy: 2024.1-ubuntu-jammy-20241203T232519
2023
octavia:
2124
rocky-9: 2024.1-rocky-9-20241004T094540
2225
ubuntu-jammy: 2024.1-ubuntu-jammy-20241004T094540
2326
horizon:
24-
rocky-9: 2024.1-rocky-9-20240909T144917
25-
bifrost_deploy:
26-
rocky-9: 2024.1-rocky-9-20240725T165045
27+
rocky-9: 2024.1-rocky-9-20241202T210927
28+
ubuntu-jammy: 2024.1-ubuntu-jammy-20241202T210927
29+
bifrost:
30+
rocky-9: 2024.1-rocky-9-20241128T162336
31+
ubuntu-jammy: 2024.1-ubuntu-jammy-20241128T162336
2732
prometheus:
2833
rocky-9: 2024.1-rocky-9-20240910T072617
2934
rabbitmq:

etc/kayobe/kolla.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ kolla_sources:
117117
type: git
118118
location: https://github.com/stackhpc/stackhpc-inspector-plugins.git
119119
reference: 1.3.0
120+
bifrost-base:
121+
type: git
122+
location: https://github.com/stackhpc/bifrost.git
123+
reference: stackhpc/{{ openstack_release }}
120124
cloudkitty-base:
121125
type: git
122126
location: https://github.com/stackhpc/cloudkitty.git

0 commit comments

Comments
 (0)