<html><head><base href="x-msg://2829/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">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.<div><br></div><div>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.</div><div><br></div><div>Vish</div><div><br><div><div>On Nov 22, 2011, at 9:45 PM, ljvsss wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="line-height: 1.5; color: rgb(0, 0, 0); font-size: 10.5pt; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px; "><div>hi:</div><div style="text-indent: 2em; ">when i use DHCPflat mode,the instance to get ip in fews times</div><div style="text-indent: 2em; ">in the log of nova-network.log like this:</div><div style="text-indent: 2em; "> </div><div style="text-indent: 2em; "><div><span style="color: rgb(255, 102, 0); ">2011-11-23 13:33:30</span>,840 DEBUG nova.network.manager [8d6b0be9-1ae7-4f69-a10c-c4d6a42ebc55 None None] Leased IP |10.0.0.22| from (pid=12204) </div><div>lease_fixed_ip /usr/lib/python2.7/dist-packages/nova/network/manager.py:642</div><div> </div><div><span style="color: rgb(255, 102, 0); ">2011-11-23 13:34:14</span>,850 DEBUG nova.network.manager [cf1929d3-03c5-427f-b41b-beef610b0db2 None None] Leased IP |10.0.0.22| from (pid=12204) </div><div> </div><div>lease_fixed_ip /usr/lib/python2.7/dist-packages/nova/network/manager.py:642</div><div> </div><div> </div><div>when i change the flag "dhcp_lease_time" in the "network/linux_net.py "</div><div style="text-indent: 4em; "><div> 58 flags.DEFINE_integer('dhcp_lease_time', 12000000,</div><div> 59                      'Lifetime of a DHCP lease') </div><div> </div></div><div>it's still 120s</div><div><div>dnsmasq --strict-order --bind-interfaces --conf-file= --domain=novalocal --pid-file=/var/lib/nova/networks/nova-br1.pid --listen-</div><div> </div><div>address=10.0.0.3 --except-interface=lo --dhcp-range=10.0.0.2,static,<span style="color: rgb(255, 102, 0); ">120s</span> --dhcp-lease-max=512 --dhcp-</div><div> </div><div>hostsfile=/var/lib/nova/networks/nova-br1.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro</div><div> </div><div> </div><div> </div><div>so i change this(in network/linux_net.py ):</div><div>626            '--dhcp-range=%s,static,120s' % network_ref['dhcp_start'],</div><div>626            '--dhcp-range=%s,static,%d' % (network_ref['dhcp_start'],FLAGS.dhcp_lease_time),  </div><div> </div><div>it's work well</div><div> </div><div><div>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,<span style="color: rgb(255, 102, 0); ">12000000</span> --dhcp-lease-max=256 --dhcp-hostsfile=/var/lib/nova/networks/nova-br10.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro</div><div>root     12620  0.0  0.0   7932  1056 pts/2    S+   00:43   0:00 grep --color=auto dns</div></div><div> </div><div> </div><div> </div></div></div><div> </div><hr align="left" color="#b5c4df" size="1" style="width: 210px; height: 1px; "><div><span>ljvsss</span></div>_______________________________________________<br>Mailing list:<span class="Apple-converted-space"> </span><a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>Post to     :<span class="Apple-converted-space"> </span><a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe :<span class="Apple-converted-space"> </span><a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>More help   :<span class="Apple-converted-space"> </span><a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br></div></span></blockquote></div><br></div></body></html>