Ask Your Question
0

Restart network on compute node?

asked 2013-12-16 15:50:11 -0600

caseyamcl gravatar image

I'm using an Essex Nova Network VLAN configuration. I noticed that one of the bridged interfaces on my compute nodes has been assigned an IP that I do not wish it to have. So, I ran nova-manage fixed reserve [IP] for that Ip address.

I need the bridged interface to pick up a new IP address now that I've made that change to the db. Is it safe to simply run /etc/init.d/networking restart on the compute node, or do I need to take additional steps?

Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-12-16 17:10:33 -0600

jtopjian gravatar image

Are you running in multi-host mode? I ask because in non-multi-host mode (ie where nova-network is only run on the "cloud controller"), compute nodes will not have IP addresses on their bridges.

You can restart networking, but then you must immediately restart nova-network so it can rebuild all of the bridges. I recommend trying this out in a sandbox environment first if possible. I do not recommend doing this on a node that does not have nova-network running on it.

A less disruptive way might be to either:

  • remove the IP from the bridge (ip addr del 1.2.3.4 dev br100) or
  • totally tear down the bridge and vlan devices

Then restart nova-network

edit flag offensive delete link more

Comments

Thanks for the help! It is multi-host mode, and I basically did that technique.

caseyamcl gravatar imagecaseyamcl ( 2013-12-17 07:29:20 -0600 )edit

Another thing that can be done (quick and dirty hack) is to reserve the IP in the Openstack database, then manually change the IP of the bridge (`ifconfig br123 192.168.1.2 netmask 255.255.255.0 up`). The next time nova-network restarts, it will assign another non-reserved IP anyways.

caseyamcl gravatar imagecaseyamcl ( 2013-12-17 07:30:43 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2013-12-16 15:50:11 -0600

Seen: 631 times

Last updated: Dec 16 '13