-
Bug
-
Resolution: Won't Do
-
Undefined
-
None
-
rhel-9.6
-
No
-
Low
-
rhel-sst-virtualization
-
ssg_virtualization
-
None
-
False
-
-
None
-
None
-
None
-
RegressionOnly
-
-
x86_64
-
None
What were you trying to do that didn't work?
Live update interface to delete alias or target dev setting succeed but no changes in xml
What is the impact of this issue to you?
Please provide the package NVR for which the bug is seen:
libvirt-10.8.0-2.el9.x86_64
How reproducible is this bug?:
100%
Steps to reproduce
- start a vm with interface as below with alias setting:
#virsh start vm2 #virsh dumpxml vm2 --xpath //interface <interface type="network"> <mac address="52:54:00:90:88:cc"/> <source network="default" portid="4384b8f7-c370-43f5-a58a-a3f932f37fe1" bridge="virbr0"/> <target dev="vnet8"/> <model type="virtio"/> <driver queues="2"/> <alias name="ua-629187c4-798e-4ad7-9909-0528c92bd534"/> <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/> </interface>
2.Prepare the interface device xml the same as above except deleting the alias setting:
#cat if.xml <interface type="network"> <mac address="52:54:00:90:88:cc"/> <source network="default" portid="afcafd32-21a7-4105-a2c9-e40f15dd69fa" bridge="virbr0"/> <target dev="vnet8"/> <model type="virtio"/> <driver queues="2"/> <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/> </interface>
3.Update the interface of the guest to delete alias setting:
# virsh update-device vm2 if.xml
Device updated successfully
4. Check the interface device of guest, the alias setting still exists:
# virsh dumpxml vm2 --xpath //interface <interface type="network"> <mac address="52:54:00:90:88:cc"/> <source network="default" portid="ddfbc35c-cf8b-4443-9e43-637c9112f5ff" bridge="virbr0"/> <target dev="vnet8"/> <model type="virtio"/> <driver queues="2"/> ***<alias name="ua-629187c4-798e-4ad7-9909-0528c92bd534"/>*** <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/> </interface>
5.The issue also exists when deleting target dev, update device to delete target dev returns successfully but the target dev setting still exists.
Expected results
The update-device command should report error like:
error: Failed to update device from if.xml
error: Operation not supported: cannot modify network device alias setting
Actual results
Live update interface to delete alias or target dev setting succeed but no changes in xml.