<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
DIV.FoxDiv20111124093111781808 {
        WORD-WRAP: break-word; COLOR: #000000; -WEBKIT-NBSP-MODE: SPACE; -WEBKIT-LINE-BREAK: AFTER-WHITE-SPACE
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
        LINE-HEIGHT: 1.5; FONT-FAMILY: ËÎÌå; COLOR: #000080; FONT-SIZE: 10.5pt
}
</STYLE>

<META name=GENERATOR content="MSHTML 8.00.6001.23091"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>i have report at here <A 
href="https://bugs.launchpad.net/nova/+bug/894218">https://bugs.launchpad.net/nova/+bug/894218</A> is 
ok?</DIV>
<DIV> </DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>

<DIV><SPAN>ljvsss</SPAN></DIV>
<DIV> </DIV>
<DIV 
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<DIV 
style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; COLOR: #000000; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>From:</B> <A href="mailto:vishvananda@gmail.com">Vishvananda 
Ishaya</A></DIV>
<DIV><B>Date:</B> 2011-11-24 02:28</DIV>
<DIV><B>To:</B> <A href="mailto:ljvsss@gmail.com">ljvsss</A></DIV>
<DIV><B>CC:</B> <A 
href="mailto:openstack@lists.launchpad.net">openstack</A></DIV>
<DIV><B>Subject:</B> Re: [Openstack] the instance'ip lease time in DHCPflat 
mode</DIV></DIV></DIV>
<DIV>
<DIV class=FoxDiv20111124093111781808><BASE href="x-msg://2829/">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 
  style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Helvetica; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; 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" 
  class=Apple-style-span>
  <DIV 
  style="LINE-HEIGHT: 1.5; MARGIN: 10px; COLOR: rgb(0,0,0); FONT-SIZE: 10.5pt">
  <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 style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>

  <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></DIV></DIV></BODY></HTML>