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

Support bootc fixes #858

Merged

Conversation

slagle
Copy link
Contributor

@slagle slagle commented Jan 21, 2025

  • edpm_container_manage support bootc
  • Move containers-tmpwatch to /var/lib/openstack
  • Skip swapfile creation for bootc
  • Skip package installations for bootc
  • Skip kernel tasks when using bootc
  • Install edpm-container-shutdown to /var
  • Create /etc/localtime if it doesn't exist
  • Skip tuned package installed for bootc

Jira: OSPRH-11110

@openshift-ci openshift-ci bot requested review from booxter and karelyatin January 21, 2025 22:12
@slagle slagle requested review from bshephar and removed request for booxter and karelyatin January 21, 2025 22:13
@slagle slagle mentioned this pull request Jan 21, 2025
@slagle slagle force-pushed the support-bootc-fixes branch 2 times, most recently from fa18d58 to 0bdd610 Compare January 22, 2025 15:54
bshephar and others added 11 commits January 22, 2025 11:19
This change writes systemd files to etc instead of /usr/share
along with adding support for Python libraries baked into the bootc image.

Signed-off-by: Brendan Shephard <[email protected]>
This change moves the script we're using for the
logs cronjob into the /var/lib/openstack/cron directory. This facilitates
the bootc immutable filesystem where we can't write to /usr, while also
consolidating scripts relevant to our deployment in a common place.

Signed-off-by: Brendan Shephard <[email protected]>
Signed-off-by: Brendan Shephard <[email protected]>
This change skips any calls to dnf on bootc nodes since they are expected to fail.

Signed-off-by: Brendan Shephard <[email protected]>
The edpm_kernel tasks are skipped for the time being when using bootc.

Signed-off-by: James Slagle <[email protected]>
The script can't be installed to /usr/libexec when using bootc. Use
/var/local/libexec instead.

Signed-off-by: James Slagle <[email protected]>
/etc/localtime does not exist by default in bootc images. Since the
logrotate_crond container assumes it exists to use a volume mount, it
must be created if it doesn't exist.

Signed-off-by: James Slagle <[email protected]>
Add tasks to the test_deps role for molecule. That tasks will ensure the
custom fact exists. The test_deps_bootc_fact variable can be used to
control the value of the fact.

Signed-off-by: James Slagle <[email protected]>
These tasks run with "become: true", so the /var/lib/openstack dir
should be root owned, just like the scripts created in the dir.

Also correct the path to the tmpwatch script when it is set in the
crontab, and in the molecule verify.yml.

Signed-off-by: James Slagle <[email protected]>
@slagle slagle force-pushed the support-bootc-fixes branch from 0bdd610 to a590bf7 Compare January 22, 2025 16:20
Copy link
Contributor

openshift-ci bot commented Jan 22, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bshephar, 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 508fd24 into openstack-k8s-operators:bootc Jan 22, 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.

2 participants