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

Asked by arturo lorenzo on 2011-03-03

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!

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
arturo lorenzo
Solved:
Last query:
Last reply:
Revision history for this message
Vish Ishaya (vishvananda) said :
#1

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/+question/147724
>
> 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).

Revision history for this message
arturo lorenzo (arturo-lorenzo) said :
#2

Thanks so much, Vish.