Can't create new floating IP when the pool of IPs is empty: ERROR (Forbidden): IP allocation over quota. (HTTP 403)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Fix Released
|
High
|
Sergey Belous | ||
8.0.x |
Fix Released
|
High
|
Sergey Belous | ||
9.x |
Invalid
|
High
|
MOS Neutron |
Bug Description
Note:
Reproduced on MOS 8.0 ISO #264
Looks like the root of the problem in incorrect quotas verification / floating IPs allocation
Steps To Reproduce:
1. Deploy OpenStack cluster with Neutron VLANs
2. Login to OpenStack controller node
3. Create many floating IPs and assign some of them to VMs
4. Disassociate floating IPs from VMs
5. Run on controller node to remove all floating IPs:
for i in `nova floating-ip-list | grep -e "- " | awk '{print $4}'`; do nova floating-ip-delete $i; done
6. Check that we haven't floating IPs anymore:
root@node-1:~# nova floating-ip-list
+----+-
| Id | IP | Server Id | Fixed IP | Pool |
+----+-
+----+-
7. Try to create floating IP:
nova floating-ip-create
Observed Result:
User can't create floating IPs in this cluster:
root@node-1:~# nova floating-ip-create
ERROR (Forbidden): IP allocation over quota. (HTTP 403) (Request-ID: req-a143bc8b-
We have no quotas for Floating IPs (we can successfully create new floating IPs on the first step, but can't on the last one):
root@node-1:~# nova quota-show
+------
| Quota | Limit |
+------
| instances | -1 |
| cores | -1 |
| ram | -1 |
| floating_ips | -1 |
| fixed_ips | -1 |
| metadata_items | -1 |
| injected_files | -1 |
| injected_
| injected_
| key_pairs | -1 |
| security_groups | -1 |
| security_
| server_groups | -1 |
| server_
+------
Changed in mos: | |
assignee: | MOS Neutron (mos-neutron) → Eugene Nikanorov (enikanorov) |
Changed in mos: | |
assignee: | Eugene Nikanorov (enikanorov) → Sergey Belous (sbelous) |
Changed in mos: | |
status: | Confirmed → In Progress |
tags: | added: area-neutron |
tags: | added: hit-hcf |
tags: | added: on-verification |
mysql> select * from quotausages; ------- ------- ------- ------- +------ ------- ---+--- ----+-- ------+ ------- ---+ ------- ------- ------- ------- +------ ------- ---+--- ----+-- ------+ ------- ---+ 98171c9a441087e cc | floatingip | 0 | 50 | 0 | 98171c9a441087e cc | network | 0 | 2 | 0 | 98171c9a441087e cc | port | 0 | 4 | 0 | 98171c9a441087e cc | router | 0 | 1 | 0 | 98171c9a441087e cc | security_group | 0 | 4 | 0 | 98171c9a441087e cc | subnet | 0 | 2 | 0 | 7b7b7731ed38636 ac | security_group | 0 | 1 | 0 | ------- ------- ------- ------- +------ ------- ---+--- ----+-- ------+ ------- ---+
+------
| tenant_id | resource | dirty | in_use | reserved |
+------
| 7ff88ebe754d493
| 7ff88ebe754d493
| 7ff88ebe754d493
| 7ff88ebe754d493
| 7ff88ebe754d493
| 7ff88ebe754d493
| c0ea5042eed64c9
+------
7 rows in set (0.00 sec)
mysql> select * from floatingips;
Empty set (0.00 sec)