-
Bug
-
Resolution: Unresolved
-
Major
-
CNV v4.19.10
-
Quality / Stability / Reliability
-
0.42
-
False
-
-
False
-
None
-
-
CNV Storage Sprint 284
-
Important
-
Customer Reported
-
None
Description of problem:
Customer had data corruption after attaching the same disk to multiple VMs by mistake.
The product is missing guardrails to protect from this.
This property below exists, but the controller has no checks during VMI creation if there is already another VM up with the same PVC/DV attached and without this property set. It should check this to prevent data corruption scenarios.
# oc explain vm.spec.template.spec.domain.devices.disks.shareable
GROUP: kubevirt.io
KIND: VirtualMachine
VERSION: v1
FIELD: shareable <boolean>
DESCRIPTION:
If specified the disk is made sharable and multiple write from different VMs
are permitted
Version-Release number of selected component (if applicable):
4.19.10
How reproducible:
Always
Steps to Reproduce:
1. Create an RWX DV 2. Attach it to 2 VMs (don't set as shareable) 3. Start both VMs
Actual results:
Both VMs are up, Data Corruption
Expected results:
Check and block VMI creation of the subsequent VMs using the same disk, unless its set to shareable.