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.
Bug 907769 - virsh net-update can add multiple dhcp sections to ipv4 in network.
Summary: virsh net-update can add multiple dhcp sections to ipv4 in network.
Keywords:
Status: CLOSED DUPLICATE of bug 907779
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: rc
: ---
Assignee: Jiri Denemark
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-05 08:46 UTC by hongming
Modified: 2014-04-11 08:19 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-11 08:19:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description hongming 2013-02-05 08:46:54 UTC
Description of problem:
virsh net-update can add multiple dhcp sections to ipv4 in network. 

Version-Release number of selected component (if applicable):
libvirt-0.10.2-18.el6.x86_64 

How reproducible:
100% 

Steps to Reproduce:
# virsh net-list --all
Name                 State      Autostart     Persistent
--------------------------------------------------
default              active     yes           yes
mynetwork            inactive   no            yes

# virsh net-start mynetwork
Network mynetwork started

# virsh net-dumpxml mynetwork
<network>
<name>mynetwork</name>
<uuid>6e9bb2dd-b99d-630f-39d1-b69a806da550</uuid>
<forward mode='nat'/>
<bridge name='virbr1' stp='on' delay='0' />
<mac address='52:54:00:E5:B6:95'/>
<ip address='192.168.121.2' netmask='255.255.255.0'>
</ip>
<ip address='192.168.10.2' netmask='255.255.255.0'>
</ip>
</network>

# virsh net-update mynetwork add ip-dhcp-host "<host mac='00:11:22:33:44:55' ip='192.168.122.45'/>" --live --config --parent-index 0
Updated network mynetwork persistent config and live state

# virsh net-update mynetwork add ip-dhcp-host "<host mac='00:11:22:33:44:56' ip='192.168.122.46'/>" --live --config --parent-index 1
Updated network mynetwork persistent config and live state


# virsh net-dumpxml mynetwork<network>
<name>mynetwork</name>
<uuid>6e9bb2dd-b99d-630f-39d1-b69a806da550</uuid>
<forward mode='nat'/>
<bridge name='virbr1' stp='on' delay='0' />
<mac address='52:54:00:E5:B6:95'/>
<ip address='192.168.121.2' netmask='255.255.255.0'>
<dhcp>
<host mac='00:11:22:33:44:55' ip='192.168.122.45' />
</dhcp>
</ip>
<ip address='192.168.10.2' netmask='255.255.255.0'>
<dhcp>
<host mac='00:11:22:33:44:56' ip='192.168.122.46' />
</dhcp>
</ip>
</network>

# virsh net-destroy mynetwork
Network mynetwork destroyed

# virsh net-start mynetwork
Network mynetwork started 
  
Actual results:
as above 

Expected results:
Check for multiple DHCP sections
for example , the following error should occurs.

# virsh net-dumpxml mynetwork > mynetwork.xml

# virsh net-define mynetwork.xml
error: Failed to define network from mynetwork.xml
error: unsupported configuration: Multiple dhcp sections found. dhcp is supported only for a single IPv4 address on each network 

Additional info:

Comment 1 hongming 2013-02-05 08:56:30 UTC
virsh net-start also doesn't check for multiple DHCP sections in network.

Comment 2 hongming 2013-05-27 03:06:08 UTC
Clone of 
(rhel7) Bug 907779 - virsh net-update can add multiple dhcp sections to ipv4 in network

Comment 6 Jiri Denemark 2014-04-04 21:37:41 UTC
This bug was not selected to be addressed in Red Hat Enterprise Linux 6. We will look at it again within the Red Hat Enterprise Linux 7 product.

Comment 7 Jiri Denemark 2014-04-11 08:19:39 UTC

*** This bug has been marked as a duplicate of bug 907779 ***


Note You need to log in before you can comment on or make changes to this bug.