Summary: | libvirt should verify proper address family of <host> when updating network | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Hu Jianwei <jiahu> |
Component: | libvirt | Assignee: | Laine Stump <laine> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.1 | CC: | dyuan, honzhang, laine, mzhan, rbalakri, shyu |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.2.17-5.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-11-19 06:08:34 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: |
Description
Hu Jianwei
2015-01-22 07:36:48 UTC
This patch was pushed upstream: commit 6a21bc119e37bafcbe5cfd13e57080d651296b43 Author: Laine Stump <laine> Date: Mon Jan 19 17:04:01 2015 -0500 network: verify proper address family in updates to <host> and <range> Verify this bug with libvirt-1.2.17-7.el7.x86_64 1. Prepare a network # virsh net-dumpxml default6 <network> <name>default6</name> <uuid>999fc2e3-a6e4-49a4-b7c2-0bf186ca182a</uuid> <forward mode='nat'> <nat> <port start='1024' end='65535'/> </nat> </forward> <bridge name='virbr1' stp='on' delay='0'/> <mac address='52:54:00:2d:3a:21'/> <ip address='192.168.123.1' netmask='255.255.255.0'> <dhcp> <range start='192.168.123.2' end='192.168.123.254'/> </dhcp> </ip> <ip family='ipv6' address='2001:db8:ca2:2::1' prefix='64'> <dhcp> <range start='2001:db8:ca2:2:1::10' end='2001:db8:ca2:2:1::ff'/> </dhcp> </ip> </network> 2. Prepare a xml file # cat ipv6-host.xml <host id='00:04:58:fd:e4:15:1b:09:4c:0e:09:af:e4:d3:8c:b8:ca:1e' name="redhatipv6.redhat.com" ip='2001:db8:ca2:2::119'/> 3. Update network #virsh net-update default6 add-first ip-dhcp-host ipv6-host.xml --parent-index 0 error: Failed to update network default6 error: Requested operation is not valid: the address family of a host entry IP must match the address family of the dhcp element's parent So this bug can be verified. 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://rhn.redhat.com/errata/RHBA-2015-2202.html |