Cannot delete external network

Bug #1599672 reported by Andrey Grebennikov
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
New
High
Shyam Bhople
R3.0
In Progress
Critical
Shyam Bhople
R3.0.2.x
In Progress
Critical
Shyam Bhople
OpenContrail
New
Critical
Shyam Bhople

Bug Description

Contrail 3.0.2 release With OpenStack Liberty

I'm creating network using Neutron CLI, specifying "router:external=True".
Creating a subnet in the new network.
Then I'm trying to delete subnet/network.

Expected result: network deleted
In fact: "Bad network request: Cannot Delete IP Block, Floating Pool(s) in use"
On the Contrail API side in the log:

192.168.100.73 - - [2016-07-05 23:34:31] "POST /neutron/subnet HTTP/1.1" 400 234 0.045637
127.0.0.1 - - [2016-07-05 23:36:44] "POST /useragent-kv HTTP/1.1" 200 172 0.004454
127.0.0.1 - - [2016-07-05 23:36:44] "GET /virtual-network/c2b7dfe3-ea64-4bc4-b8be-8669dd6ece85?exclude_back_refs=True&exclude_children=True HTTP/1.1" 200 1793 0.004251
127.0.0.1 - - [2016-07-05 23:36:45] "PUT /virtual-network/c2b7dfe3-ea64-4bc4-b8be-8669dd6ece85 HTTP/1.1" 409 169 0.014119
<pre>Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_interface.py", line 303, in plugin_delete_subnet
    cfgdb.subnet_delete(subnet['id'])
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_db.py", line 2325, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_db.py", line 2752, in subnet_delete
    self._virtual_network_update(net_obj)
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_db.py", line 309, in _virtual_network_update
    resource='network', msg=str(e))
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_db.py", line 194, in _raise_contrail_exception
    bottle.abort(400, json.dumps(exc_info))
  File "/usr/lib/python2.7/dist-packages/bottle.py", line 2310, in abort
    raise HTTPError(code, text)
HTTPError
</pre>
192.168.100.73 - - [2016-07-05 23:36:45] "POST /neutron/subnet HTTP/1.1" 400 234 0.046371

Tags: config neutron
Sachin Bansal (sbansal)
Changed in opencontrail:
assignee: nobody → Atul Moghe (moghea)
importance: Undecided → Critical
Changed in juniperopenstack:
importance: Undecided → High
assignee: nobody → Atul Moghe (moghea)
tags: added: config neutron
Revision history for this message
Denis Kostryukov (dkostryukov) wrote :

I have the same issue, but my subnet belongs to private network.

# neutron subnet-delete dfffa880-e51d-448e-9d61-f26123456789
Bad network request: Cannot Delete IP Block, Floating Pool(s) in use

Revision history for this message
ajeet vijayvergiya (ajeet17181) wrote :

Looks like this issue got fixed in master branch

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0.2.x

Review in progress for https://review.opencontrail.org/29853
Submitter: SHYAM BHOPLE (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/29880
Submitter: SHYAM BHOPLE (<email address hidden>)

Revision history for this message
Shyam Bhople (shyamb) wrote :

This issue is observed on R3.0.2.x and not on later releases.

Shyam Bhople (shyamb)
Changed in juniperopenstack:
assignee: Atul Moghe (moghea) → SHYAM BHOPLE (shyamb)
Changed in opencontrail:
assignee: Atul Moghe (moghea) → SHYAM BHOPLE (shyamb)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/30743
Submitter: manishkn (<email address hidden>)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.