Ok, thanks for your answer.<br>So, that's mean the current trunk doesn't work with trio Nova+Quantum+Melange.<br>That's correct ?<br><br>Doude.<br><br><div class="gmail_quote">2012/2/29 Dan Wendlandt <span dir="ltr"><<a href="mailto:dan@nicira.com">dan@nicira.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><br><div class="gmail_quote"><div class="im">2012/2/29 Jérôme Gallard <span dir="ltr"><<a href="mailto:jeronimo974@gmail.com" target="_blank">jeronimo974@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi Jason,<br>
<br>
Thank you very much for your answer.<br>
The problem about the wrong ip address is solved now! Perhaps this<br>
octect should be excluded automatically by nova at the network<br>
creation time?<br></blockquote><div><br></div></div><div>I agree that it seems reasonable to have the default exclude the .0 address. </div><div class="im"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<br>
Regarding the other problem about nova/melange, in fact, I creates all<br>
my networks with the nova-manage command:<br>
nova-manage network create --label=public<br>
--project_id=def761d251814aa8a10a1e268206f02d<br>
--fixed_range_v4=<a href="http://172.16.0.0/24" target="_blank">172.16.0.0/24</a> --priority=0 --gateway=172.16.0.1<br>
But it seems that the nova.fixed_ips table is not well filled.<br></blockquote><div><br></div></div><div>When using melange, the nova DB is not used to store IP address allocations.  They are stored in Melange.  We allow network create using nova-manage purely for backward compatibility.  The underlying implementation is totally different, with Nova effectively acting as a client to proxy calls to Quantum + Melange.  Hope that helps. </div>


