<div dir="ltr">Debugging further, I see the below entries in /var/log/neutron/openvswitch-agent.log:<div><br></div><div><div>2014-06-20 11:08:02.954 5410 INFO neutron.api.v2.resource [-] create failed (client error): No more IP addresses available on network 31956556-c540-4676-9cd4-e618a4f93fc8.</div>
<div>2014-06-20 11:08:02.955 5410 INFO neutron.wsgi [-] xxx.xxx.xxx.xxx - - [20/Jun/2014 11:08:02] "POST /v2.0/ports.json HTTP/1.1" 409 360 0.117780</div><div><br></div><div>The network mentioned in the error log is a public network, and all ips from that range has been assigned to vms already.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">[root@localhost ~(keystone_admin)]# neutron net-list</div><div class="gmail_extra">+--------------------------------------+---------+---------------------------------------------------------+</div>
<div class="gmail_extra">| id                                   | name    | subnets                                                 |</div><div class="gmail_extra">+--------------------------------------+---------+---------------------------------------------------------+</div>
<div class="gmail_extra">| 09c8da8e-79d7-49e1-9af8-c2a13a032040 | private | b7eeae38-682a-4397-8b3c-e3dee88527ab <a href="http://10.0.0.0/24">10.0.0.0/24</a>        |</div><div class="gmail_extra">| 31956556-c540-4676-9cd4-e618a4f93fc8 | public  | 14d4b197-1121-4a4b-80b3-b8d80115f734 173.xxx.xxx.144/29 |</div>
<div class="gmail_extra">+--------------------------------------+---------+---------------------------------------------------------+</div><div><br></div><div class="gmail_extra">However, shouldn't Openstack only care about the private network, and assign a private ip and bring up the interface? </div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Also, how do I go about adding another public range which is already routed to this Openstack server's public eth device? I tried to add the second public ip range as another subnet inside net "public" (which in turn should make Openstack realize that free ips are available) but it still fails with the same error, and eth1 is not yet being created on the vm.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Please assist.</div><br><div class="gmail_quote">On Fri, Jun 20, 2014 at 8:38 PM, Vimal Kumar <span dir="ltr"><<a href="mailto:vimal7370@gmail.com" target="_blank">vimal7370@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I am running IceHouse (RDO) and currently unable to attach a new interface to a vm.</div>
<div><br></div><div><div>[root@localhost ~(keystone_admin)]# nova interface-attach myvm1</div>
<div>ERROR: PortLimitExceeded_Remote: Maximum number of ports exceeded</div><div>Traceback (most recent call last):</div><div><br></div><div>  File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 133, in _dispatch_and_reply</div>

<div>    incoming.message))</div><div><br></div><div>  File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 176, in _dispatch</div><div>    return self._do_dispatch(endpoint, method, ctxt, args)</div>

<div><br></div><div>  File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 122, in _do_dispatch</div><div>    result = getattr(endpoint, method)(ctxt, **new_args)</div><div><br></div><div>

  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 399, in decorated_function</div><div>    return function(self, context, *args, **kwargs)</div><div><br></div><div>  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 4345, in attach_interface</div>

<div>    context, instance, port_id, network_id, requested_ip)</div><div><br></div><div>  File "/usr/lib/python2.6/site-packages/nova/network/neutronv2/api.py", line 440, in allocate_port_for_instance</div><div>

    requested_networks=[(network_id, requested_ip, port_id)])</div><div><br></div><div>  File "/usr/lib/python2.6/site-packages/nova/network/neutronv2/api.py", line 361, in allocate_for_instance</div><div>    LOG.exception(msg, port_id)</div>

<div><br></div><div>  File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__</div><div>    six.reraise(self.type_, self.value, self.tb)</div><div><br></div><div>  File "/usr/lib/python2.6/site-packages/nova/network/neutronv2/api.py", line 336, in allocate_for_instance</div>

<div>    security_group_ids, available_macs, dhcp_opts)</div><div><br></div><div>  File "/usr/lib/python2.6/site-packages/nova/network/neutronv2/api.py", line 192, in _create_port</div><div>    raise exception.PortLimitExceeded()</div>

