Debugging further, I see the below entries
in /var/log/neutron/openvswitch-agent.log:

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.
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

The network mentioned in the error log is a public network, and all ips
from that range has been assigned to vms already.

[root@localhost ~(keystone_admin)]# neutron net-list
+--------------------------------------+---------+---------------------------------------------------------+
| id                                   | name    | subnets
                                |
+--------------------------------------+---------+---------------------------------------------------------+
| 09c8da8e-79d7-49e1-9af8-c2a13a032040 | private |
b7eeae38-682a-4397-8b3c-e3dee88527ab 10.0.0.0/24        |
| 31956556-c540-4676-9cd4-e618a4f93fc8 | public  |
14d4b197-1121-4a4b-80b3-b8d80115f734 173.xxx.xxx.144/29 |
+--------------------------------------+---------+---------------------------------------------------------+

However, shouldn't Openstack only care about the private network, and
assign a private ip and bring up the interface?

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.

Please assist.

On Fri, Jun 20, 2014 at 8:38 PM, Vimal Kumar <vimal7...@gmail.com> wrote:

> Hi all,
>
> I am running IceHouse (RDO) and currently unable to attach a new interface
> to a vm.
>
> [root@localhost ~(keystone_admin)]# nova interface-attach myvm1
> ERROR: PortLimitExceeded_Remote: Maximum number of ports exceeded
> Traceback (most recent call last):
>
>   File
> "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line
> 133, in _dispatch_and_reply
>     incoming.message))
>
>   File
> "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line
> 176, in _dispatch
>     return self._do_dispatch(endpoint, method, ctxt, args)
>
>   File
> "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line
> 122, in _do_dispatch
>     result = getattr(endpoint, method)(ctxt, **new_args)
>
>   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line
> 399, in decorated_function
>     return function(self, context, *args, **kwargs)
>
>   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line
> 4345, in attach_interface
>     context, instance, port_id, network_id, requested_ip)
>
>   File "/usr/lib/python2.6/site-packages/nova/network/neutronv2/api.py",
> line 440, in allocate_port_for_instance
>     requested_networks=[(network_id, requested_ip, port_id)])
>
>   File "/usr/lib/python2.6/site-packages/nova/network/neutronv2/api.py",
> line 361, in allocate_for_instance
>     LOG.exception(msg, port_id)
>
>   File
> "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line
> 68, in __exit__
>     six.reraise(self.type_, self.value, self.tb)
>
>   File "/usr/lib/python2.6/site-packages/nova/network/neutronv2/api.py",
> line 336, in allocate_for_instance
>     security_group_ids, available_macs, dhcp_opts)
>
>   File "/usr/lib/python2.6/site-packages/nova/network/neutronv2/api.py",
> line 192, in _create_port
>     raise exception.PortLimitExceeded()
>
> PortLimitExceeded: Maximum number of ports exceeded
>  (HTTP 413) (Request-ID: req-296d6c3a-fc7d-44c6-8a42-e139c969cf40)
>
>
> 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.
>
> [root@localhost ~(keystone_admin)]# neutron port-list
>
> +--------------------------------------+------+-------------------+----------------------------------------------------------------------------------------+
> | id                                   | name | mac_address       |
> fixed_ips
>            |
>
> +--------------------------------------+------+-------------------+----------------------------------------------------------------------------------------+
> | 0056d43b-5f9d-4562-b34a-8db655be5ddd |      | fa:16:3e:74:fb:33 |
> {"subnet_id": "14d4b197-1121-4a4b-80b3-b8d80115f734", "ip_address":
> "xxx.xxx.xxx.148"} |
> | 057fabd8-1856-454d-a183-5fe64845fdd7 |      | fa:16:3e:87:85:d7 |
> {"subnet_id": "14d4b197-1121-4a4b-80b3-b8d80115f734", "ip_address":
> "xxx.xxx.xxx.149"} |
> | 1199a31c-2437-406c-a1fa-807403a2e2f1 |      | fa:16:3e:49:ad:e0 |
> {"subnet_id": "b7eeae38-682a-4397-8b3c-e3dee88527ab", "ip_address":
> "10.0.0.46"}       |
> | 2bb0e6f2-d41b-474c-8386-bcaa254f253f |      | fa:16:3e:81:5a:e8 |
> {"subnet_id": "b7eeae38-682a-4397-8b3c-e3dee88527ab", "ip_address":
> "10.0.0.45"}       |
> | 6289f221-fe11-4674-b0f9-4ad47a4603f8 |      | fa:16:3e:57:72:13 |
> {"subnet_id": "b7eeae38-682a-4397-8b3c-e3dee88527ab", "ip_address":
> "10.0.0.44"}       |
> | 6425fa7a-6c34-44a3-a4ec-1425e7bd338e |      | fa:16:3e:fe:8a:a5 |
> {"subnet_id": "b7eeae38-682a-4397-8b3c-e3dee88527ab", "ip_address":
> "10.0.0.1"}        |
> | 808afd72-3d82-41ae-bed2-acc3d3398af9 |      | fa:16:3e:6f:92:12 |
> {"subnet_id": "b7eeae38-682a-4397-8b3c-e3dee88527ab", "ip_address":
> "10.0.0.3"}        |
> | af83d9c6-f8ef-485f-b2d5-6568d14c6146 |      | fa:16:3e:6b:16:54 |
> {"subnet_id": "b7eeae38-682a-4397-8b3c-e3dee88527ab", "ip_address":
> "10.0.0.42"}       |
> | b1b2d34f-0b90-4a8e-b13d-5e1005f176f4 |      | fa:16:3e:03:cc:c9 |
> {"subnet_id": "b7eeae38-682a-4397-8b3c-e3dee88527ab", "ip_address":
> "10.0.0.47"}       |
> | bd688b2e-a990-44e6-96e1-4c547936b403 |      | fa:16:3e:c0:51:67 |
> {"subnet_id": "14d4b197-1121-4a4b-80b3-b8d80115f734", "ip_address":
> "xxx.xxx.xxx.147"} |
> | c9dc3d20-8767-4197-b424-e8ebed58d890 |      | fa:16:3e:25:74:b1 |
> {"subnet_id": "14d4b197-1121-4a4b-80b3-b8d80115f734", "ip_address":
> "xxx.xxx.xxx.150"} |
> | db40d356-efce-4b1f-9ada-987496497220 |      | fa:16:3e:3d:04:47 |
> {"subnet_id": "b7eeae38-682a-4397-8b3c-e3dee88527ab", "ip_address":
> "10.0.0.7"}        |
>
> +--------------------------------------+------+-------------------+----------------------------------------------------------------------------------------+
>
> Regards,
> Vimal
>
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to