Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build overcloud host and IPA images using packages from Ark #1436

Draft
wants to merge 2 commits into
base: stackhpc/2024.1
Choose a base branch
from

Conversation

m-bull
Copy link
Contributor

@m-bull m-bull commented Dec 27, 2024

Override package mirrors for both Ubuntu Jammy and Rocky Linux 9 overcloud images so that they are built from package snapshots defined in pulp-repo-versions.yml.

Also build IPA from the same mirrors, although this fails currently because python3.10-dev supplied by Ark in the snapshot defined in pulp-repo-versions.yml is too old. Updating the package snapshot to a newer version means dependencies can be solved and the image is able to be built.

Use the authenticating Pulp proxy for everything that touches packages on Ark, to prevent credentials accidentally leaking into built artefacts.

Requires: stackhpc/stackhpc-image-elements#67

Use the authenticating pulp_proxy for all CI build jobs that need packages from Ark -
host images, Kolla images and the IPA image.
@m-bull m-bull requested a review from a team as a code owner December 27, 2024 16:51
@product-auto-label product-auto-label bot added size: m workflows Workflow files have been modified labels Dec 27, 2024
stackhpc_dib_image_elements_repos:
- repo: "https://github.com/stackhpc/stackhpc-image-elements"
local: "{{ source_checkout_path }}/stackhpc-image-elements"
version: "rocky-container-pulp-2"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use this branch for testing and update when stackhpc/stackhpc-image-elements#67 is merged and a new tag cut.

@m-bull
Copy link
Contributor Author

m-bull commented Dec 27, 2024

TODO: Some automation to trigger a host/IPA image build when pulp-repo-versions.yml is updated, ?

@Alex-Welsh Alex-Welsh self-requested a review December 28, 2024 11:29
Copy link
Member

@Alex-Welsh Alex-Welsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice work. LGTM and will approve once stackhpc/stackhpc-image-elements#67 is finalised

@Alex-Welsh
Copy link
Member

Thinking about it, should probably add a release note

@m-bull m-bull marked this pull request as draft January 20, 2025 09:00
@m-bull
Copy link
Contributor Author

m-bull commented Jan 20, 2025

Back to draft while I tweak this a bit.

I think it would be nicer to have switch(es) that could be set which enables this functionality, then leave all of the config in the base environment behind that switch, and just make enabling it in an environment (either CI or customer) something like:

stackhpc_build_overcloud_image_from_pulp_package_mirrors: true
stackhpc_build_ipa_image_from_pulp_package_mirrors: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: m workflows Workflow files have been modified
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants