yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #36672
[Bug 1482793] [NEW] Failing to read nova-br100.hosts file when using nova network with multi_host configuration.
Public bug reported:
When using nova network in multi_host configuration, it adds an
additional host file to dnsmasq options.
https://github.com/openstack/nova/blob/master/nova/network/linux_net.py#L1152
if network_ref['multi_host']:
cmd.append('--addn-hosts=%s' % _dhcp_file(dev, 'hosts'))
This file is not being created in advance causing a warning in journalctl/syslog
Aug 7 22:00:06 devstack dnsmasq[604]: failed to load names from /opt/stack/data/nova/networks/nova-br100.hosts: No such file or directory
Aug 7 22:00:06 devstack dnsmasq-dhcp[604]: read /opt/stack/data/nova/networks/nova-br100.conf
Aug 7 22:00:06 devstack dnsmasq-dhcp[604]: read /opt/stack/data/nova/networks/nova-br100.opts
Steps to reproduce:
1. Install devstack on a fresh ubuntu 14.04 box
2. set multi_host = True in /etc/nova/nova.conf
3. Create a multihost network
nova-manage network delete 10.0.0.0/24
nova-manage network create --multi_host=T --fixed_range_v4=192.168.0.0/24 --bridge=br100 --label=demo-net
4. Restart nova services
5. Restart dnsmasq
6. Create instances
** Affects: nova
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1482793
Title:
Failing to read nova-br100.hosts file when using nova network with
multi_host configuration.
Status in OpenStack Compute (nova):
New
Bug description:
When using nova network in multi_host configuration, it adds an
additional host file to dnsmasq options.
https://github.com/openstack/nova/blob/master/nova/network/linux_net.py#L1152
if network_ref['multi_host']:
cmd.append('--addn-hosts=%s' % _dhcp_file(dev, 'hosts'))
This file is not being created in advance causing a warning in journalctl/syslog
Aug 7 22:00:06 devstack dnsmasq[604]: failed to load names from /opt/stack/data/nova/networks/nova-br100.hosts: No such file or directory
Aug 7 22:00:06 devstack dnsmasq-dhcp[604]: read /opt/stack/data/nova/networks/nova-br100.conf
Aug 7 22:00:06 devstack dnsmasq-dhcp[604]: read /opt/stack/data/nova/networks/nova-br100.opts
Steps to reproduce:
1. Install devstack on a fresh ubuntu 14.04 box
2. set multi_host = True in /etc/nova/nova.conf
3. Create a multihost network
nova-manage network delete 10.0.0.0/24
nova-manage network create --multi_host=T --fixed_range_v4=192.168.0.0/24 --bridge=br100 --label=demo-net
4. Restart nova services
5. Restart dnsmasq
6. Create instances
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1482793/+subscriptions
Follow ups