How do I fix errors with IP addresses for VMs?

asked 2013-04-11 13:57:33 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I see that nova-network or nova-compute show errors with the IP assigned to the virtual machines themselves, I see something like this:

2010-12-05 21:48:40-0600 [-] nova.exception.ProcessExecutionError: Unexpected error while running command.
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-04-11 13:59:26 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

You can verify the issue with this command:

sudo -E dnsmasq --strict-order --bind-interfaces --conf-file= --pid-file=/var/lib/nova/networks/nova-br100.pid --listen-address=192.168.0.1 --except-interface=lo --dhcp-range=192.168.0.3,static,120s --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro

where the listen-address is the address that you see errors when sending commands to it.

To verify that this is your error, you should see this type of response after sending the dnsmasq command:

2010-12-05 21:48:40-0600 [-] Exit code: 2
2010-12-05 21:48:40-0600 [-] Stdout: ''
2010-12-05 21:48:40-0600 [-] Stderr: '\ndnsmasq: failed to bind listening socket for 192.168.0.1: Address already in use\n'

Fix with these commands:

 killall dnsmasq --service nova-network restart

Reboot instances if problem persists.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-04-11 13:57:33 -0500

Seen: 1,015 times

Last updated: Apr 11 '13