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

Skip download_cache packages tasks with bootc #875

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

slagle
Copy link
Contributor

@slagle slagle commented Feb 5, 2025

Signed-off-by: James Slagle [email protected]

@openshift-ci openshift-ci bot requested review from dprince and jpodivin February 5, 2025 14:48
@openshift-ci openshift-ci bot added the approved label Feb 5, 2025
when: edpm_download_cache_packages | bool
when:
- edpm_download_cache_packages | bool
- not ansible_local.bootc
Copy link
Contributor

Choose a reason for hiding this comment

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

can you explain why this is skipped, is the intent to install all host packages differently (in the image or as an overlay) for bootc. this is just pre-downloading packages that will be installed by later roles.

so if this does not work i would expect the edpm_libvirt or edpm_ovs roles to also fail.

Copy link
Contributor

Choose a reason for hiding this comment

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

We can't use a package manager in the bootc image, so all of the dependencies are built into the Container:
https://github.com/openstack-k8s-operators/edpm-image-builder/blob/main/bootc/Containerfile.centos9#L41-L57

Copy link
Contributor

Choose a reason for hiding this comment

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

i see so that will need us to have containers/bootc#76
to be able to support in place upgrades and cve patching of anything in that image.

so haveing a small dep set will be important to minimise the human operator pain fo needing to live migrate instance or take the down time.

some of the packages like libguestfs should not be in the image by the way.

to be fair we haven't gotten around to removing it form edpm ansible yet

https://github.com/openstack-k8s-operators/edpm-ansible/blob/main/roles/edpm_libvirt/defaults/main.yml#L56-L57
but we did remove it form the nova containers because we do not have any supported usecase for it so it should not be needed.

that out of scope of this but we should probably avoid cargo culting it into the new image.

https://issues.redhat.com//browse/OSPRH-192
openstack-k8s-operators/tcib@e935383#diff-20fdbc4b7badc4cdcab1a535614f5d3c52acabf84aba7661ac2e5ead8acc276eL22

the reset look fine to be fair so we probably need to remove it in yet another pr :)

it would be 4th pr to try an removal all references to libguestfs

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

@rabi rabi left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link
Contributor

openshift-ci bot commented Feb 14, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rabi, slagle

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit d21db50 into openstack-k8s-operators:bootc Feb 14, 2025
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants