openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #05656
Re: the instance'ip lease time in DHCPflat mode
i have report at here https://bugs.launchpad.net/nova/+bug/894218 is ok?
ljvsss
From: Vishvananda Ishaya
Date: 2011-11-24 02:28
To: ljvsss
CC: openstack
Subject: Re: [Openstack] the instance'ip lease time in DHCPflat mode
This is a bug. The dhcp least time flag is supposed to be used in place of the 120s. It must have been removed at some point.
Can you please file a bug on launchpad. If you are able to submit a review request in gerrit as well, that would be fantastic.
Vish
On Nov 22, 2011, at 9:45 PM, ljvsss wrote:
hi:
when i use DHCPflat mode,the instance to get ip in fews times
in the log of nova-network.log like this:
2011-11-23 13:33:30,840 DEBUG nova.network.manager [8d6b0be9-1ae7-4f69-a10c-c4d6a42ebc55 None None] Leased IP |10.0.0.22| from (pid=12204)
lease_fixed_ip /usr/lib/python2.7/dist-packages/nova/network/manager.py:642
2011-11-23 13:34:14,850 DEBUG nova.network.manager [cf1929d3-03c5-427f-b41b-beef610b0db2 None None] Leased IP |10.0.0.22| from (pid=12204)
lease_fixed_ip /usr/lib/python2.7/dist-packages/nova/network/manager.py:642
when i change the flag "dhcp_lease_time" in the "network/linux_net.py "
58 flags.DEFINE_integer('dhcp_lease_time', 12000000,
59 'Lifetime of a DHCP lease')
it's still 120s
dnsmasq --strict-order --bind-interfaces --conf-file= --domain=novalocal --pid-file=/var/lib/nova/networks/nova-br1.pid --listen-
address=10.0.0.3 --except-interface=lo --dhcp-range=10.0.0.2,static,120s --dhcp-lease-max=512 --dhcp-
hostsfile=/var/lib/nova/networks/nova-br1.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro
so i change this(in network/linux_net.py ):
626 '--dhcp-range=%s,static,120s' % network_ref['dhcp_start'],
626 '--dhcp-range=%s,static,%d' % (network_ref['dhcp_start'],FLAGS.dhcp_lease_time),
it's work well
dnsmasq --strict-order --bind-interfaces --conf-file= --domain=novalocal --pid-file=/var/lib/nova/networks/nova-br10.pid --listen-address=192.168.0.6 --except-interface=lo --dhcp-range=192.168.0.2,static,12000000 --dhcp-lease-max=256 --dhcp-hostsfile=/var/lib/nova/networks/nova-br10.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro
root 12620 0.0 0.0 7932 1056 pts/2 S+ 00:43 0:00 grep --color=auto dns
ljvsss
_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp
References