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.
Created attachment 1237888[details]
screenshot
Description of problem:
virt-manager shows wrong status for DHCP mode in 'Network Interface' page
Version-Release number of selected component (if applicable):
virt-manager-1.4.0-2.el7.noarch
libvirt-2.0.0-10.el7.x86_64
qemu-kvm-rhev-2.6.0-27.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
1. In host, we have an active network interface: eno1 using dhcp ip address.
# cat /etc/sysconfig/network-scripts/ifcfg-eno1
DEVICE="eno1"
HWADDR="44:37:e6:61:36:63"
ONBOOT="yes"
BOOTPROTO="dhcp"----------->using dhcp protocol
2. Check network interface information via virt-manager.
Launch virt-manager-->click 'Edit'-->select 'Connection Details'-->turn to 'Network Interfaces' page.
Actual results:
In 'IPv4 Configuration' page, it shows eno1 using static ip address.
Mode: Static
Address: xx.xx.xx.xx/22
Please see detail in screenshot, thanks.
Expected results:
Should show configuration for 'DHCP' mode correctly.
Additional info:
Upstream commit:
commit 2df8dc39e8cab71752f7cb28a66f7a0db8aafe04
Author: Pavel Hrdina <phrdina>
Date: Thu Jan 19 18:00:36 2017 +0100
virtManager/interface: detect whether IP address comes from DHCP server
I can reproduce this bug with package:
virt-manager-1.4.0-2.el7.noarch
Then try to verify this bug with new build:
virt-manager-1.4.1-1.el7.noarch
libvirt-3.1.0-2.el7.x86_64
Steps:
1. Env setup:
Delete eno1 in the Edit->Host Details->Network Interface
Click "Stop Interface" and "Delete Interface" button in the bottom of left.
2. Launch virt-manager:
# virt-manager
3. Click Edit->Connection Details
4. Click Network Interfaces tab on "QEMU/KVM Connection Details" dialogue.
5. Click + button, select interface type as 'Ethernet', click Forward button.
6. Select start mode as 'hotplug', enable activate now, choose "eno1" in
"Choose an unconfigured interface", Choose IP settings: IPv4: DHCP, Click Finish button.
Result:
eno1 network interface shows on left side with configuration:
Ethernet eno1:
MAC: 10:60:4b:7a:90:e6
Status: Active
Start mode: hotpulg
In use by: -
IPv4 Configuration
Mode: DHCP ---------------->correct
Address: xx.xx.xx.xx/22
Since virt-manager can show configuration for 'DHCP' mode correctly, move this bug from ON_QA to VERIFIED.
Add one more step for Comment 4.
7.Stop interface eno1 by click "Stop Interface" button, then check interface mode again, it keeps in "DHCP".
So keeps bug in VERIFIED status.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2017:2072
Created attachment 1237888 [details] screenshot Description of problem: virt-manager shows wrong status for DHCP mode in 'Network Interface' page Version-Release number of selected component (if applicable): virt-manager-1.4.0-2.el7.noarch libvirt-2.0.0-10.el7.x86_64 qemu-kvm-rhev-2.6.0-27.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1. In host, we have an active network interface: eno1 using dhcp ip address. # cat /etc/sysconfig/network-scripts/ifcfg-eno1 DEVICE="eno1" HWADDR="44:37:e6:61:36:63" ONBOOT="yes" BOOTPROTO="dhcp"----------->using dhcp protocol 2. Check network interface information via virt-manager. Launch virt-manager-->click 'Edit'-->select 'Connection Details'-->turn to 'Network Interfaces' page. Actual results: In 'IPv4 Configuration' page, it shows eno1 using static ip address. Mode: Static Address: xx.xx.xx.xx/22 Please see detail in screenshot, thanks. Expected results: Should show configuration for 'DHCP' mode correctly. Additional info: