@Alex-Zhao
2018-04-17T15:09:09.000000Z
字数 1637
阅读 123
OpenStack
报错信息显示:超过了网络的限制的最大端口数
查看OpenStack中qouta的端口数限制(默认是50个):
# neutron quota-show
+---------------------+-------+
| Field | Value |
+---------------------+-------+
| network | 10 |
| port | 50 |
| rbac_policy | 10 |
| security_group | 10 |
| security_group_rule | 100 |
| subnet | 10 |
| subnetpool | -1 |
+---------------------+-------+
修改OpenStack中qouta的端口限制:
# neutron quota-update --port -1
+---------------------+-------+
| Field | Value |
+---------------------+-------+
| network | 10 |
| port | -1 |
| rbac_policy | 10 |
| security_group | 10 |
| security_group_rule | 100 |
| subnet | 10 |
| subnetpool | -1 |
+---------------------+-------+
查看项目中端口数限制:
[root@controller1 ~]# openstack project list
+----------------------------------+-------------+
| ID | Name |
+----------------------------------+-------------+
| 22938c8796b74e6cbb4bba13c9bde822 | Deppon-test |
| 34906ac2c713454d8bdfbd09fa32a6fb | admin |
| fbc7095bd7f743f29c2cc71062a3e5c0 | service |
+----------------------------------+-------------+
[root@controller1 ~]# neutron quota-show --tenant_id 22938c8796b74e6cbb4bba13c9bde822
+---------------------+-------+
| Field | Value |
+---------------------+-------+
| network | 10 |
| port | 50 |
| rbac_policy | 10 |
| security_group | 10 |
| security_group_rule | 100 |
| subnet | 10 |
| subnetpool | -1 |
+---------------------+-------+
修改项目的端口数限制为无限制:
[root@controller1 ~]# neutron quota-update --tenant_id 22938c8796b74e6cbb4bba13c9bde822 --port -1
+---------------------+-------+
| Field | Value |
+---------------------+-------+
| network | 10 |
| port | -1 |
| rbac_policy | 10 |
| security_group | 10 |
| security_group_rule | 100 |
| subnet | 10 |
| subnetpool | -1 |
+---------------------+-------+
创建网络端口命令:
openstack port create --network 10.230.46-vlan246 test123
其他网络、安全组、子网采用修改同样方法。