Skip to content

Conversation

LopatinDmitr
Copy link
Contributor

@LopatinDmitr LopatinDmitr commented Sep 25, 2025

Description

Fixed an issue where VMBDA connected to a VM from VI or CVI disappears from the VM status when it is stopped.

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

Status running VirtualMachine:

blockDeviceRefs:
  - attached: true
    kind: VirtualDisk
    name: vd-root-alpine
    size: 200Mi
    target: sda
  - attached: true
    hotplugged: true
    kind: VirtualImage
    name: vi-root-alpine
    size: 200Mi
    target: sdb
    virtualMachineBlockDeviceAttachmentName: vmbda-vi

Status stopped VirtualMachine:

blockDeviceRefs:
  - attached: false
    kind: VirtualDisk
    name: vd-root-alpine
    size: 200Mi
    target: sda

What is the expected result?

Status running VirtualMachine:

blockDeviceRefs:
  - attached: true
    kind: VirtualDisk
    name: vd-root-alpine
    size: 200Mi
    target: sda
  - attached: true
    hotplugged: true
    kind: VirtualImage
    name: vi-root-alpine
    size: 200Mi
    target: sdb
    virtualMachineBlockDeviceAttachmentName: vmbda-vi

Status stopped VirtualMachine:

blockDeviceRefs:
  - attached: false
    kind: VirtualDisk
    name: vd-root-alpine
    size: 200Mi
    target: sda
  - attached: false
    hotplugged: true
    kind: VirtualImage
    name: vi-root-alpine
    size: 200Mi
    target: sdb
    virtualMachineBlockDeviceAttachmentName: vmbda-vi

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.

Changelog entries

section: vm
type: fix
summary: fix issue with deleting vmbda from a stopped VM

@LopatinDmitr LopatinDmitr added this to the v1.1.0 milestone Sep 25, 2025
@LopatinDmitr LopatinDmitr self-assigned this Sep 25, 2025
@LopatinDmitr LopatinDmitr force-pushed the fix/vm/fix-issue-with-deleting-vmbda-from-a-stopped-vm branch from dfd2b59 to e29b026 Compare September 25, 2025 16:24
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.

1 participant