Comment 17 for bug 1630299

Revision history for this message
Aleksey Zvyagintsev (azvyagintsev) wrote :

Quick in-place fix:
You can edit file `/etc/dnsmasq.d/default.conf`
`dhcp-range=default,192.168.2.110,192.168.2.210,255.255.0.0,120m`
where 120m - is default lease time, after change you need to restart dnsmasq :
`systemctl restart dnsmasq.service`

But preferred fix it in, in fuel-library :
in fuel-master fix file :
/etc/puppet/mitaka-9.0/modules/fuel/manifests/dnsmasq/dhcp_range.pp
(at line `$lease_time = '120m'` )
(Read more in [1])
And re-run puppet apply with command :
`/etc/puppet/modules/fuel/examples/deploy.sh` (read more in [3])

Otherwise, with applying update or puppet re-run - you'r change will be overwrited by puppet.

After you done with dnsmasq config, you need to reboot all discovered nodes.
(or restart dhclient on each node)

# See in code
[1]https://github.com/openstack/fuel-library/blob/211e873bdd2e35313043b122990b2793d6249714/deployment/puppet/fuel/manifests/dnsmasq/dhcp_range.pp#L19
https://github.com/openstack/fuel-library/blob/211e873bdd2e35313043b122990b2793d6249714/deployment/puppet/fuel/templates/dnsmasq.dhcp-range.erb#L3
[3] https://github.com/openstack/fuel-main/blob/master/iso/bootstrap_admin_node.sh#L534