-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Implement SetLock for all virt providers #20322
Conversation
Note: I do not have a way to test WSL or HyperV |
Ephemeral COPR build failed. @containers/packit-build please check. |
39fb4d8
to
2fcc158
Compare
LGTM |
2fcc158
to
5322308
Compare
74c935b
to
1b04c74
Compare
Cockpit tests failed for commit 74c935bfa300c9800000afedd9f0a1ff50da4fb5. @martinpitt, @jelly, @mvollmer please check. |
1b04c74
to
b67eb2f
Compare
Ephemeral COPR build failed. @containers/packit-build please check. |
Cockpit tests failed for commit b67eb2fd28af4cb47779492517b37160f8f99d72. @martinpitt, @jelly, @mvollmer please check. |
The cockpit-podman f39 failure is unrelated, please ignore (or retry). It's on my todo list (but annoyingly difficult) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One Q and nit, otherwise LGTM
If we'd make use of inheritance/specialization, we could still avoid more redundancy. As the "Provider" could then call whatever it's wrapped around and the locking could happen for instance once in (Provider) Set()
once.
Doing that would require turning the "Provider" into a struct which in turn includes an interface.
But, let's go one step at a time.
b67eb2f
to
0422569
Compare
Cockpit tests failed for commit 0422569aea69f5e8924e01bb1f82586372d379e2. @martinpitt, @jelly, @mvollmer please check. |
0422569
to
fd43712
Compare
Implements a shared `GetLock` function for virtualization providers. Returns a pointer to a lockfile used for serializing write operations. [NO NEW TESTS NEEDED] Signed-off-by: Jake Correnti <[email protected]>
fd43712
to
987dc2b
Compare
Cockpit tests failed for commit fd437126b187c1a7debc366737af22bdb1714c1c. @martinpitt, @jelly, @mvollmer please check. |
Cockpit tests failed for commit 987dc2b. @martinpitt, @jelly, @mvollmer please check. |
LGTM |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jakecorrenti, rhatdan 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 |
Implements a shared
SetLock
function for all virtualization providers. Adds the function to theVM
interface to require implementation.[NO NEW TESTS NEEDED]
Does this PR introduce a user-facing change?