Skip to content

Commit 2a06954

Browse files
committed
Update host image pulling changes after review
1 parent 5d82f78 commit 2a06954

File tree

9 files changed

+18
-18
lines changed

9 files changed

+18
-18
lines changed

.github/workflows/stackhpc-all-in-one.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
- name: Output image tag
8080
id: image_tag
8181
run: |
82-
echo image_tag=$(grep stackhpc_${{ inputs.os_distribution }}_$(sed s/-/_/ <(echo "${{ inputs.os_release }}"))_overcloud_host_image_version: etc/kayobe/stackhpc-overcloud-host-images.yml | awk '{print $2}') >> $GITHUB_OUTPUT
82+
echo image_tag=$(grep stackhpc_${{ inputs.os_distribution }}_$(sed s/-/_/ <(echo "${{ inputs.os_release }}"))_overcloud_host_image_version: etc/kayobe/pulp-host-image-versions.yml | awk '{print $2}') >> $GITHUB_OUTPUT
8383
8484
# Use the image override if set, otherwise use overcloud-os_distribution-os_release-tag
8585
- name: Output image name

doc/source/configuration/host-images.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ Currently, images exist for the following operating systems:
2626
* Ubuntu Jammy 22.04
2727

2828
The image to download is selected automatically using the ``os_distribution``
29-
and ``os_release`` variables.
29+
and ``os_release`` variables. These images are versioned and a variable for
30+
each OS is stored in ``pulp-host-image-versions.yml``.
3031

3132
This content requires the same set of credentials as is used for other
3233
release train content.

doc/source/configuration/release-train.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ This configuration provides the following:
3838

3939
* Configuration to deploy a local Pulp service as a container on the seed
4040
* Pulp repository definitions for CentOS Stream 8, Rocky Linux 8/9 and Ubuntu
41-
Jammy
41+
Focal
4242
* Playbooks to synchronise a local Pulp service with Ark
4343
* Configuration to use the local Pulp repository mirrors on control plane hosts
4444
* Configuration to use the local Pulp container registry on control plane hosts

etc/kayobe/kolla/config/bifrost.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
---
33
# Use prebuilt release train images from Ark.
44
{% if stackhpc_download_overcloud_host_images | bool %}
5-
overcloud_dib_build_host_images: false
65
use_cirros: true
76
cirros_deploy_image_upstream_url: "{{ stackhpc_overcloud_host_image_url }}"
87
{% endif %}

etc/kayobe/overcloud-dib.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Bifrost. Setting it to true disables Bifrost image build and allows images to
99
# be built with the `kayobe overcloud host image build` command. Default value
1010
# is {{ os_distribution == 'rocky' }}. This will change in a future release.
11-
#overcloud_dib_build_host_images:
11+
overcloud_dib_build_host_images: "{{ os_distribution == 'rocky' and not stackhpc_download_overcloud_host_images | bool }}"
1212

1313
# List of additional host packages to install.
1414
overcloud_dib_host_packages_extra:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
# Overcloud host image versioning tags
3+
# These images must be in SMS, since they are used by our AIO CI runners
4+
stackhpc_centos_8_stream_overcloud_host_image_version: "yoga-20230525T095243"
5+
stackhpc_rocky_8_overcloud_host_image_version: "yoga-20230629T135322"
6+
stackhpc_rocky_9_overcloud_host_image_version: "yoga-20230515T145140"
7+
stackhpc_ubuntu_focal_overcloud_host_image_version: "yoga-20230609T120720"
8+
stackhpc_ubuntu_jammy_overcloud_host_image_version: "yoga-20230609T120720"

etc/kayobe/pulp.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ pulp_proxy_url: "{{ omit }}"
3232
###############################################################################
3333
# StackHPC Pulp server
3434

35-
# The scheme - http/https of the StackHPC Pulp service.
36-
stackhpc_release_pulp_scheme: "https://"
35+
# The scheme of the StackHPC Pulp service (http or https)
36+
stackhpc_release_pulp_scheme: "https"
3737

3838
# The domain of the StackHPC Pulp service.
3939
stackhpc_release_pulp_domain: "ark.stackhpc.com"
4040

4141
# Base URL of the StackHPC Pulp service.
42-
stackhpc_release_pulp_url: "{{ stackhpc_release_pulp_scheme }}{{ stackhpc_release_pulp_domain }}"
42+
stackhpc_release_pulp_url: "{{ stackhpc_release_pulp_scheme }}://{{ stackhpc_release_pulp_domain }}"
4343

4444
# Credentials used to access the StackHPC Pulp service.
4545
stackhpc_release_pulp_username:
@@ -51,7 +51,7 @@ stackhpc_release_pulp_content_url: "{{ stackhpc_release_pulp_url }}/pulp/content
5151
# Content URL of the StackHPC Pulp service, with basic auth.
5252
# NOTE(Alex-Welsh): This may need reworking if it reveals the credentials
5353
# at runtime in the ansible output
54-
stackhpc_release_pulp_content_url_with_auth: "{{ stackhpc_release_pulp_scheme }}{{ stackhpc_release_pulp_username }}:{{ stackhpc_release_pulp_password }}@{{ stackhpc_release_pulp_domain }}/pulp/content"
54+
stackhpc_release_pulp_content_url_with_auth: "{{ stackhpc_release_pulp_scheme }}://{{ stackhpc_release_pulp_username }}:{{ stackhpc_release_pulp_password }}@{{ stackhpc_release_pulp_domain }}/pulp/content"
5555

5656
# Sync all repositories required for building Kolla images from the
5757
# StackHPC Ark Pulp service to local Pulp.

etc/kayobe/stackhpc-overcloud-host-images.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ stackhpc_overcloud_host_image_url: "{{ stackhpc_release_pulp_content_url_with_au
1919
overcloud-{{ os_distribution }}-{{ os_release }}\
2020
{{ '-ofed' if stackhpc_overcloud_host_image_is_ofed else '' }}.qcow2"
2121

22-
# Overcloud host image versioning tags
23-
# These images must be in SMS, since they are used by our AIO CI runners
24-
stackhpc_centos_8_stream_overcloud_host_image_version: "yoga-20230525T095243"
25-
stackhpc_rocky_8_overcloud_host_image_version: "yoga-20230629T135322"
26-
stackhpc_rocky_9_overcloud_host_image_version: "yoga-20230515T145140"
27-
stackhpc_ubuntu_focal_overcloud_host_image_version: "yoga-20230609T120720"
28-
stackhpc_ubuntu_jammy_overcloud_host_image_version: "yoga-20230609T120720"
29-
3022
# Overcloud host image version tag selection
3123
stackhpc_overcloud_host_image_version: >-
3224
{{ stackhpc_centos_8_stream_overcloud_host_image_version if os_distribution == 'centos' and os_release == '8-stream' else
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
features:
33
- |
4-
Prebuild overcloud host images can now be pulled from Ark using the
4+
Prebuilt overcloud host images can now be pulled from Ark using the
55
`stackhpc_download_overcloud_host_images` variable. The image is selected
66
based on `os_distribution` and `os_release`.

0 commit comments

Comments
 (0)