Ask Your Question
0

How to change/avoid the periodicity of leasing ip messages in the nova-network.log

asked 2011-03-03 23:20:42 -0500

arturo-lorenzo gravatar image

After getting an IP from the DHCP server, the messages for Leasing IP on the nova-network.log are shown every ~50 seconds. How to avoid or make this longer? See sample below, 2011-03-03 18:10:32,255 DEBUG nova.network.manager [S9GL8JORFGCW66EYP4N1 None None] Leasing IP 10.0.0.2 from MainProcess (pid=20308) lease_fixed_ip /usr/lib/pymodules/python2.6/nova/network/manager.py:194 2011-03-03 18:11:22,258 DEBUG nova.network.manager [S5ZPX7Q-7O4HP2VOEN5A None None] Leasing IP 10.0.0.2 from MainProcess (pid=20308) lease_fixed_ip /usr/lib/pymodules/python2.6/nova/network/manager.py:194 2011-03-03 18:12:17,288 DEBUG nova.network.manager [-7XL67X0SMJ04BA9PX7E None None] Leasing IP 10.0.0.2 from MainProcess (pid=20308) lease_fixed_ip /usr/lib/pymodules/python2.6/nova/network/manager.py:194 2011-03-03 18:13:13,260 DEBUG nova.network.manager [59486TMTDMRZ3J-LWGSK None None] Leasing IP 10.0.0.2 from MainProcess (pid=20308) lease_fixed_ip /usr/lib/pymodules/python2.6/nova/network/manager.py:194 2011-03-03 18:13:58,336 DEBUG nova.network.manager [B96VDXKFRTH99HGXDH8I None None] Leasing IP 10.0.0.2 from MainProcess (pid=20308) lease_fixed_ip /usr/lib/pymodules/python2.6/nova/network/manager.py:194 2011-03-03 18:14:54,299 DEBUG nova.network.manager [3WEGLGSUMQI8-2PBSI6H None None] Leasing IP 10.0.0.2 from MainProcess (pid=20308) lease_fixed_ip /usr/lib/pymodules/python2.6/nova/network/manager.py:194 2011-03-03 18:15:43,298 DEBUG nova.network.manager [UAA8-SJ0J7BO2AUET1GB None None] Leasing IP 10.0.0.2 from MainProcess (pid=20308) lease_fixed_ip /usr/lib/pymodules/python2.6/nova/network/manager.py:194

thanks!

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2011-03-04 08:04:00 -0500

vishvananda gravatar image

you can change the lease time on line 423 of linux_net. (120s leases). this should be a flag. I definitely remember putting in a flag at some point, but apparently it got lost. The advantage of keeping the lease short is that you can actually do db introspection to find out if a server is still up. Another option is to remove the debug statements by by using ---noverbose or -default_log_levels for example, you could add nova.network.manager=INFO to the default log levels list to silence debug messages from that part of the code.

Vish On Mar 3, 2011, at 3:20 PM, arturo lorenzo wrote:

New question #147724 on OpenStack Compute (nova): https://answers.launchpad.net/nova/+q...

After getting an IP from the DHCP server, the messages for Leasing IP on the nova-network.log are shown every ~50 seconds. How to avoid or make this longer? See sample below, 2011-03-03 18:10:32,255 DEBUG nova.network.manager [S9GL8JORFGCW66EYP4N1 None None] Leasing IP 10.0.0.2 from MainProcess (pid=20308) lease_fixed_ip /usr/lib/pymodules/python2.6/nova/network/manager.py:194 2011-03-03 18:11:22,258 DEBUG nova.network.manager [S5ZPX7Q-7O4HP2VOEN5A None None] Leasing IP 10.0.0.2 from MainProcess (pid=20308) lease_fixed_ip /usr/lib/pymodules/python2.6/nova/network/manager.py:194 2011-03-03 18:12:17,288 DEBUG nova.network.manager [-7XL67X0SMJ04BA9PX7E None None] Leasing IP 10.0.0.2 from MainProcess (pid=20308) lease_fixed_ip /usr/lib/pymodules/python2.6/nova/network/manager.py:194 2011-03-03 18:13:13,260 DEBUG nova.network.manager [59486TMTDMRZ3J-LWGSK None None] Leasing IP 10.0.0.2 from MainProcess (pid=20308) lease_fixed_ip /usr/lib/pymodules/python2.6/nova/network/manager.py:194 2011-03-03 18:13:58,336 DEBUG nova.network.manager [B96VDXKFRTH99HGXDH8I None None] Leasing IP 10.0.0.2 from MainProcess (pid=20308) lease_fixed_ip /usr/lib/pymodules/python2.6/nova/network/manager.py:194 2011-03-03 18:14:54,299 DEBUG nova.network.manager [3WEGLGSUMQI8-2PBSI6H None None] Leasing IP 10.0.0.2 from MainProcess (pid=20308) lease_fixed_ip /usr/lib/pymodules/python2.6/nova/network/manager.py:194 2011-03-03 18:15:43,298 DEBUG nova.network.manager [UAA8-SJ0J7BO2AUET1GB None None] Leasing IP 10.0.0.2 from MainProcess (pid=20308) lease_fixed_ip /usr/lib/pymodules/python2.6/nova/network/manager.py:194

thanks!


You received this question notification because you are a member of Nova Core, which is an answer contact for OpenStack Compute (nova).

edit flag offensive delete link more
0

answered 2011-03-09 15:09:47 -0500

arturo-lorenzo gravatar image

Thanks so much, Vish.

edit flag offensive delete link more

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

1 follower

Stats

Asked: 2011-03-03 23:20:42 -0500

Seen: 11 times

Last updated: Mar 09 '11