Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
virt-manager does not update the status of network interfaces immediately after using ifconfig command to change it.
Version-Release number of selected component (if applicable):
virt-manager-1.2.1-4.el7.noarch
libvirt-1.2.17-2.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
1. Check the current network status:
#ifconfig
enp0s25: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.66.4.177 netmask 255.255.252.0 broadcast 10.66.7.255
inet6 fe80::224:7eff:fe05:eb20 prefixlen 64 scopeid 0x20<link>
ether 00:24:7e:05:eb:20 txqueuelen 1000 (Ethernet)
RX packets 895091 bytes 1094993324 (1.0 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 443044 bytes 36142184 (34.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16 memory 0xfc400000-fc420000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 917 bytes 979420 (956.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 917 bytes 979420 (956.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
2. Then check on virt-manager for the Network Interfaces. Stay on the tab:
Open virt-manager:#virt-manager -> 'Edit' -> 'Connection details' -> 'Network Interfaces'
3. Shutdown a network by ifconfig command. (e.g. enp0s25)
#ifconfig enp0s25 down
4. Check the network status by ifconfig command:
#ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 917 bytes 979420 (956.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 917 bytes 979420 (956.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
5. Check the network status on Network Interfaces tab.
6. Start a network by ifconfig command. (e.g. enp0s25)
#ifconfig enp0s25 up
7. Repeat Step 4 and Step 5.
Actual Result:
After Step 5, find out virt-manager didn't update the network status immediately.
Expected Result:
After Step 5, the network should be updated immediately. Alternatively, a refresh button can be used to get the latest status of network interfaces.
Additional info:
1. If the tab was switched to another and then switched back, the status of network interfaces was updated immediately.
2. Restart virt-manager, the status of virtual networks will be shown.
Again this has to do with lack of libvirt interface events APIs. There's currently no way for us to detect this without polling regularly, which we decided not to do since it's too much network traffic for remote connections.
Description of problem: virt-manager does not update the status of network interfaces immediately after using ifconfig command to change it. Version-Release number of selected component (if applicable): virt-manager-1.2.1-4.el7.noarch libvirt-1.2.17-2.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1. Check the current network status: #ifconfig enp0s25: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.66.4.177 netmask 255.255.252.0 broadcast 10.66.7.255 inet6 fe80::224:7eff:fe05:eb20 prefixlen 64 scopeid 0x20<link> ether 00:24:7e:05:eb:20 txqueuelen 1000 (Ethernet) RX packets 895091 bytes 1094993324 (1.0 GiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 443044 bytes 36142184 (34.4 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 16 memory 0xfc400000-fc420000 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 0 (Local Loopback) RX packets 917 bytes 979420 (956.4 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 917 bytes 979420 (956.4 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 2. Then check on virt-manager for the Network Interfaces. Stay on the tab: Open virt-manager:#virt-manager -> 'Edit' -> 'Connection details' -> 'Network Interfaces' 3. Shutdown a network by ifconfig command. (e.g. enp0s25) #ifconfig enp0s25 down 4. Check the network status by ifconfig command: #ifconfig lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 0 (Local Loopback) RX packets 917 bytes 979420 (956.4 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 917 bytes 979420 (956.4 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 5. Check the network status on Network Interfaces tab. 6. Start a network by ifconfig command. (e.g. enp0s25) #ifconfig enp0s25 up 7. Repeat Step 4 and Step 5. Actual Result: After Step 5, find out virt-manager didn't update the network status immediately. Expected Result: After Step 5, the network should be updated immediately. Alternatively, a refresh button can be used to get the latest status of network interfaces. Additional info: 1. If the tab was switched to another and then switched back, the status of network interfaces was updated immediately. 2. Restart virt-manager, the status of virtual networks will be shown.