<div><br></div><div>Dan</div><div><div class="h5"><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks again,<br>
Jérôme<br>
<div><div><br>
On Tue, Feb 28, 2012 at 16:31, Jason Kölker <<a href="mailto:jkoelker@rackspace.com" target="_blank">jkoelker@rackspace.com</a>> wrote:<br>
> On Tue, 2012-02-28 at 11:52 +0100, Jérôme Gallard wrote:<br>
>> Hi all,<br>
>><br>
>> I use the trunk version of Nova, Quantum (with the OVS plugin) and Melange.<br>
>> I created networks, everything seems to be right.<br>
>><br>
>> I have two questions :<br>
>> - the first VM I boot takes always a wrong IP address (for instance<br>
>> 172.16.0.0). However, when I boot a second VM, this one takes a good<br>
>> IP (for instance 172.16.0.2). Do you know why this can happened ?<br>
><br>
> The default melange policy allows assignment of the network address and<br>
> synthesise a gateway address (if it is not specified). It will not hand<br>
> out the gateway address. The "fix" is to create an ip policy that<br>
> restricts the octect 0. I think the syntax is something like<br>
><br>
> `melange policy create -t {tennant} name={block_name}<br>
> desc={policy_name}` (This should return the policy_id for the next<br>
> command)<br>
><br>
> `melange unusable_ip_octet create -t {tennant} policy_id={policy_id}<br>
> octect=0`<br>
><br>
> `melange ip_block update -t {tennant} id={block_id}<br>
> policy_id={policy_id}`<br>
><br>
><br>
>> - I have an error regarding an fixed IP not found. Effectively, when I<br>
>> check the nova database, the fixed_ip table is empty but as I am using<br>
>> quantum and melange and their tables seems to be nicely filled. Do you<br>
>> have an idea about this issue ?<br>
>> This is a copy/paste of the error:<br>
>> 2012-02-28 10:45:53 DEBUG nova.rpc.common [-] received<br>
>> {u'_context_roles': [u'admin'], u'_context_request_id':<br>
>> u'req-461788a6-3570-4fa9-8620-6705eb69243c', u│··<br>
>> '_context_read_deleted': u'no', u'args': {u'address': u'172.16.0.2'},<br>
>> u'_context_auth_token': None, u'_context_strategy': u'noauth',<br>
>> u'_context_is_admin': Tr│··<br>
>> ue, u'_context_project_id': None, u'_context_timestamp':<br>
>> u'2012-02-28T09:45:53.484445', u'_context_user_id': None, u'method':<br>
>> u'lease_fixed_ip', u'_context_r│··<br>
>> emote_address': None} from (pid=8844) _safe_log<br>
>> /usr/local/src/nova/nova/rpc/common.py:144 │··<br>
>> 2012-02-28 10:45:53 DEBUG nova.rpc.common<br>
>> [req-461788a6-3570-4fa9-8620-6705eb69243c None None] unpacked context:<br>
>> {'request_id': u'req-461788a6-3570-4fa9-8620│··<br>
>> -6705eb69243c', 'user_id': None, 'roles': [u'admin'], 'timestamp':<br>
>> '2012-02-28T09:45:53.484445', 'is_admin': True, 'auth_token': None,<br>
>> 'project_id': None, 'r│··<br>
>> emote_address': None, 'read_deleted': u'no', 'strategy': u'noauth'}<br>
>> from (pid=8844) unpack_context<br>
>> /usr/local/src/nova/nova/rpc/amqp.py:187 │··<br>
>> 2012-02-28 10:45:53 DEBUG nova.network.manager<br>
>> [req-461788a6-3570-4fa9-8620-6705eb69243c None None] Leased IP<br>
>> |172.16.0.2| from (pid=8844) lease_fixed_ip<br>
>> /us│··r/local/src/nova/nova/network/manager.py:1186 │··<br>
>> 2012-02-28 10:45:53 ERROR nova.rpc.common [-] Exception during message<br>
>> handling │··(nova.rpc.common): TRACE: Traceback (most recent call<br>
>> last): │··<br>
>> (nova.rpc.common): TRACE: File "/usr/local/src/nova/nova/rpc/amqp.py",<br>
>> line 250, in _process_data │··(nova.rpc.common): TRACE: rval =<br>
>> node_func(context=ctxt, **node_args) │··(nova.rpc.common): TRACE: File<br>
>> "/usr/local/src/nova/nova/network/manager.py", line 1187, in<br>
>> lease_fixed_ip │··(nova.rpc.common): TRACE: fixed_ip =<br>
>> self.db.fixed_ip_get_by_address(context, address) │··<br>
>> (nova.rpc.common): TRACE: File "/usr/local/src/nova/nova/db/api.py",<br>
>> line 473, in fixed_ip_get_by_address │··(nova.rpc.common): TRACE:<br>
>> return IMPL.fixed_ip_get_by_address(context, address)<br>
>> │··(nova.rpc.common): TRACE: File<br>
>> "/usr/local/src/nova/nova/db/sqlalchemy/api.py", line 119, in wrapper<br>
>> │··<br>
>> (nova.rpc.common): TRACE: return f(*args, **kwargs)<br>
>> │··(nova.rpc.common): TRACE: File<br>
>> "/usr/local/src/nova/nova/db/sqlalchemy/api.py", line 1131, in<br>
>> fixed_ip_get_by_address │··<br>
>> (nova.rpc.common): TRACE: raise<br>
>> exception.FixedIpNotFoundForAddress(address=address) │··<br>
>> (nova.rpc.common): TRACE: FixedIpNotFoundForAddress: Fixed ip not<br>
>> found for address 172.16.0.2. │··<br>
>> (nova.rpc.common): TRACE:<br>
><br>
> You need to create your networks through nova-manage, otherwise the nova<br>
> tables don't get filled in. The next release we are axing the nova<br>
> tables as it was just a crutch to get it "usable".<br>
><br>
> Happy Hacking!<br>
><br>
> 7-11<br>
><br>
><br>
> _______________________________________________<br>
> Mailing list: <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
> Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
> Unsubscribe : <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
> More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</div></div></blockquote></div></div></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Dan Wendlandt <div>Nicira Networks: <a href="http://www.nicira.com" target="_blank">www.nicira.com</a><br>
<div>twitter: danwendlandt<br>

~~~~~~~~~~~~~~~~~~~~~~~~~~~<br></div></div><br>
</font></span><br>--<br>
Mailing list: <a href="https://launchpad.net/%7Enetstack" target="_blank">https://launchpad.net/~netstack</a><br>
Post to     : <a href="mailto:netstack@lists.launchpad.net">netstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/%7Enetstack" target="_blank">https://launchpad.net/~netstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br>