Skip to content

Commit 229f07f

Browse files
committed
Build overcloud and IPA images from StackHPC package mirrors
1 parent 015ffb7 commit 229f07f

File tree

5 files changed

+20
-12
lines changed

5 files changed

+20
-12
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Ensure we're using modern docker-buildx instead of legacy docker-build
2+
dev_tools_packages_extra:
3+
- "{% if os_distribution == 'ubuntu' %}docker-buildx-plugin{% endif %}"

etc/kayobe/ipa.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
ipa_build_dib_elements_extra:
3535
- extra-hardware
3636
- mellanox
37+
- purge-command-not-found
3738

3839
# List of Diskimage Builder (DIB) elements to use when building IPA images.
3940
# Default is combination of ipa_build_dib_elements_default and
@@ -59,7 +60,7 @@ ipa_build_dib_elements_extra:
5960

6061
# List of additional git repositories containing Diskimage Builder (DIB)
6162
# elements. See stackhpc.openstack.os_images role for usage. Default is empty.
62-
#ipa_build_dib_git_elements_extra:
63+
ipa_build_dib_git_elements_extra: "{{ stackhpc_dib_image_elements_repos }}"
6364

6465
# List of git repositories containing Diskimage Builder (DIB) elements. See
6566
# stackhpc.openstack.os_images role for usage. Default is a combination of

etc/kayobe/overcloud-dib.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,7 @@ overcloud_dib_host_packages_extra:
6464

6565
# List of additional git repositories containing Diskimage Builder (DIB)
6666
# elements. See stackhpc.openstack.os_images role for usage. Default is empty.
67-
overcloud_dib_git_elements_extra:
68-
- repo: "https://github.com/stackhpc/stackhpc-image-elements"
69-
local: "{{ source_checkout_path }}/stackhpc-image-elements"
70-
version: "v1.6.3"
71-
elements_path: "elements"
67+
overcloud_dib_git_elements_extra: "{{ stackhpc_dib_image_elements_repos }}"
7268

7369
# List of git repositories containing Diskimage Builder (DIB) elements. See
7470
# stackhpc.openstack.os_images role for usage. Default is a combination of

etc/kayobe/stackhpc-overcloud-dib.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ stackhpc_overcloud_dib_name: "deployment_image"
2222
# StackHPC overcloud DIB image elements.
2323
stackhpc_overcloud_dib_elements:
2424
- "{{ os_distribution }}-{% if os_distribution == 'rocky' %}container-stackhpc{% else %}minimal{% endif %}"
25+
- "{% if os_distribution == 'ubuntu' and stackhpc_repo_mirror_auth_proxy_enabled %}apt-no-verify-peer{% endif %}"
2526
- "cloud-init-datasources"
2627
- "{% if os_distribution == 'rocky' %}selinux-permissive{% endif %}"
2728
- "enable-serial-console"
@@ -43,18 +44,16 @@ stackhpc_overcloud_dib_env_vars:
4344
DIB_CONTAINERFILE_RUNTIME: "docker"
4445
DIB_CONTAINERFILE_NETWORK_DRIVER: "host"
4546
DIB_CONTAINERFILE_DOCKERFILE: "/opt/kayobe/src/stackhpc-image-elements/elements/rocky-container-stackhpc/containerfiles/9-stackhpc"
46-
# NOTE: Not currently syncing Ubuntu packages, since the on_demand mirror in
47-
# Ark does not work if the upstream mirror pulls packages (which it does
48-
# sometimes).
49-
# DIB_DISTRIBUTION_MIRROR: "{{ stackhpc_repo_ubuntu_focal_url if os_distribution == 'ubuntu' else '' }}"
47+
DIB_CONTAINERFILE_BUILDOPTS: >-
48+
--build-arg=ROCKY_USE_MIRRORS=true
49+
--build-arg=ROCKY_MIRROR_URLS={{ [stackhpc_repo_rocky_9_baseos_url, stackhpc_repo_rocky_9_appstream_url] | join(',') }}
50+
DIB_DISTRIBUTION_MIRROR: "{{ stackhpc_repo_ubuntu_jammy_url if os_distribution == 'ubuntu' else '' }}"
5051
DIB_DRACUT_ENABLED_MODULES_DEFAULT_CONFIG: "{{ stackhpc_overcloud_dib_dracut_enabled_modules_default_config }}"
5152
DIB_RELEASE: "{{ overcloud_dib_os_release }}"
5253
DIB_SUDOERS_FILENAME: "no-fqdn"
5354
# Avoid DNS queries during sudo commands, since we might not always have working DNS.
5455
DIB_SUDOERS_CONFIG: |
5556
Defaults !fqdn
56-
# FIXME: Support templating repo files.
57-
# DIB_YUM_MINIMAL_BOOTSTRAP_REPOS: /path/to/dir/containing/dib-mirror-*.repo
5857
YUM: dnf
5958
# Workaround for stack user home ownership bug
6059
DIB_IMAGE_CACHE: "/tmp/yum"

etc/kayobe/stackhpc.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,12 @@ stackhpc_amphora_image_version: "2025.1-20250619T113933"
194194
# Secret store to deploy as a Certificate Authority.
195195
# Valid options are "vault" and "openbao". Default is "openbao".
196196
stackhpc_ca_secret_store: openbao
197+
198+
###############################################################################
199+
# diskimage-builder elements repos
200+
201+
stackhpc_dib_image_elements_repos:
202+
- repo: "https://github.com/stackhpc/stackhpc-image-elements"
203+
local: "{{ source_checkout_path }}/stackhpc-image-elements"
204+
version: "v1.6.4"
205+
elements_path: "elements"

0 commit comments

Comments
 (0)