2 dnsmasqs... new VMs fails to get an IP address and metadata

Asked by Salman

Hi All,

I am trying to launch an instance using horizon but it fails to get the right networking configuration (dhcp lease is failing and no IP gets assigned to the VM). Here is the output when I do ps aux | grep dnsmasq:

salman 2303 0.0 0.0 13448 904 pts/14 S+ 01:19 0:00 grep --color=auto dnsmasq
nobody 31730 0.0 0.0 28672 944 ? S 01:02 0:00 /usr/sbin/dnsmasq --strict-order --bind-interfaces --conf-file= --domain=novalocal --pid-file=/opt/stack/nova/networks/nova-gw-f3eda887-fd.pid --listen-address=10.0.0.1 --except-interface=lo --dhcp-range=10.0.0.2,static,120s --dhcp-lease-max=256 --dhcp-hostsfile=/opt/stack/nova/networks/nova-gw-f3eda887-fd.conf --dhcp-script=/opt/stack/nova/bin/nova-dhcpbridge --leasefile-ro
root 31731 0.0 0.0 28644 220 ? S 01:02 0:00 /usr/sbin/dnsmasq --strict-order --bind-interfaces --conf-file= --domain=novalocal --pid-file=/opt/stack/nova/networks/nova-gw-f3eda887-fd.pid --listen-address=10.0.0.1 --except-interface=lo --dhcp-range=10.0.0.2,static,120s --dhcp-lease-max=256 --dhcp-hostsfile=/opt/stack/nova/networks/nova-gw-f3eda887-fd.conf --dhcp-script=/opt/stack/nova/bin/nova-dhcpbridge --leasefile-ro

I know that two dnsmasqs is normal (one for public network and one for provate network ?) but I am not sure how to assign a VM an IP from the private subnet (10.0.0.0/24 in my case) via DHCP.

Here is my nova.conf:
[DEFAULT]
verbose=True
auth_strategy=keystone
allow_resize_to_same_host=True
root_helper=sudo /usr/local/bin/nova-rootwrap
compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcp_listen_address=169.254.169.254 #HAD SET THIS FLAG AFTER READING VISH's SUGGESTION (that solved many people's problem)
fixed_range=10.0.0.0/24
s3_host=10.0.3.15
s3_port=3333
network_manager=nova.network.quantum.manager.QuantumManager
quantum_connection_host=localhost
quantum_connection_port=9696
libvirt_vif_type=ethernet
libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtOpenVswitchDriver
linuxnet_interface_driver=quantum.plugins.ryu.nova.linux_net.LinuxOVSRyuInterfaceDriver
quantum_use_dhcp=True
osapi_compute_extension=nova.api.openstack.compute.contrib.standard_extensions
my_ip=10.0.3.15
public_interface=br100
vlan_interface=eth0
flat_network_bridge=br100
flat_interface=eth1
sql_connection=mysql://root:nova@localhost/nova?charset=utf8
libvirt_type=qemu
instance_name_template=instance-%08x
novncproxy_base_url=http://10.0.3.15:6080/vnc_auto.html
xvpvncproxy_base_url=http://10.0.3.15:6081/console
vncserver_listen=127.0.0.1
vncserver_proxyclient_address=127.0.0.1
api_paste_config=/etc/nova/api-paste.ini
image_service=nova.image.glance.GlanceImageService
ec2_dmz_host=10.0.3.15
rabbit_host=localhost
rabbit_password=nova
glance_api_servers=10.0.3.15:9292
force_dhcp_release=True
connection_type=libvirt
firewall_driver=quantum.plugins.ryu.nova.firewall.NopFirewallDriver
linuxnet_ovs_ryu_api_host=127.0.0.1:8080

where dhcp_listen_address=169.254.169.254 was added after reading Vish's suggestion. Note that I haven't restarted dnsmasqs after adding the flag (because when I do so : "sudo /etc/init.d/dnsmasq restart" I get : "sudo: /etc/init.d/dnsmasq: command not found").

Thanks!

Question information

Language:
English Edit question
Status:
Expired
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.