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

[main] Recreate missing backingFsBlockDev on setting xfs project quota #1325

Merged
merged 1 commit into from
Nov 8, 2022

Conversation

saschagrunert
Copy link
Member

@saschagrunert saschagrunert commented Sep 8, 2022

There is the rare case that something removed the backingFsBlockDev, which usually points to /var/lib/containers/storage/overlay/backingFsBlockDev. In that case, all SetQuota operations would fail on overlay layer creation.

We now work around that error by recreating the backingFsBlockDev.

/hold

I have to test this on CRI-O and rebase the change to c/storage v1.37.0

Refers to #1326

@rhatdan
Copy link
Member

rhatdan commented Sep 9, 2022

LGTM

@rhatdan
Copy link
Member

rhatdan commented Sep 12, 2022

@saschagrunert Whats up with this one?

@saschagrunert
Copy link
Member Author

@saschagrunert Whats up with this one?

The QA needs to verify that it works with CRI-O (see https://issues.redhat.com/browse/OCPBUGS-773)

@saschagrunert saschagrunert changed the title WIP: [main] Recreate missing backingFsBlockDev on setting xfs project quota [main] Recreate missing backingFsBlockDev on setting xfs project quota Nov 7, 2022
@saschagrunert saschagrunert force-pushed the recreate-backingFsBlockDev branch 4 times, most recently from 86caf99 to e1eaada Compare November 7, 2022 09:12
There is the rare case that something removed the backingFsBlockDev,
which usually points to
`/var/lib/containers/storage/overlay/backingFsBlockDev`. In that case,
all `SetQuota` operations would fail on overlay layer creation.

We now work around that error by recreating the backingFsBlockDev.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
@saschagrunert
Copy link
Member Author

Manually verified that the patch works with CRI-O. Ready for review @rhatdan.

@rhatdan
Copy link
Member

rhatdan commented Nov 7, 2022

LGTM

Copy link
Member

@rhatdan rhatdan left a comment

Choose a reason for hiding this comment

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

Copy link
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

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

LGTM

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

4 participants