<div><br></div><div>PortLimitExceeded: Maximum number of ports exceeded</div><div> (HTTP 413) (Request-ID: req-296d6c3a-fc7d-44c6-8a42-e139c969cf40)</div></div><div><br></div><div><br></div><div>The error does indicate I have run out of ports, but I have set ports limit for the current tenant (which is "admin") to 100, and currently there are only 12 ports in use. Can someone point outor help me in identifying which limit I am hitting here.</div>

<div><br></div><div><div>[root@localhost ~(keystone_admin)]# neutron port-list</div><div>+--------------------------------------+------+-------------------+----------------------------------------------------------------------------------------+</div>

<div>| id                                   | name | mac_address       | fixed_ips                                                                              |</div><div>+--------------------------------------+------+-------------------+----------------------------------------------------------------------------------------+</div>

<div>| 0056d43b-5f9d-4562-b34a-8db655be5ddd |      | fa:16:3e:74:fb:33 | {"subnet_id": "14d4b197-1121-4a4b-80b3-b8d80115f734", "ip_address": "xxx.xxx.xxx.148"} |</div><div>| 057fabd8-1856-454d-a183-5fe64845fdd7 |      | fa:16:3e:87:85:d7 | {"subnet_id": "14d4b197-1121-4a4b-80b3-b8d80115f734", "ip_address": "xxx.xxx.xxx.149"} |</div>

<div>| 1199a31c-2437-406c-a1fa-807403a2e2f1 |      | fa:16:3e:49:ad:e0 | {"subnet_id": "b7eeae38-682a-4397-8b3c-e3dee88527ab", "ip_address": "10.0.0.46"}       |</div><div>| 2bb0e6f2-d41b-474c-8386-bcaa254f253f |      | fa:16:3e:81:5a:e8 | {"subnet_id": "b7eeae38-682a-4397-8b3c-e3dee88527ab", "ip_address": "10.0.0.45"}       |</div>

<div>| 6289f221-fe11-4674-b0f9-4ad47a4603f8 |      | fa:16:3e:57:72:13 | {"subnet_id": "b7eeae38-682a-4397-8b3c-e3dee88527ab", "ip_address": "10.0.0.44"}       |</div><div>| 6425fa7a-6c34-44a3-a4ec-1425e7bd338e |      | fa:16:3e:fe:8a:a5 | {"subnet_id": "b7eeae38-682a-4397-8b3c-e3dee88527ab", "ip_address": "10.0.0.1"}        |</div>

<div>| 808afd72-3d82-41ae-bed2-acc3d3398af9 |      | fa:16:3e:6f:92:12 | {"subnet_id": "b7eeae38-682a-4397-8b3c-e3dee88527ab", "ip_address": "10.0.0.3"}        |</div><div>| af83d9c6-f8ef-485f-b2d5-6568d14c6146 |      | fa:16:3e:6b:16:54 | {"subnet_id": "b7eeae38-682a-4397-8b3c-e3dee88527ab", "ip_address": "10.0.0.42"}       |</div>

<div>| b1b2d34f-0b90-4a8e-b13d-5e1005f176f4 |      | fa:16:3e:03:cc:c9 | {"subnet_id": "b7eeae38-682a-4397-8b3c-e3dee88527ab", "ip_address": "10.0.0.47"}       |</div><div>| bd688b2e-a990-44e6-96e1-4c547936b403 |      | fa:16:3e:c0:51:67 | {"subnet_id": "14d4b197-1121-4a4b-80b3-b8d80115f734", "ip_address": "xxx.xxx.xxx.147"} |</div>

<div>| c9dc3d20-8767-4197-b424-e8ebed58d890 |      | fa:16:3e:25:74:b1 | {"subnet_id": "14d4b197-1121-4a4b-80b3-b8d80115f734", "ip_address": "xxx.xxx.xxx.150"} |</div><div>| db40d356-efce-4b1f-9ada-987496497220 |      | fa:16:3e:3d:04:47 | {"subnet_id": "b7eeae38-682a-4397-8b3c-e3dee88527ab", "ip_address": "10.0.0.7"}        |</div>

<div>+--------------------------------------+------+-------------------+----------------------------------------------------------------------------------------+</div></div><div><br></div><div>Regards,</div><div>Vimal</div>

</div>
</blockquote></div><br></div></div></div>