-
Bug
-
Resolution: Duplicate
-
Normal
-
rhel-10.0.beta
-
Yes
-
Critical
-
Regression
-
1
-
sst_virtualization_hwe
-
ssg_virtualization
-
200
-
False
-
-
None
-
zKVM CY24Q3
-
None
-
Automated
-
-
s390x
-
None
What were you trying to do that didn't work?
Set a link of an VM interface down.
Please provide the package NVR for which bug is seen:
libvirt-10.0.0-3.el10+5
qemu-kvm-9.0.0-1.el10
guest kernel: kernel-6.9.0-7.el10.s390x
How reproducible:
100%
Steps to reproduce
- Start a VM with an interface, I used the standard libvirt network interface
[root@rdu-z16-l2a ~]# virsh dumpxml avocado-vt-vm1 --xpath //interface <interface type="network"> <mac address="52:54:00:f8:d1:21"/> <source network="default" portid="de6bb0de-95c4-4cf3-8a37-68b9701b210d" bridge="virbr0"/> <target dev="vnet0"/> <model type="virtio"/> <alias name="net0"/> <address type="ccw" cssid="0xfe" ssid="0x0" devno="0x0001"/> </interface>
- set the link down, I used virsh but I'll attach virtqemud logs that show which commands where issued
# virsh domif-setlink vm 52:54:00:f8:d1:21 down
Expected results
After a couple of seconds (automated test waits up to 5 secs), inside the VM, ip link confirms that the IF is down, e.g.:
enc1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
Actual results
Even after 1min the link remains up
enc1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
Additional information
- setting component qemu-kvm because the virtqemud logs confirmed the command was issued and returned successfully:
2024-06-04 11:48:59.522+0000: 382054: info : qemuMonitorSend:860 : QEMU_MONITOR_SEND_MSG: mon=0x3ff70040d40 msg={"execute":"set_link","arguments":{"name":"net0","up":false},"id":"libvirt-15"}^M fd=-1 2024-06-04 11:48:59.522+0000: 382370: info : qemuMonitorIOWrite:362 : QEMU_MONITOR_IO_WRITE: mon=0x3ff70040d40 buf={"execute":"set_link","arguments":{"name":"net0","up":false},"id":"libvirt-15"}^M len=81 ret=81 errno=0 2024-06-04 11:48:59.523+0000: 382370: debug : qemuMonitorJSONIOProcessLine:191 : Line [{"return": {}, "id": "libvirt-15"}] 2024-06-04 11:48:59.523+0000: 382370: info : qemuMonitorJSONIOProcessLine:210 : QEMU_MONITOR_RECV_REPLY: mon=0x3ff70040d40 reply={"return": {}, "id": "libvirt-15"}
- links to