Can't delete subnetpool when using existing neutron network
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kuryr-libnetwork |
Fix Released
|
Undecided
|
Dongcan Ye |
Bug Description
How to reproduce:
=================
1. Create Neutron network using neutron-client:
=======
# neutron net-create test2
Created a new network:
+------
| Field | Value |
+------
| admin_state_up | True |
| availability_
| availability_zones | |
| created_at | 2016-12-
| description | |
| id | 303825d7-
| ipv4_address_scope | |
| ipv6_address_scope | |
| mtu | 1450 |
| name | test2 |
| port_security_
| project_id | ea3f909d09914ae
| provider:
| provider:
| provider:
| qos_policy_id | |
| revision_number | 3 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tags | |
| tenant_id | ea3f909d09914ae
| updated_at | 2016-12-
+------
2. Using docker client create network using existing Neutron network:
=======
# docker network create -d kuryr --ipam-driver=kuryr --subnet=
f37928cdea4e8ac
3. Using docker client delete network:
=======
# docker network rm test2_docker_net
test2_docker_net
In kuryr-libnetwork, raise log info:
2016-12-15 13:35:17.715 13562 DEBUG kuryr_libnetwork [-] Received JSON data {u'PoolID': u'82788620-
2016-12-15 13:35:17.824 13562 DEBUG neutronclient.
2016-12-15 13:35:17.824 13562 DEBUG neutronclient.
[2016-12-15 13:35:17,825] ERROR in controllers: Error happened during deleting a Neutron subnetpool: Unable to delete subnet pool: Subnet pool has existing allocations.
Neutron server returns request_ids: ['req-14ee6c02-
2016-12-15 13:35:17.825 13562 ERROR kuryr_libnetwork [-] Error happened during deleting a Neutron subnetpool: Unable to delete subnet pool: Subnet pool has existing allocations.
Neutron server returns request_ids: ['req-14ee6c02-
[2016-12-15 13:35:17,825] ERROR in utils: Unexpected error happened: Unable to delete subnet pool: Subnet pool has existing allocations.
Neutron server returns request_ids: ['req-14ee6c02-
2016-12-15 13:35:17.825 13562 ERROR kuryr_libnetwork [-] Unexpected error happened: Unable to delete subnet pool: Subnet pool has existing allocations.
Neutron server returns request_ids: ['req-14ee6c02-
Traceback (most recent call last):
File "/usr/local/
rv = self.dispatch_
File "/usr/local/
return self.view_
File "/opt/stack/
app.
File "/usr/local/
return self.delete(
File "/usr/local/
headers=
File "/usr/local/
headers=
File "/usr/local/
self.
File "/usr/local/
exception_
File "/usr/local/
request_
BadRequest: Unable to delete subnet pool: Subnet pool has existing allocations.
Changed in kuryr-libnetwork: | |
assignee: | nobody → Dongcan Ye (hellochosen) |
summary: |
- Can't delete subnetpool when deleting network + Can't delete subnetpool when using existing neutron network |
Fix proposed to branch: master /review. openstack. org/411144
Review: https:/