Skip to content

zed: Fix image mapping in kolla-images.py, add tests and CI #1284

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

Merged
merged 6 commits into from
Sep 12, 2024

Conversation

markgoddard
Copy link
Contributor

  • kolla-images.py: Add a check-image-map command
  • kolla-images.py: Fix image to container exceptions using check-image-map
  • kolla-images.py: Misc fixes
  • CI: Add check-image-map and check-hierarchy to check-tags workflow

This command checks the image mapping against Kolla Ansible variables.

The *_image variables in Kolla Ansible define the mapping between
containers and images. Ensure that the mapping defined in this script
matches the one in Kolla Ansible.
We recently had an issue where images were built for ironic, but this
did not include dnsmasq due to not matching the regex. The 'ironic' tag
was updated in kolla-image-tags.yml, which matches ironic_dnsmasq
container, but no such dnsmasq image existed. This issue would have been
caught the check-tags workflow with the correct mapping added in this
change.
These commands ensure that the image map and hierarchy defined in
kolla-images.py matches Kolla Ansible.

Also update the path filter to run the check-tags workflow when pulp.yml
or kolla-images.py is modified.
@markgoddard markgoddard requested a review from a team as a code owner September 12, 2024 09:34
@markgoddard markgoddard self-assigned this Sep 12, 2024
Alex-Welsh
Alex-Welsh previously approved these changes Sep 12, 2024
This was not caught because neutron-mlnx-agent is not in the list of
supported images in pulp.yml.
Copy link
Contributor

@MoteHue MoteHue left a comment

Choose a reason for hiding this comment

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

LGTM now, nice one

@markgoddard markgoddard merged commit 6bec4ba into stackhpc/zed Sep 12, 2024
11 of 12 checks passed
@markgoddard markgoddard deleted the check-image-map branch September 12, 2024 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants