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

overlay: always use prjquota for XFS rootfs #903

Merged
merged 3 commits into from
Mar 19, 2021

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Mar 19, 2021

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
#805, to
mountOptions: []).

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1940704

By default, we mount XFS with the `prjquota` option. Verify this.
We should have those in a shared shell library.
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
@jlebon jlebon merged commit a57a999 into coreos:testing-devel Mar 19, 2021
@jlebon jlebon deleted the pr/prjquota-always branch March 19, 2021 18:21
jlebon added a commit to jlebon/os that referenced this pull request Mar 19, 2021
I.e. coreos/fedora-coreos-config#900 (for
https://bugzilla.redhat.com/show_bug.cgi?id=1934863) and
coreos/fedora-coreos-config#903 (for
https://bugzilla.redhat.com/show_bug.cgi?id=1940966).

```
Jonathan Lebon (8):
      overrides: pin to kernel-5.10.19-200.fc33 for rootless podman
      image.yaml: bump virtual disk images to 10G
      manifest: use `mkdir -p` for resolved.conf.d/ dir
      overlay: don't restamp rootfs UUID if reprovisioning
      overlay/growfs: handle broken lsblk in el8
      tests/misc-ro: check for prjquota
      tests/root-reprovision: use `ok` and `fatal` helpers
      overlay: always use prjquota for XFS rootfs

Luca BRUNO (2):
      fedora-coreos-base: add nm-cloud-setup, forward platform variables
      lockfile: refresh after manifest changes

Sohan Kunkerkar (1):
      overrides: fast-track coreos-installer 0.8.0
```
jlebon added a commit to jlebon/os that referenced this pull request Mar 19, 2021
I.e. coreos/fedora-coreos-config#900 (for
https://bugzilla.redhat.com/show_bug.cgi?id=1934863) and
coreos/fedora-coreos-config#903 (for
https://bugzilla.redhat.com/show_bug.cgi?id=1940966).

```
Jonathan Lebon (5):
      overlay: don't restamp rootfs UUID if reprovisioning
      overlay/growfs: handle broken lsblk in el8
      tests/misc-ro: check for prjquota
      tests/root-reprovision: use `ok` and `fatal` helpers
      overlay: always use prjquota for XFS rootfs
```
@cgwalters
Copy link
Member

Nice work on this! Hmm. Definitely a bit of a philosophical issue here. I feel like if we could go back to the start, arguably we might have not enabled prjquota at all by default and had higher level systems (OpenShift, etc.) explicitly enable it internally. But, that ship has definitely sailed.

miabbott pushed a commit to jlebon/os that referenced this pull request Mar 22, 2021
I.e. coreos/fedora-coreos-config#900 (for
https://bugzilla.redhat.com/show_bug.cgi?id=1934863) and
coreos/fedora-coreos-config#903 (for
https://bugzilla.redhat.com/show_bug.cgi?id=1940966).

```
Jonathan Lebon (5):
      overlay: don't restamp rootfs UUID if reprovisioning
      overlay/growfs: handle broken lsblk in el8
      tests/misc-ro: check for prjquota
      tests/root-reprovision: use `ok` and `fatal` helpers
      overlay: always use prjquota for XFS rootfs
```
c4rt0 pushed a commit to c4rt0/fedora-coreos-config that referenced this pull request Mar 27, 2023
`image.yaml` updates for RHEL 9
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