Skip to content

[pcp_metrics] Create a usroverlay instead of remounting /usr#3775

Open
michburk wants to merge 1 commit intoopenstack-k8s-operators:mainfrom
michburk:pcp-4-20
Open

[pcp_metrics] Create a usroverlay instead of remounting /usr#3775
michburk wants to merge 1 commit intoopenstack-k8s-operators:mainfrom
michburk:pcp-4-20

Conversation

@michburk
Copy link
Contributor

@michburk michburk commented Mar 17, 2026

Remounting the /usr directory on coreos nodes was failing on
newer crc releases because /usr is immutable. This changes the remount
to use the rpm-ostree usroverlay command to create a temporary
writable layer instead.

Data written to this overlay will not persist between boots.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 17, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 17, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign danpawlik for approval. For more information see the Code Review Process.

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

Details 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

@michburk michburk force-pushed the pcp-4-20 branch 2 times, most recently from 080882a to bd95824 Compare March 17, 2026 20:23
@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/46beae86c3604df096e4a21a455bcf5a

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 07m 26s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 19m 14s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 24m 43s
✔️ cifmw-crc-podified-edpm-baremetal-minor-update SUCCESS in 1h 53m 25s
✔️ cifmw-pod-zuul-files SUCCESS in 5m 50s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 14s
cifmw-pod-pre-commit FAILURE in 9m 48s
✔️ cifmw-molecule-pcp_metrics SUCCESS in 1m 37s

@michburk michburk force-pushed the pcp-4-20 branch 3 times, most recently from 778cdf9 to d48af10 Compare March 18, 2026 14:23
@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/f437b689ae2948feaf0b58a09648fd1e

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 40m 26s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 25m 34s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 24m 25s
cifmw-crc-podified-edpm-baremetal-minor-update FAILURE in 29m 11s
✔️ cifmw-pod-zuul-files SUCCESS in 5m 15s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 16s
cifmw-pod-pre-commit FAILURE in 9m 17s
✔️ cifmw-molecule-pcp_metrics SUCCESS in 2m 02s

@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/41ee265e28214626a64f1d3f2f1576c1

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 17m 32s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 21m 04s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 28m 36s
✔️ cifmw-crc-podified-edpm-baremetal-minor-update SUCCESS in 2h 03m 13s
✔️ cifmw-pod-zuul-files SUCCESS in 30m 46s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 47s
cifmw-pod-pre-commit FAILURE in 8m 12s
✔️ cifmw-molecule-pcp_metrics SUCCESS in 2m 01s

Remounting the `/usr` directory on coreos nodes was failing on
newer crc releases because `/usr` is read-only. This changes the remount
to use the `rpm-ostree usroverlay` command to create a temporary
writable layer instead.

Data written to this overlay will not persist between boots.

Signed-off-by: Michael Burke <michburk@redhat.com>
@michburk michburk changed the title dnm: testing pcp on crc node running 4.20 [pcp_metrics] Create a usroverlay instead of remounting /usr Mar 19, 2026
@danpawlik danpawlik requested review from a team and sdatko March 20, 2026 08:43
state: remounted
opts: rw
ansible.builtin.command:
cmd: rpm-ostree usroverlay
Copy link
Contributor

Choose a reason for hiding this comment

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

looks like interesting idea - Allows temporary modification of immutable /usr files without creating a new deployment.
it might work. If tests results are fine, we can go

@michburk
Copy link
Contributor Author

Several results linked in https://redhat.atlassian.net/browse/OSPCIFMW-57
Upstream, downstream, nested crc, crc cloud, 4.20, 4.18 - all working nicely.
Marking as ready for review

@michburk michburk marked this pull request as ready for review March 20, 2026 14:40
@michburk michburk requested a review from a team March 20, 2026 14:40
@evallesp
Copy link
Contributor

/lgtm

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.

3 participants