-
Bug
-
Resolution: Done-Errata
-
Normal
-
None
-
Quality / Stability / Reliability
-
3
-
False
-
-
False
-
VERIFIED
-
-
CNV Virtualization Sprint 244
-
Moderate
-
No
Description of problem:
The cloud-init disk will not have "capacity" defined in the disk xml:
~~~
bas64 -d of Domain xml from the virt-launcher logs:
<disk device="disk" type="block" model="virtio-non-transitional">
<source dev="/dev/rootdisk" name="rootdisk"></source>
<target bus="virtio" dev="vda"></target>
<driver cache="none" error_policy="stop" io="native" name="qemu" type="raw" discard="unmap"></driver>
<alias name="ua-rootdisk"></alias>
<boot order="1"></boot>
<filesystemOverhead>0</filesystemOverhead>
<capacity>32212254720</capacity>
<expandDisksEnabled>true</expandDisksEnabled>
</disk>
<disk device="disk" type="file" model="virtio-non-transitional">
<source file="/var/run/kubevirt-ephemeral-disks/cloud-init-data/nijin-cnv/rhel8-i181f1yxkfqqrv83/noCloud.iso"></source>
<target bus="virtio" dev="vdb"></target>
<driver cache="none" error_policy="stop" name="qemu" type="raw" discard="unmap"></driver>
<alias name="ua-cloudinitdisk"></alias> <<<
<boot order="2"></boot>
<expandDisksEnabled>true</expandDisksEnabled>
</disk>
~~~
This is expected since the capacity is obtained from "volumeStatus.PersistentVolumeClaimInfo" and the cloud-init doesn't have an associated PVC.
~~~
oc get vmi rhel8-i181f1yxkfqqrv83 -o yaml |yq '.status.volumeStatus'
- name: cloudinitdisk
size: 1048576
target: vdb - name: rootdisk
persistentVolumeClaimInfo:
accessModes: - ReadWriteMany
capacity:
storage: 30Gi
filesystemOverhead: "0"
requests:
storage: "32212254720"
volumeMode: Block
target: vda
~~~
However, both offline and online disk extension monitor also look at the the cloudinit disk, and since it doesn't contains "capacity", it logs the below message repeatedly:
~~~
{"component":"virt-launcher","level":"error","msg":"No disk capacity","pos":"manager.go:684","timestamp":"2023-06-20T05:43:37.728102Z"}- oc logs virt-launcher-rhel8-i181f1yxkfqqrv83-n2fzf |grep "No disk capacity" |wc -l
18
~~~
Version-Release number of selected component (if applicable):
OpenShift Virtualization 4.13.0
How reproducible:
100%
Steps to Reproduce:
1. Start a VM with a cloud-init disk.
2. Watch the virt-launcher logs. It continuously logs "No disk capacity" error.
Actual results:
"error","msg":"No disk capacity" logging continuously in virt-launcher pod
Expected results:
Don't try to expand the cloud-init disk.
Additional info:
- external trackers
- links to
-
RHEA-2023:116760 OpenShift Virtualization 4.15.0 Images