<div dir="ltr">Hello,<div><br></div><div>In grizzly and havana, a router can only be hosted by a single l3 agent.</div><div><br></div><div>The related bug report is <a href="https://bugs.launchpad.net/neutron/+bug/1154622">https://bugs.launchpad.net/neutron/+bug/1154622</a></div>
<div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 6, 2013 at 12:37 AM, BRINGARD, KEVIN <span dir="ltr"><<a href="mailto:kb718q@att.com" target="_blank">kb718q@att.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think Robert's comment is correct. The router is currently hosted on agent "789a77fd-52ff-44be-afea-27d26a8cd3d3". This was assigned at the router's creation by the router scheduler (currently only a chance scheduler exists, so it's random).<br>

<br>
You cannot host the same logical router on more than one l3-agent at once, which is likely why you're getting the error when you attempt to add the router to an L3-agent.<br>
<br>
If you want to specify which L3-agent is hosting a specific router, you would do something like the following:<br>
<br>
quantum l3-agent-list-hosting-router router01 <copy the agent ID, in this case: 789a77fd-52ff-44be-afea-27d26a8cd3d3><br>
quantum agent-list | grep L3<br>
<copy agent ID you want to move the router onto> quantum l3-agent-router-remove <agent ID the router is currently hosted on> <router-id> quantum l3-agent-list-hosting-router router01 <verify the router is no longer hosted on any L3-agent> quantum l3-agent-router-add <agent ID where you would like the router to be hosted> <router-id> quantum l3-agent-list-hosting-router router01 <verify the router is now hosted on the new l3-agent><br>

<br>
I personally would get router01's UUID and use that in place of the name router01, but it *should* work either way.<br>
<br>
But, to your original question, you shouldn't have to add the router to an agent as that should happen at router creation time by the scheduler (as Robert said).<br>
<span class="HOEnZb"><font color="#888888"><br>
-- kevin<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
-----Original Message-----<br>
From: Nicolae Paladi [mailto:<a href="mailto:n.paladi@gmail.com">n.paladi@gmail.com</a>]<br>
Sent: Thursday, September 05, 2013 3:19 AM<br>
To: Robert van Leeuwen<br>
Cc: <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Subject: Re: [Openstack] Error when calling l3-agent-router-add<br>
<br>
Hi,<br>
<br>
<br>
the output is:<br>
<br>
<br>
<br>
<br>
quantum l3-agent-list-hosting-router router01<br>
<br>
+--------------------------------------+---------------+----------------+-------+<br>
| id                                   | host          | admin_state_up | alive |<br>
+--------------------------------------+---------------+----------------+-------+<br>
| 789a77fd-52ff-44be-afea-27d26a8cd3d3 | seoul         | True           | :-)   |<br>
+--------------------------------------+---------------+----------------+-------+<br>
<br>
<br>
However, shouldn't the l3-agent running on each compute host be attached to the router, or am I completely misunderstanding somethning?<br>
<br>
<br>
Thanks,<br>
/Nicolae.<br>
<br>
<br>
<br>
<br>
<br>
On 5 September 2013 11:14, Robert van Leeuwen <<a href="mailto:Robert.vanLeeuwen@spilgames.com">Robert.vanLeeuwen@spilgames.com</a>> wrote:<br>
<br>
<br>
        > quantum l3-agent-router-add 789a77fd-52ff-44be-afea-27d26a8cd3d3 router01<br>
<br>
        Not sure what you are trying to accomplish here.<br>
        Scheduling, by default, happens automatically unless you have multiple routers and want to set it up to run a router on a specific l3-agent.<br>
<br>
        Usually this should be enough:<br>
<br>
        quantum router-create router1<br>
        quantum router-interface-add router1 ${subnetname)<br>
<br>
        What is the output of the following?:<br>
        quantum l3-agent-list-hosting-router $(routername}<br>
<br>
        Cheers,<br>
        Robert van Leeuwen<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div></div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Cheers,<div>Jian</div></div>
</div>