'total_ips' is calculated based on the size of allocation_pools, but when 'used_ips' is calculated IP address allocated out of allocation_pools are included.
This can be reproduced like this.
A created port consumes IP address out of the allocation pool, but used_ips increases.
The bug reported looks valid.
'total_ips' is calculated based on the size of allocation_pools, but when 'used_ips' is calculated IP address allocated out of allocation_pools are included.
This can be reproduced like this.
A created port consumes IP address out of the allocation pool, but used_ips increases.
$ neutron net-create net1 1.1.11, end=10. 1.1.19 net1 10.1.1.0/24 10.1.1. 99 net1 availability- show net1 ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---+ ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---+ b456-498a- bbc5-37b12b8c53 da | ip_availability | {"used_ips": 2, "subnet_id": "1dca8b81- fb51-447d- 9c58-e11d1adc90 bd", "subnet_name": "subnet1", "ip_version": 4, "cidr": "10.1.1.0/24", "total_ips": 9} | 3aa38334f8fc534 9e | ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---+
$ neutron subnet-create --name subnet1 --allocation-pool start=10.
$ neutron port-create --fixed-ip ip_address=
$ neutron net-ip-
+------
| Field | Value |
+------
| network_id | 4e3a85fb-
| network_name | net1 |
| subnet_
| tenant_id | 3b91ad8c9c62430
| total_ips | 9 |
| used_ips | 2 |
+------