Wrong listen-address for dnsmasq service after Updating to 9.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
High
|
Kyrylo Galanov | ||
Mitaka |
Fix Released
|
High
|
Kyrylo Galanov | ||
Newton |
Fix Committed
|
High
|
Kyrylo Galanov |
Bug Description
There are two ways how to update Fuel from 9.0 to 9.1:
1) Install 9.0 (fuel-devops framework with test group prepare_release could be used)
2) Create a new yum repo file with appropriate repository (for ex. [1])
3) Run yum update
4) Run `fuel-bootstrap build --verbose --debug --activate --label 'new-bootstrap'` on the master ndoe to rebuild bootstrap.
Result: on the each step I see right ip address at the /etc/dnsmasq.
The second way:
1) Export an environment variables UPDATE_MASTER, UPDATE_FUEL_MIRROR, EXTRA_DEB_REPOS, MIRROR_UBUNTU (you can see my deploy.sh script in attachments)
2) Deploy an environment (group prepare_release is used again)
In this way we also run yum update and a bootstrap rebuild under tests.
Result: as I see at the dnsmasq.conf listen-address is wrong:
[root@nailgun ~]# cat /etc/dnsmasq.
listen-
dhcp-range=
dhcp-option=
dhcp-boot=
dhcp-match=
dhcp-option-
This ip address belongs to docker0 (?!) interface. After some manipulations this interface has disappeared from the system.
And as a result:
[root@nailgun ~]# systemctl status dnsmasq.service
● dnsmasq.service - DNS caching server.
Loaded: loaded (/usr/lib/
Drop-In: /etc/systemd/
Active: activating (auto-restart) (Result: exit-code) since Tue 2016-08-23 13:32:52 UTC; 1s ago
Process: 3498 ExecStart=
Main PID: 3498 (code=exited, status=2)
Aug 23 13:32:52 nailgun.
Aug 23 13:32:52 nailgun.
Aug 23 13:32:52 nailgun.
Aug 23 13:32:52 nailgun.
Aug 23 13:32:52 nailgun.
Aug 23 13:32:52 nailgun.
Aug 23 13:32:52 nailgun.
Aug 23 13:32:52 nailgun.
[root@nailgun ~]# netstat -nap| grep masq
[root@nailgun ~]#
If I tried to boot some node, it couldn't obtain an ip address and boot from pxe.
So, I think that we need check that config for a valid ip address and re-configure it if it needed.
Or to bind to the interface.
[1] http://
Changed in fuel: | |
status: | New → Confirmed |
assignee: | Fuel Sustaining (fuel-sustaining-team) → Maksim Malchuk (mmalchuk) |
tags: | added: area-library |
tags: | added: team-bugfix |
Changed in fuel: | |
assignee: | Maksim Malchuk (mmalchuk) → Kyrylo Galanov (kgalanov) |
Changed in fuel: | |
milestone: | 10.0 → 9.1 |
Changed in fuel: | |
status: | In Progress → Fix Committed |
tags: | added: on-verification |
If you don't have any ip addresses at time of setup it'll only default to the docker ip as it's the only interface that'll have an address. The bug seems related to https:/ /review. openstack. org/#/c/ 349721/ since that is the code that adds the listen addresses to the configuration. It seems that you did not have any ip addresses configured at the time of the cobbler setup except the docker interface. Anytime you change the network interfaces and their ip addresses on the server you'll need to rerun the fuel master setup (or at least the cobbler task).