-
Notifications
You must be signed in to change notification settings - Fork 2
fix(vmbda): resolve terminating status issue #1542
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
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideRefactor hotplug detection to leverage the new Hotpluggable field and remove deprecated inference APIs, propagate the flag through the KVVM builder, and update tests and dependencies to resolve VMBDA terminating state. Class diagram for updated BlockDeviceHandler hotplug logicclassDiagram
class BlockDeviceHandler {
+getBlockDeviceStatusRefs(ctx, s)
+getBlockDeviceTarget(volume, kvvmiVolumeStatusByName)
+isHotplugged(volume, kvvmiVolumeStatusByName) bool
+getBlockDeviceAttachmentName(ctx, kind, bdName, s)
}
class Volume {
+Name
+PersistentVolumeClaim
+ContainerDisk
}
class PersistentVolumeClaim {
+Hotpluggable: bool
}
class ContainerDiskSource {
+Image
+Hotpluggable: bool
}
BlockDeviceHandler --> Volume
Volume --> PersistentVolumeClaim
Volume --> ContainerDiskSource
Class diagram for KVVM builder changes with Hotpluggable propagationclassDiagram
class KVVM {
+SetDisk(name, opts)
}
class SetDiskOptions {
+ContainerDisk: string
+IsHotplugged: bool
}
class ContainerDiskSource {
+Image: string
+Hotpluggable: bool
}
KVVM --> SetDiskOptions
SetDiskOptions --> ContainerDiskSource
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
29c9560
to
f2e57ec
Compare
Workflow has started. The target step completed with status: success. |
f2e57ec
to
828b5bc
Compare
Signed-off-by: Roman Sysoev <[email protected]>
Signed-off-by: Roman Sysoev <[email protected]>
828b5bc
to
e3be361
Compare
Workflow has started. The target step completed with status: failure. |
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.
Description
Hotpluggable
field for validationWhy do we need it, and what problem does it solve?
When a VMBDA with a VirtualImage BlockDeviceRef is deleted, it remains in the Terminating phase because this block device cannot pass the Hotpluggable check.
What is the expected result?
When a VMBDA deletion request is performed, the VMBDA should be deleted.
Checklist
Changelog entries