[openstack-dev] [Neutron] does delete_network call delete_subnet automatically?

Edgar Magana emagana at plumgrid.com
Tue Jul 2 19:31:25 UTC 2013


When I create a network and a subnet associated to that network, I am able
to delete the network without deleting the subnet first from both CLI and
The difference is that in Horizon, both APIs are called: delete_subnet() and
When I tried by CLI, only delete_network is called as you can see in these

2013-07-02 12:26:57    DEBUG [quantum.policy] loading policy file at
2013-07-02 12:26:57    DEBUG
QuantumPluginPLUMgrid Status: delete_network() called
2013-07-02 12:26:57    DEBUG [quantum.policy] loading policy file at
2013-07-02 12:26:57    DEBUG
PLUMgrid_NOS_Server: 8080 DELETE
2013-07-02 12:26:57    DEBUG
PLUMgrid_NOS_Server Sending Data: {'Content-type': 'application/json',
'Accept': 'application/json'}
2013-07-02 12:26:57    DEBUG [quantum.openstack.common.rpc.amqp] Sending
network.delete.end on notifications.info
2013-07-02 12:26:57    DEBUG [quantum.openstack.common.rpc.amqp] UNIQUE_ID
is ad8c5a233bd6403ea850cde73afb720a.
2013-07-02 12:26:57    DEBUG [quantum.openstack.common.rpc.amqp] Making
asynchronous fanout cast...
2013-07-02 12:26:57    DEBUG [quantum.openstack.common.rpc.amqp] UNIQUE_ID
is dcba5e2b55bb4cb89aab17f5797882e6.
2013-07-02 12:27:23    DEBUG [keystoneclient.middleware.auth_token]
Authenticating user token
2013-07-02 12:27:23    DEBUG [keystoneclient.middleware.auth_token] Removing
headers from request environment:
2013-07-02 12:27:23    DEBUG [keystoneclient.middleware.auth_token] Storing
dd0bd438481c2d010d1abc5903fa11da token in memcache
2013-07-02 12:27:23    DEBUG [routes.middleware] No route matched for GET
2013-07-02 12:27:23    DEBUG [routes.middleware] Matched GET /subnets.json
2013-07-02 12:27:23    DEBUG [routes.middleware] Route path:
'/subnets{.format}', defaults: {'action': u'index', 'controller': <wsgify at
37764240 wrapping <function resource at 0x24745f0>>}
2013-07-02 12:27:23    DEBUG [routes.middleware] Match dict: {'action':
u'index', 'controller': <wsgify at 3776424

However, the subnet is not in the DB but the delete_subnet API is never
called, can somebody explain what is happening here?
BTW. This is Grizzly release



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130702/ab4aa7c9/attachment-0001.html>

More information about the OpenStack-dev mailing list