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

[rhcos-4.7] Backport patches for lsblk workaround and prjquota #905

Merged
merged 5 commits into from
Mar 22, 2021

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Mar 19, 2021

Since we've created a new filesystem anyway.

This implicitly also works around the service racing against the
`by-label/root` symlink not being up to date after reprovisioning (which
`ignition-ostree-transposefs-restore.service` now intercepts and fixes).

(cherry picked from commit 195ae1f)
Sometimes `lsblk` returns devices in the wrong order, so we can't rely
on it to iterate over the devices in hierarchical order. Instead, use
the `holders/` directory ourselves directly and use `--nodeps` when
calling `lsblk`.

See: https://bugzilla.redhat.com/show_bug.cgi?id=1934174#c4
See: https://bugzilla.redhat.com/show_bug.cgi?id=1940607
See: coreos/coreos-installer#453
(cherry picked from commit 5228316)
By default, we mount XFS with the `prjquota` option. Verify this.

(cherry picked from commit b9dca27)
We should have those in a shared shell library.

(cherry picked from commit 1b11322)
By default, we use `prjquota` for the rootfs for container orchestrators
to monitor and set drive space limits.

However, with the added support for rootfs reprovisioning, we made this
conditional on the rootfs not being reprovisioned, with the assumption
that you can just set whatever options you'd like instead. Though
actually doing that is really awkward right now, and it requires
surfacing prjquota in user documentations (see
https://bugzilla.redhat.com/show_bug.cgi?id=1940704#c2).

Since AFAICT `prjquota` doesn't actually have any significant overhead,
let's just simplify the messaging to: we *always* enable prjquota on XFS
root filesystems. Users who want to override this can fallback to
`rpm-ostree kargs` (and eventually once we have
coreos#805, to
`mountOptions: []`).

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1940704
(cherry picked from commit a57a999)
Copy link
Member

@miabbott miabbott left a comment

Choose a reason for hiding this comment

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

Will wait for CI to successfully finish before merging

@jlebon
Copy link
Member Author

jlebon commented Mar 19, 2021

CI here likely will fail unfortunately because it's building with latest cosa instead of the 4.7 branch.

Copy link
Member

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

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

Maybe what we really want to do is fork this repo into openshift/ and have the branches there, and use Prow CI jobs that will naturally follow forking, etc.

@miabbott
Copy link
Member

CI here likely will fail unfortunately because it's building with latest cosa instead of the 4.7 branch.

Will do a local test with cosa:rhcos-4.7 to be certain

@miabbott
Copy link
Member

PASS, output in tmp/kola

Looks good locally. Ran kola run and kola --basic-qemu-scenarios

/lgtm

@miabbott
Copy link
Member

/override continuous-integration/jenkins/pr-merge

@miabbott
Copy link
Member

/override continuous-integration/jenkins/pr-merge

Oops, forgot that we don't use Prow for merging here

@miabbott miabbott merged commit f068a09 into coreos:rhcos-4.7 Mar 22, 2021
c4rt0 pushed a commit to c4rt0/fedora-coreos-config that referenced this pull request Mar 27, 2023
ci: Enable more kola tests for SCOS
@jlebon jlebon deleted the pr/4.7-lsblk-prjquota branch April 23, 2023 23:28
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.

None yet

3 participants