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

fix(cvi,vi): unlock pending vi/cvi from vd ref #416

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

LopatinDmitr
Copy link
Contributor

@LopatinDmitr LopatinDmitr commented Oct 2, 2024

Description

  • Add conditon 'InUse" for VirtualDisk. This condition indicate:

    • that the VirtualDisk may be used for create ClusterVirtualImage or VirtualImage
    • that the VirtualDisk may be attached to running VirtualMachine
  • Add condition 'BlockDeviceAllowed' for VirtualMachine. This condition indicate state VirtualDisk (may be attached or no)

Why do we need it, and what problem does it solve?

Fix problem with lock VirtualImage and ClusterVirtual image in phase 'Pending' after stopping or deleting VirtualMachine, when used needed VirtualDisk in them.

What is the expected result?

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

@LopatinDmitr LopatinDmitr marked this pull request as ready for review October 7, 2024 15:28
@LopatinDmitr LopatinDmitr force-pushed the fix/vi/unlock-pending-vi-from-vd-ref branch 2 times, most recently from 45552d1 to 8e5b4f1 Compare October 13, 2024 09:29
@LopatinDmitr LopatinDmitr changed the title fix(vi): unlock pending vi from vd ref fix(cvi,vi): unlock pending vi/cvi from vd ref Oct 13, 2024
@Isteb4k Isteb4k self-requested a review October 15, 2024 16:29
@LopatinDmitr LopatinDmitr force-pushed the fix/vi/unlock-pending-vi-from-vd-ref branch from 523f4a4 to f8134b5 Compare October 21, 2024 08:36
@LopatinDmitr LopatinDmitr requested review from Isteb4k and diafour and removed request for Isteb4k October 23, 2024 21:14
@LopatinDmitr LopatinDmitr force-pushed the fix/vi/unlock-pending-vi-from-vd-ref branch from 70fd271 to 0f11fd4 Compare October 27, 2024 19:57
@LopatinDmitr LopatinDmitr force-pushed the fix/vi/unlock-pending-vi-from-vd-ref branch 8 times, most recently from d37bad7 to 7b7bcd5 Compare October 29, 2024 20:42
@LopatinDmitr LopatinDmitr marked this pull request as draft October 30, 2024 09:11
@LopatinDmitr LopatinDmitr force-pushed the fix/vi/unlock-pending-vi-from-vd-ref branch from 7b7bcd5 to 11bbb7f Compare October 30, 2024 12:12
@LopatinDmitr LopatinDmitr force-pushed the fix/vi/unlock-pending-vi-from-vd-ref branch 9 times, most recently from 929fc17 to 1818962 Compare November 22, 2024 07:53
@LopatinDmitr LopatinDmitr marked this pull request as ready for review November 22, 2024 08:25
@LopatinDmitr LopatinDmitr force-pushed the fix/vi/unlock-pending-vi-from-vd-ref branch 6 times, most recently from f5f5d24 to 2c03739 Compare November 22, 2024 13:16
@LopatinDmitr LopatinDmitr force-pushed the fix/vi/unlock-pending-vi-from-vd-ref branch 5 times, most recently from c4e8c52 to 8d2b638 Compare November 25, 2024 22:06
Signed-off-by: dmitry.lopatin <[email protected]>
@LopatinDmitr LopatinDmitr force-pushed the fix/vi/unlock-pending-vi-from-vd-ref branch from 8d2b638 to 8b0c8b6 Compare November 26, 2024 19:49
@LopatinDmitr LopatinDmitr marked this pull request as draft November 27, 2024 08:47
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.

3 participants