기본 openstack을 설치하고 나서 쿼터 설정값을 확인하는데 네트워크 부분은 기본 명령어로 변경이 되지 않는다
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
[root@controller ~]# openstack quota show --default +-----------------------+-------+ | Resource | Limit | +-----------------------+-------+ | cores | 128 | | instances | 100 | | ram | 98304 | | fixed_ips | None | | networks | 100 | | volumes | 400 | | snapshots | 50 | | gigabytes | 800 | | backups | 50 | | volumes_sas | -1 | | gigabytes_sas | -1 | | snapshots_sas | -1 | | volumes_ssd | -1 | | gigabytes_ssd | -1 | | snapshots_ssd | -1 | | volumes___DEFAULT__ | -1 | | gigabytes___DEFAULT__ | -1 | | snapshots___DEFAULT__ | -1 | | groups | 10 | | ports | 500 | | rbac_policies | 10 | | routers | 10 | | subnets | 100 | | subnet_pools | -1 | | injected-file-size | 10240 | | injected-path-size | 255 | | injected-files | 5 | | key-pairs | 100 | | properties | 128 | | server-group-members | 10 | | server-groups | 10 | | floating-ips | 50 | | secgroup-rules | 100 | | secgroups | 10 | | backup-gigabytes | 1000 | | per-volume-gigabytes | -1 | +-----------------------+-------+ |
여기서 secgroup-rules을 명령어로 변경하려면 안된다
1 2 |
[root@controller ~]# openstack quota set --secgroup-rules 200 --default Network quotas are ignored since quota classes are not supported. |
방법은 컨트롤서버의 neutron-server의 환경설정값을 변경하면 된다
1 2 3 4 5 6 |
[root@controller ~]# vi /etc/neutron/neutron.conf [quotas] quota_floatingip = 54 quota_security_group = 20 quota_security_group_rule = 200 |
서비스 새시작
1 |
[root@controller ~]# systemctl restart neutron-server.service |
확인
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
[root@controller ~]# openstack quota show --default +-----------------------+-------+ | Resource | Limit | +-----------------------+-------+ | cores | 128 | | instances | 100 | | ram | 98304 | | fixed_ips | None | | networks | 100 | | volumes | 400 | | snapshots | 50 | | gigabytes | 800 | | backups | 50 | | volumes_sas | -1 | | gigabytes_sas | -1 | | snapshots_sas | -1 | | volumes_ssd | -1 | | gigabytes_ssd | -1 | | snapshots_ssd | -1 | | volumes___DEFAULT__ | -1 | | gigabytes___DEFAULT__ | -1 | | snapshots___DEFAULT__ | -1 | | groups | 10 | | ports | 500 | | rbac_policies | 10 | | routers | 10 | | subnets | 100 | | subnet_pools | -1 | | injected-file-size | 10240 | | injected-path-size | 255 | | injected-files | 5 | | key-pairs | 100 | | properties | 128 | | server-group-members | 10 | | server-groups | 10 | | floating-ips | 54 | | secgroup-rules | 200 | | secgroups | 20 | | backup-gigabytes | 1000 | | per-volume-gigabytes | -1 | +-----------------------+-------+ |
관련정보
https://docs.openstack.org/neutron/pike/configuration/neutron.html