RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1269606 - IRONIC - dnsmasq is pointing to the wrong IP range
Summary: IRONIC - dnsmasq is pointing to the wrong IP range
Keywords:
Status: CLOSED DUPLICATE of bug 1270033
Alias: None
Product: RDO
Classification: Community
Component: instack-undercloud
Version: Liberty
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Kilo
Assignee: James Slagle
QA Contact: yeylon@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-07 17:06 UTC by Ignacio Bravo
Modified: 2016-04-18 06:55 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-10-14 13:03:45 UTC
Embargoed:


Attachments (Terms of Use)

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 ***


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