[openstack-dev] [qa] Fail to launch VM due to maximum number of ports exceeded

Danny Choi (dannchoi) dannchoi at cisco.com
Sun Dec 21 14:02:24 UTC 2014


Hi Timur,

When you said the “global” counts, I assumed you refer to the admin tenant.

BTW, I’m launching VMs in the demo tenant.


localadmin at qa4:~/devstack$ keystone --os-tenant-name admin --os-username admin tenant-list

+----------------------------------+--------------------+---------+

|                id                |        name        | enabled |

+----------------------------------+--------------------+---------+

| 84827057a7444354b0bff11566ccb80b |       admin        |   True  |

| 5977ba64a5734395a7dc1f8f1dbbac7c |      alt_demo      |   True  |

| 1b2e5efaeeeb46f2922849b483f09ec1 |        demo        |   True  |

| 7dbe65974f144993ad3fb165ced85a0e | invisible_to_admin |   True  |

| eef9dee7066f4a30be32eaa67f2e40c9 |      service       |   True  |

+----------------------------------+--------------------+————+

localadmin at qa4:~/devstack$ keystone --os-tenant-name admin --os-username admin user-list

+----------------------------------+----------+---------+----------------------+

|                id                |   name   | enabled |        email         |

+----------------------------------+----------+---------+----------------------+

| 9d5fd9947d154a2db396fce177f1f83c |  admin   |   True  |                      |

| bf51d29350b04a00aef1e701f1f6bb81 | alt_demo |   True  | alt_demo at example.com |

| 668cf3505aba4e45b965cf2963942df9 |  cinder  |   True  |                      |

| 4ddc6d36192c4c34bea3865b4286c90d |   demo   |   True  |   demo at example.com   |

| f37bf45d6d0e4168bb3c18d07dbb39fc |  glance  |   True  |                      |

| 20376173b10147b6a2111f976bf4e397 |   heat   |   True  |                      |

| cf8bf98325964d04a4a3708e36d5f09d | neutron  |   True  |                      |

| fec102e33eb64c9e8866a5bd0f718d37 |   nova   |   True  |                      |

+----------------------------------+----------+---------+----------------------+

localadmin at qa4:~/devstack$ neutron --os-tenant-name admin --os-username admin quota-show --tenant-id 84827057a7444354b0bff11566ccb80b

+---------------------+-------+

| Field               | Value |

+---------------------+-------+

| floatingip          | 50    |

| network             | 10    |

| port                | 50    |

| router              | 10    |

| security_group      | 10    |

| security_group_rule | 100   |

| subnet              | 10    |

+---------------------+-------+

localadmin at qa4:~/devstack$ nova --os-tenant-name admin --os-username admin quota-show --tenant 84827057a7444354b0bff11566ccb80b --user 9d5fd9947d154a2db396fce177f1f83c

+-----------------------------+-------+

| Quota                       | Limit |

+-----------------------------+-------+

| instances                   | 10    |

| cores                       | 20    |

| ram                         | 51200 |

| floating_ips                | 10    |

| fixed_ips                   | -1    |

| metadata_items              | 128   |

| injected_files              | 5     |

| injected_file_content_bytes | 10240 |

| injected_file_path_bytes    | 255   |

| key_pairs                   | 100   |

| security_groups             | 10    |

| security_group_rules        | 20    |

| server_groups               | 10    |

| server_group_members        | 10    |

+-----------------------------+-------+

Danny
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

Date: Sun, 21 Dec 2014 07:02:05 +0300
From: Timur Nurlygayanov <tnurlygayanov at mirantis.com<mailto:tnurlygayanov at mirantis.com>>
To: "OpenStack Development Mailing List (not for usage questions)"
<openstack-dev at lists.openstack.org<mailto:openstack-dev at lists.openstack.org>>
Subject: Re: [openstack-dev] [qa] Fail to launch VM due to maximum
number of ports exceeded
Message-ID:
<CAHCYybNAPBhywFvkJxGhn7fCkg1wp4SdzF8tUjQbJj1LGk2k4Q at mail.gmail.com<mailto:CAHCYybNAPBhywFvkJxGhn7fCkg1wp4SdzF8tUjQbJj1LGk2k4Q at mail.gmail.com>>
Content-Type: text/plain; charset="utf-8"

Hi Danny,

what about the global ports count and quotas?

On Sun, Dec 21, 2014 at 1:32 AM, Danny Choi (dannchoi) <dannchoi at cisco.com<mailto:dannchoi at cisco.com>>
wrote:

  Hi,

  The default quota for port is 50.

  +----------------------------------+--------------------+---------+

localadmin at qa4:~/devstack$ neutron quota-show --tenant-id
1b2e5efaeeeb46f2922849b483f09ec1

+---------------------+-------+

| Field               | Value |

+---------------------+-------+

| floatingip          | 50    |

| network             | 10    |

| port                | 50    |    <<<<< 50

| router              | 10    |

| security_group      | 10    |

| security_group_rule | 100   |

| subnet              | 10    |

+---------------------+-------+

   Total number of ports used so far is 40.

  localadmin at qa4:~/devstack$ nova list


+--------------------------------------+----------------------------------------------+--------+------------+-------------+---------------------------------------------------------------------------+

| ID                                   | Name
             | Status | Task State | Power State | Networks
                                                 |


+--------------------------------------+----------------------------------------------+--------+------------+-------------+---------------------------------------------------------------------------+

| 595940bd-3fb1-4ad3-8cc0-29329b464471 | VM-1
             | ACTIVE | -          | Running     | private_net30=30.0.0.44
                                                 |

