[关闭]
@Alex-Zhao 2018-04-17T15:09:09.000000Z 字数 1637 阅读 123

在OpenStack中报错Maximum number of ports exceeded (HTTP 403)

OpenStack


报错信息显示:超过了网络的限制的最大端口数

查看OpenStack中qouta的端口数限制(默认是50个):

  1. # neutron quota-show
  2. +---------------------+-------+
  3. | Field | Value |
  4. +---------------------+-------+
  5. | network | 10 |
  6. | port | 50 |
  7. | rbac_policy | 10 |
  8. | security_group | 10 |
  9. | security_group_rule | 100 |
  10. | subnet | 10 |
  11. | subnetpool | -1 |
  12. +---------------------+-------+

修改OpenStack中qouta的端口限制:

  1. # neutron quota-update --port -1
  2. +---------------------+-------+
  3. | Field | Value |
  4. +---------------------+-------+
  5. | network | 10 |
  6. | port | -1 |
  7. | rbac_policy | 10 |
  8. | security_group | 10 |
  9. | security_group_rule | 100 |
  10. | subnet | 10 |
  11. | subnetpool | -1 |
  12. +---------------------+-------+

查看项目中端口数限制:

  1. [root@controller1 ~]# openstack project list
  2. +----------------------------------+-------------+
  3. | ID | Name |
  4. +----------------------------------+-------------+
  5. | 22938c8796b74e6cbb4bba13c9bde822 | Deppon-test |
  6. | 34906ac2c713454d8bdfbd09fa32a6fb | admin |
  7. | fbc7095bd7f743f29c2cc71062a3e5c0 | service |
  8. +----------------------------------+-------------+
  9. [root@controller1 ~]# neutron quota-show --tenant_id 22938c8796b74e6cbb4bba13c9bde822
  10. +---------------------+-------+
  11. | Field | Value |
  12. +---------------------+-------+
  13. | network | 10 |
  14. | port | 50 |
  15. | rbac_policy | 10 |
  16. | security_group | 10 |
  17. | security_group_rule | 100 |
  18. | subnet | 10 |
  19. | subnetpool | -1 |
  20. +---------------------+-------+

修改项目的端口数限制为无限制:

  1. [root@controller1 ~]# neutron quota-update --tenant_id 22938c8796b74e6cbb4bba13c9bde822 --port -1
  2. +---------------------+-------+
  3. | Field | Value |
  4. +---------------------+-------+
  5. | network | 10 |
  6. | port | -1 |
  7. | rbac_policy | 10 |
  8. | security_group | 10 |
  9. | security_group_rule | 100 |
  10. | subnet | 10 |
  11. | subnetpool | -1 |
  12. +---------------------+-------+

创建网络端口命令:

  1. openstack port create --network 10.230.46-vlan246 test123

其他网络、安全组、子网采用修改同样方法。

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注