Bug 1393175

Summary: Do not assign network address to instance
Product: Red Hat OpenStack Reporter: Shinobu KINJO <skinjo>
Component: openstack-neutronAssignee: Daniel Alvarez Sanchez <dalvarez>
Status: CLOSED ERRATA QA Contact: Toni Freger <tfreger>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 7.0 (Kilo)CC: amuller, apevec, chrisw, dalvarez, jthomas, majopela, mfuruta, mlopes, nyechiel, skinjo, srevivo
Target Milestone: asyncKeywords: ZStream
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-neutron-2015.1.4-11 Doc Type: Bug Fix
Doc Text:
Previously, the DHCP agent only restarted its process when DHCP-enabled subnets were changed. Consequently, when a subnet with DHCP disabled was added or updated, it broke the association between the opts file tags and the process arg tags, which led to a state where dnsmasq sent its IP address as a default gateway. With this update, the process is restarted when a subnet with DHCP disabled is added or removed. As a result, dnsmasq is now correctly spawned with a matching opts file and tag args.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-19 13:26:52 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:

Comment 42 Toni Freger 2016-11-30 13:31:16 UTC
The bug verified with latest version openstack-neutron-2015.1.4-11.el7ost.noarch

Verification steps:
1)Create internal network with three different subnets 
2)Sub1 - with dhcp enabled
3)Sub2 - with dhcp disabled
4)Sub3 - ipv6 stateless 

5)Check dnsmask process: 
/addn_hosts --dhcp-optsfile=/var/lib/neutron/dhcp/83c8f4ae-ec79-446a-8144-d1e2a0e78690/opts --dhcp-leasefile=/var/lib/neutron/dhcp/83c8f4ae-ec79-446a-8144-d1e2a0e78690/leases --dhcp-range=set:tag0,90.90.90.0,static,86400s --dhcp-range=set:tag1,2005:db2::,static,64,86400s --dhcp-lease-max=16777216 --conf-file=/etc/neutron/dnsmasq-neutron.conf --domain=openstacklocal

6)Check opt file of the dhcp 
 cat /var/lib/neutron/dhcp/83c8f4ae-ec79-446a-8144-d1e2a0e78690/opts 
tag:tag0,option:classless-static-route,80.80.80.0/24,0.0.0.0,0.0.0.0/0,90.90.90.1
tag:tag0,249,80.80.80.0/24,0.0.0.0,0.0.0.0/0,90.90.90.1
tag:tag0,option:router,90.90.90.1
tag:tag1,option6:domain-search,openstacklocal
tag:tag0,option:dns-server,90.90.90.3,90.90.90.4,90.90.90.2
tag:tag1,option6:dns-server,[2005:db2::f816:3eff:fe13:2e96],[2005:db2::f816:3eff:fe01:1d12],[2005:db2::f816:3eff:fe09:9341]

tag0 contains all information that related to the Sub1 (dhcp enabled) when tag1 contains ipv6 subnet configurations, no mismatch between the tags was found.

Comment 57 errata-xmlrpc 2017-01-19 13:26:52 UTC
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-2017-0159.html