| 192ce36d-bc76-427a-a374-1f8e8933938f | VM-2
             | ACTIVE | -          | Running     | private_net30=30.0.0.45
                                                 |

| 10ad850e-ed9d-42d9-8743-b8eda4107edc |
cirros--10ad850e-ed9d-42d9-8743-b8eda4107edc | ACTIVE | -          |
Running     | private_net20=20.0.0.38; private=10.0.0.52
             |

| 18209b40-09e7-4718-b04f-40a01a8e5993 |
cirros--18209b40-09e7-4718-b04f-40a01a8e5993 | ACTIVE | -          |
Running     | private_net20=20.0.0.40; private=10.0.0.54
             |

| 1ededa1e-c820-4915-adf2-4be8eedaf012 |
cirros--1ededa1e-c820-4915-adf2-4be8eedaf012 | ACTIVE | -          |
Running     | private_net20=20.0.0.41; private=10.0.0.55
             |

| 3688262e-d00f-4263-91a7-785c40f4ae0f |
cirros--3688262e-d00f-4263-91a7-785c40f4ae0f | ACTIVE | -          |
Running     | private_net20=20.0.0.34; private=10.0.0.49
             |

| 4620663f-e6e0-4af2-84c0-6108279cbbed |
cirros--4620663f-e6e0-4af2-84c0-6108279cbbed | ACTIVE | -          |
Running     | private_net20=20.0.0.37; private=10.0.0.51
             |

| 8f8252a3-fa23-47fc-8b32-7f7328ecfba2 |
cirros--8f8252a3-fa23-47fc-8b32-7f7328ecfba2 | ACTIVE | -          |
Running     | private_net20=20.0.0.39; private=10.0.0.53
             |

| a228f33b-0388-464e-af49-b55af9601f56 |
cirros--a228f33b-0388-464e-af49-b55af9601f56 | ACTIVE | -          |
Running     | private_net20=20.0.0.42; private=10.0.0.56
             |

| def5a255-0c9d-4df0-af02-3944bf5af2db |
cirros--def5a255-0c9d-4df0-af02-3944bf5af2db | ACTIVE | -          |
Running     | private_net20=20.0.0.36; private=10.0.0.50
             |

| e1470813-bf4c-4989-9a11-62da47a5c4b4 |
cirros--e1470813-bf4c-4989-9a11-62da47a5c4b4 | ACTIVE | -          |
Running     | private_net20=20.0.0.33; private=10.0.0.48
             |

| f63390fa-2169-45c0-bb02-e42633a08b8f |
cirros--f63390fa-2169-45c0-bb02-e42633a08b8f | ACTIVE | -          |
Running     | private_net20=20.0.0.35; private=10.0.0.47
             |

| 2c34956d-4bf9-45e5-a9de-84d3095ee719 |
vm--2c34956d-4bf9-45e5-a9de-84d3095ee719     | ACTIVE | -          |
Running     | private_net30=30.0.0.39; private_net50=50.0.0.29;
private_net40=40.0.0.29 |

| 680c55f5-527b-49e3-847c-7794e1f8e7a8 |
vm--680c55f5-527b-49e3-847c-7794e1f8e7a8     | ACTIVE | -          |
Running     | private_net30=30.0.0.41; private_net50=50.0.0.30;
private_net40=40.0.0.31 |

| ade4c14b-baf7-4e57-948e-095689f73ce3 |
vm--ade4c14b-baf7-4e57-948e-095689f73ce3     | ACTIVE | -          |
Running     | private_net30=30.0.0.43; private_net50=50.0.0.32;
private_net40=40.0.0.33 |

| c91e426a-ed68-4659-89f6-df6d1154bb16 |
vm--c91e426a-ed68-4659-89f6-df6d1154bb16     | ACTIVE | -          |
Running     | private_net30=30.0.0.42; private_net50=50.0.0.33;
private_net40=40.0.0.32 |

| cedd9984-79f0-46b3-897d-b301cfa74a1a |
vm--cedd9984-79f0-46b3-897d-b301cfa74a1a     | ACTIVE | -          |
Running     | private_net30=30.0.0.40; private_net50=50.0.0.31;
private_net40=40.0.0.30 |

| ec83e53f-556f-4e66-ab85-15a9e1ba9d28 |
vm--ec83e53f-556f-4e66-ab85-15a9e1ba9d28     | ACTIVE | -          |
Running     | private_net30=30.0.0.38; private_net50=50.0.0.28;
private_net40=40.0.0.28 |


+--------------------------------------+----------------------------------------------+--------+------------+-------------+?????????????????????????????????????+


  When attempt to launch another VM, I hit the max number of ports
exceeded error:


  localadmin at qa4:~/devstack$ nova boot --image cirros-0.3.2-x86_64-uec
--flavor 1 --nic net-id=6bb3cef1-52ea-4dcb-9962-95c5c39b03cb VM-3

*ERROR (Forbidden): Maximum number of ports exceeded (HTTP 403)*
(Request-ID: req-4b0d0d7b-25fa-468b-8d2b-5aa48bb58853)


  I expected this to be successful since the number of ports used is only
40, below the limit of 50.


  Any idea?


  Thanks,

Danny

_______________________________________________
OpenStack-dev mailing list
OpenStack-dev at lists.openstack.org<mailto:OpenStack-dev at lists.openstack.org>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141221/abe8ca13/attachment.html>


More information about the OpenStack-dev mailing list