Public bug reported: In Mitaka,
Creating network resources as follows,it contains: Networks Subnets Ports Router Interfaces Routers Floating IPs Security Groups Executing 'neutron purge TENANT' command,the result returned doesn't contain subnet resource.However the subnets are actually deleted. [root@localhost devstack]# neutron net-list neutron subnet-list neutron port-list neutron router-list neutron router-port-list neutron floatingip-list +--------------------------------------+---------+----------------------------------------------------+ | id | name | subnets | +--------------------------------------+---------+----------------------------------------------------+ | d34befc5-2d78-493a-b4b0-ee771eea153a | big_net | d6c59ba1-bce1-4223-9ddf-576cc1a48df6 10.10.10.0/24 | | 45f7255d-1559-47a8-ba94-714be5598243 | net_xwj | 5c3f4fb5-a0ae-437c-9f11-9c2e8cd4d1ed 102.1.1.0/24 | | | | 0d400302-da37-40a2-a7a6-f9ba3134a6fa 101.1.1.0/24 | +--------------------------------------+---------+----------------------------------------------------+ [root@localhost devstack]# neutron subnet-list +--------------------------------------+------------+---------------+------------------------------------------------+ | id | name | cidr | allocation_pools | +--------------------------------------+------------+---------------+------------------------------------------------+ | d6c59ba1-bce1-4223-9ddf-576cc1a48df6 | big_subnet | 10.10.10.0/24 | {"start": "10.10.10.2", "end": "10.10.10.254"} | | 5c3f4fb5-a0ae-437c-9f11-9c2e8cd4d1ed | subnet_xwj | 102.1.1.0/24 | {"start": "102.1.1.2", "end": "102.1.1.254"} | | 0d400302-da37-40a2-a7a6-f9ba3134a6fa | subnet_xwj | 101.1.1.0/24 | {"start": "101.1.1.2", "end": "101.1.1.254"} | +--------------------------------------+------------+---------------+------------------------------------------------+ [root@localhost devstack]# neutron port-list +--------------------------------------+------+-------------------+-----------------------------------------------------------+ | id | name | mac_address | fixed_ips | +--------------------------------------+------+-------------------+-----------------------------------------------------------+ | 0291537e-d912-47cc-a3ee-4c677cebd61f | | fa:16:3e:e4:51:6e | {"subnet_id": "0d400302-da37-40a2-a7a6-f9ba3134a6fa", | | | | | "ip_address": "101.1.1.2"} | | | | | {"subnet_id": "5c3f4fb5-a0ae-437c-9f11-9c2e8cd4d1ed", | | | | | "ip_address": "102.1.1.2"} | | 092cf37c-409d-4ab0-9be2-da30113a6235 | | fa:16:3e:9e:81:5d | {"subnet_id": "d6c59ba1-bce1-4223-9ddf-576cc1a48df6", | | | | | "ip_address": "10.10.10.3"} | | 83c4fad1-6875-4dca-8695-d0e80dd3cdb7 | | fa:16:3e:2d:8d:6a | {"subnet_id": "d6c59ba1-bce1-4223-9ddf-576cc1a48df6", | | | | | "ip_address": "10.10.10.2"} | | a7ad23cf-d7df-47b5-9839-b1ace0641090 | | fa:16:3e:94:f2:60 | {"subnet_id": "d6c59ba1-bce1-4223-9ddf-576cc1a48df6", | | | | | "ip_address": "10.10.10.4"} | | d0041621-b8dc-4b2c-9455-eb37f3f26b08 | | fa:16:3e:7e:72:e5 | {"subnet_id": "d6c59ba1-bce1-4223-9ddf-576cc1a48df6", | | | | | "ip_address": "10.10.10.9"} | +--------------------------------------+------+-------------------+-----------------------------------------------------------+ [root@localhost devstack]# neutron router-list +--------------------------------------+-------------+-------------------------------------------------------+-------------+-------+ | id | name | external_gateway_info | distributed | ha | +--------------------------------------+-------------+-------------------------------------------------------+-------------+-------+ | f47136b0-6c84-4037-aeb9-95a3cead76a4 | router-list | {"network_id": "d34befc5-2d78-493a- | False | False | | | | b4b0-ee771eea153a", "enable_snat": true, | | | | | | "external_fixed_ips": [{"subnet_id": | | | | | | "d6c59ba1-bce1-4223-9ddf-576cc1a48df6", "ip_address": | | | | | | "10.10.10.3"}]} | | | +--------------------------------------+-------------+-------------------------------------------------------+-------------+-------+ [root@localhost devstack]# neutron floatingip-list +--------------------------------------+------------------+---------------------+---------+ | id | fixed_ip_address | floating_ip_address | port_id | +--------------------------------------+------------------+---------------------+---------+ | 261d0046-0596-4770-84bd-d9bc001ccd93 | | 10.10.10.9 | | | 4428451c-e7db-4dd5-b60f-c9c74c8e7429 | | 10.10.10.4 | | +--------------------------------------+------------------+---------------------+---------+ [root@localhost devstack]# neutron router-port-list router-list +--------------------------------------+------+-------------------+-----------------------------------------------------------+ | id | name | mac_address | fixed_ips | +--------------------------------------+------+-------------------+-----------------------------------------------------------+ | 092cf37c-409d-4ab0-9be2-da30113a6235 | | fa:16:3e:9e:81:5d | {"subnet_id": "d6c59ba1-bce1-4223-9ddf-576cc1a48df6", | | | | | "ip_address": "10.10.10.3"} | +--------------------------------------+------+-------------------+-----------------------------------------------------------+ [root@localhost devstack]# [root@localhost devstack]# [root@localhost devstack]# [root@localhost devstack]# neutron purge d692c40b9bd74af38361d855bebb60ac Purging resources: 100% complete. Deleted 1 security_group, 1 router, 2 ports, 2 networks, 2 floatingips. ** Affects: neutron Importance: Undecided Assignee: xiewj (36429515-3) Status: New ** Changed in: neutron Assignee: (unassigned) => xiewj (36429515-3) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1595041 Title: Executing 'neutron purge TENANT' command,the result returned doesn't contain the subnet resource. Status in neutron: New Bug description: In Mitaka, Creating network resources as follows,it contains: Networks Subnets Ports Router Interfaces Routers Floating IPs Security Groups Executing 'neutron purge TENANT' command,the result returned doesn't contain subnet resource.However the subnets are actually deleted. [root@localhost devstack]# neutron net-list neutron subnet-list neutron port-list neutron router-list neutron router-port-list neutron floatingip-list +--------------------------------------+---------+----------------------------------------------------+ | id | name | subnets | +--------------------------------------+---------+----------------------------------------------------+ | d34befc5-2d78-493a-b4b0-ee771eea153a | big_net | d6c59ba1-bce1-4223-9ddf-576cc1a48df6 10.10.10.0/24 | | 45f7255d-1559-47a8-ba94-714be5598243 | net_xwj | 5c3f4fb5-a0ae-437c-9f11-9c2e8cd4d1ed 102.1.1.0/24 | | | | 0d400302-da37-40a2-a7a6-f9ba3134a6fa 101.1.1.0/24 | +--------------------------------------+---------+----------------------------------------------------+ [root@localhost devstack]# neutron subnet-list +--------------------------------------+------------+---------------+------------------------------------------------+ | id | name | cidr | allocation_pools | +--------------------------------------+------------+---------------+------------------------------------------------+ | d6c59ba1-bce1-4223-9ddf-576cc1a48df6 | big_subnet | 10.10.10.0/24 | {"start": "10.10.10.2", "end": "10.10.10.254"} | | 5c3f4fb5-a0ae-437c-9f11-9c2e8cd4d1ed | subnet_xwj | 102.1.1.0/24 | {"start": "102.1.1.2", "end": "102.1.1.254"} | | 0d400302-da37-40a2-a7a6-f9ba3134a6fa | subnet_xwj | 101.1.1.0/24 | {"start": "101.1.1.2", "end": "101.1.1.254"} | +--------------------------------------+------------+---------------+------------------------------------------------+ [root@localhost devstack]# neutron port-list +--------------------------------------+------+-------------------+-----------------------------------------------------------+ | id | name | mac_address | fixed_ips | +--------------------------------------+------+-------------------+-----------------------------------------------------------+ | 0291537e-d912-47cc-a3ee-4c677cebd61f | | fa:16:3e:e4:51:6e | {"subnet_id": "0d400302-da37-40a2-a7a6-f9ba3134a6fa", | | | | | "ip_address": "101.1.1.2"} | | | | | {"subnet_id": "5c3f4fb5-a0ae-437c-9f11-9c2e8cd4d1ed", | | | | | "ip_address": "102.1.1.2"} | | 092cf37c-409d-4ab0-9be2-da30113a6235 | | fa:16:3e:9e:81:5d | {"subnet_id": "d6c59ba1-bce1-4223-9ddf-576cc1a48df6", | | | | | "ip_address": "10.10.10.3"} | | 83c4fad1-6875-4dca-8695-d0e80dd3cdb7 | | fa:16:3e:2d:8d:6a | {"subnet_id": "d6c59ba1-bce1-4223-9ddf-576cc1a48df6", | | | | | "ip_address": "10.10.10.2"} | | a7ad23cf-d7df-47b5-9839-b1ace0641090 | | fa:16:3e:94:f2:60 | {"subnet_id": "d6c59ba1-bce1-4223-9ddf-576cc1a48df6", | | | | | "ip_address": "10.10.10.4"} | | d0041621-b8dc-4b2c-9455-eb37f3f26b08 | | fa:16:3e:7e:72:e5 | {"subnet_id": "d6c59ba1-bce1-4223-9ddf-576cc1a48df6", | | | | | "ip_address": "10.10.10.9"} | +--------------------------------------+------+-------------------+-----------------------------------------------------------+ [root@localhost devstack]# neutron router-list +--------------------------------------+-------------+-------------------------------------------------------+-------------+-------+ | id | name | external_gateway_info | distributed | ha | +--------------------------------------+-------------+-------------------------------------------------------+-------------+-------+ | f47136b0-6c84-4037-aeb9-95a3cead76a4 | router-list | {"network_id": "d34befc5-2d78-493a- | False | False | | | | b4b0-ee771eea153a", "enable_snat": true, | | | | | | "external_fixed_ips": [{"subnet_id": | | | | | | "d6c59ba1-bce1-4223-9ddf-576cc1a48df6", "ip_address": | | | | | | "10.10.10.3"}]} | | | +--------------------------------------+-------------+-------------------------------------------------------+-------------+-------+ [root@localhost devstack]# neutron floatingip-list +--------------------------------------+------------------+---------------------+---------+ | id | fixed_ip_address | floating_ip_address | port_id | +--------------------------------------+------------------+---------------------+---------+ | 261d0046-0596-4770-84bd-d9bc001ccd93 | | 10.10.10.9 | | | 4428451c-e7db-4dd5-b60f-c9c74c8e7429 | | 10.10.10.4 | | +--------------------------------------+------------------+---------------------+---------+ [root@localhost devstack]# neutron router-port-list router-list +--------------------------------------+------+-------------------+-----------------------------------------------------------+ | id | name | mac_address | fixed_ips | +--------------------------------------+------+-------------------+-----------------------------------------------------------+ | 092cf37c-409d-4ab0-9be2-da30113a6235 | | fa:16:3e:9e:81:5d | {"subnet_id": "d6c59ba1-bce1-4223-9ddf-576cc1a48df6", | | | | | "ip_address": "10.10.10.3"} | +--------------------------------------+------+-------------------+-----------------------------------------------------------+ [root@localhost devstack]# [root@localhost devstack]# [root@localhost devstack]# [root@localhost devstack]# neutron purge d692c40b9bd74af38361d855bebb60ac Purging resources: 100% complete. Deleted 1 security_group, 1 router, 2 ports, 2 networks, 2 floatingips. To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1595041/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp