Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/

Bug 1269606

Summary: IRONIC - dnsmasq is pointing to the wrong IP range
Product: [Community] RDO Reporter: Ignacio Bravo <ibravo>
Component: instack-undercloudAssignee: James Slagle <jslagle>
Status: CLOSED DUPLICATE QA Contact: yeylon <yeylon>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: LibertyCC: srevivo
Target Milestone: ---   
Target Release: Kilo   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-14 13:03:45 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 Ignacio Bravo 2015-10-07 17:06:44 UTC
Description of problem:
ironic-inspector-dnsmasq is pointing to the default IP range rather than the one determined in the ~/undercloud.conf file



Version-Release number of selected component (if applicable):


How reproducible:
all the time

Steps to Reproduce:
1. Install undercloud based on http://docs.openstack.org/developer/tripleo-docs/installation/installing.html
2. Change the DHCP IP ranges in ~/undercloud.conf
3. check logs for dnsmasq ranges using 'sudo journalctl -u openstack-ironic-inspector-dnsmasq'

Actual results:

[stack@bl16 ~]$ sudo journalctl -u openstack-ironic-inspector-dnsmasq
-- Logs begin at Wed 2015-10-07 10:33:42 EDT, end at Wed 2015-10-07 12:54:18 EDT. --
Oct 07 11:50:03 bl16.hq.ltg systemd[1]: Starting PXE boot dnsmasq service for Ironic Inspector...
Oct 07 11:50:03 bl16.hq.ltg dnsmasq[9283]: started, version 2.66 DNS disabled
Oct 07 11:50:03 bl16.hq.ltg dnsmasq[9283]: compile time options: IPv6 GNU-getopt DBus no-i18n IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth
Oct 07 11:50:03 bl16.hq.ltg dnsmasq-dhcp[9283]: DHCP, IP range 192.0.2.100 -- 192.0.2.120, lease time 2m
Oct 07 11:50:03 bl16.hq.ltg dnsmasq-tftp[9283]: TFTP root is /tftpboot
Oct 07 11:50:03 bl16.hq.ltg systemd[1]: Started PXE boot dnsmasq service for Ironic Inspector.


Expected results:
DHCP IP range should be similar to the one specified in the undercloud.conf file

Additional info:

Comment 1 Ignacio Bravo 2015-10-07 17:19:53 UTC
It seems like the file /etc/ironic-inspector/dnsmasq.conf is not updated with the values from ~/undercloud.conf

Manually updating the file and then restarting the service does the trick

vi /etc/ironic-inspector/dnsmasq.conf
service openstack-ironic-inspector-dnsmasq restart

Results:
[root@bl16 stack]# service openstack-ironic-inspector-dnsmasq restart
Redirecting to /bin/systemctl restart  openstack-ironic-inspector-dnsmasq.service
[root@bl16 stack]# service openstack-ironic-inspector-dnsmasq status
Redirecting to /bin/systemctl status  openstack-ironic-inspector-dnsmasq.service
openstack-ironic-inspector-dnsmasq.service - PXE boot dnsmasq service for Ironic Inspector
   Loaded: loaded (/usr/lib/systemd/system/openstack-ironic-inspector-dnsmasq.service; enabled)
   Active: active (running) since Wed 2015-10-07 13:18:39 EDT; 4s ago
  Process: 8940 ExecStart=/sbin/dnsmasq --conf-file=/etc/ironic-inspector/dnsmasq.conf (code=exited, status=0/SUCCESS)
 Main PID: 8942 (dnsmasq)
   CGroup: /system.slice/openstack-ironic-inspector-dnsmasq.service
           └─8942 /sbin/dnsmasq --conf-file=/etc/ironic-inspector/dnsmasq.conf

Oct 07 13:18:39 bl16.hq.ltg systemd[1]: Starting PXE boot dnsmasq service for Ironic Inspector...
Oct 07 13:18:39 bl16.hq.ltg dnsmasq[8942]: started, version 2.66 DNS disabled
Oct 07 13:18:39 bl16.hq.ltg dnsmasq[8942]: compile time options: IPv6 GNU-getopt DBus no-i18n IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth
Oct 07 13:18:39 bl16.hq.ltg dnsmasq-dhcp[8942]: DHCP, IP range 192.168.10.5 -- 192.168.10.45, lease time 2m
Oct 07 13:18:39 bl16.hq.ltg dnsmasq-tftp[8942]: TFTP root is /tftpboot
Oct 07 13:18:39 bl16.hq.ltg systemd[1]: Started PXE boot dnsmasq service for Ironic Inspector.

Comment 2 Ignacio Bravo 2015-10-14 13:03:45 UTC
Closed.
Duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1270033

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