Bug 1341460
Summary: | update dns settings in network by net-update will not take effect immediately | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | yalzhang <yalzhang> |
Component: | libvirt | Assignee: | Laine Stump <laine> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.3 | CC: | dyuan, rbalakri |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.3.5-1.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-03 18:46:15 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: | |
Embargoed: |
Description
yalzhang@redhat.com
2016-06-01 06:25:45 UTC
There is already a patch from laine for this problem. https://www.redhat.com/archives/libvir-list/2016-May/msg02122.html Upstream commit (will be in 1.3.5) commit 93b59fcff60ee3e2ac3e67164b992d1335e9d0a2 Author: Laine Stump <laine> Date: Tue May 31 11:51:29 2016 -0400 network: restart dnsmasq after adding/removing txt and srv records verified on libvirt-1.3.5-1.el7.x86_64, the result is as expected.Move it to verified. 1. start a network with srv txt and host defined in dns section. 2. start a guest using this network, and use dig to check all the srv, txt, host record works fine. 3. check the network's conf file and the pid of dnsmasq 4. delete the txt, srv, and host in dns section # virsh net-update network add dns-txt "<txt name='example' value='example-test'/>" Updated network network live state 5.On the guest, check #dig -t txt example ----->will get no answer. check the config file on the host, the txt record is deleted. # cat /var/lib/libvirt/dnsmasq/network.conf check the pid of dnsmasq, it is different with step 3. 6. same steps for dns-srv, dns-host 7. same with step5 to check "add dns-txt" "add dns-srv" # virsh net-update network add dns-txt "<txt name='example1' value='example-test1'/>" Updated network network live state 8. for add dns-host # cat net.xml <host ip='192.168.10.3'> <hostname>mynewhost</hostname> <hostname>mynewhostalias</hostname> </host> # virsh net-update network add dns-host --xml net.xml Updated network network live state # cat /var/lib/libvirt/dnsmasq/network.addnhosts 192.168.10.3 mynewhost mynewhostalias 9. these section can not be modified # virsh net-update network modify dns-srv "<srv service='name' protocol='tcp' domain='test' target='tessdfdf'/>" error: Failed to update network network error: Operation not supported: DNS SRV records cannot be modified, only added or deleted # virsh net-update network modify dns-txt "<txt name='example' value='example-'/>" error: Failed to update network network error: Operation not supported: DNS TXT records cannot be modified, only added or deleted 10. add same record will report error # cat /var/lib/libvirt/dnsmasq/network.addnhosts 192.168.10.3 mynewhost mynewhostalias # cat net.xml <host ip='192.168.10.3'> <hostname>myneeeewhost</hostname> <hostname>myneeeewhostalias</hostname> </host> # virsh net-update network add dns-host --xml net.xml error: Failed to update network network error: Requested operation is not valid: there is already at least one DNS HOST record with a matching field in network network 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/RHSA-2016-2577.html |