Not able to delete the network - exceptions.NotImplementedError (docs needed)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Matt Riedemann |
Bug Description
Description
===========
I have created the network (NET-2) for assigning floating IP to an instances. There were some problem in bringing interface attached to the router and I am trying to delete and create again.
NET-1
Network Type: flat
Physical Network: physnet1
Segmentation ID: -
NET-2
Network Type: vlan
Physical Network: physnet1
Segmentation ID: 128
Steps to reproduce
==================
1. Create network (Enable External Network)
2. Create subnetwork (Disable DHCP)
3. Add interface to an existing network
4 Delete network
I also tried to remove interface from route , but got an error "Unable to delete interface: dce21efa-
And then I did "nova net-list"
root@node-
+------
| ID | Label | CIDR |
+------
| 462ec7ee-
| bce1b871-
| c837a299-
+------
root@node-
ERROR (ClientException): Unexpected API Error. Please report this at http://
<type 'exceptions.
Expected result
===============
Network should be deleted
Actual result
=============
ERROR (ClientException): Unexpected API Error. Please report this at http://
<type 'exceptions.
Environment
===========
1. Exact version of OpenStack you are running.
Mitaka
root@node-1:~# dpkg -l | grep nova
ii nova-api 2:13.1.
ii nova-cert 2:13.1.
ii nova-common 2:13.1.
ii nova-conductor 2:13.1.
ii nova-consoleauth 2:13.1.
ii nova-consoleproxy 2:13.1.
ii nova-scheduler 2:13.1.
ii python-nova 2:13.1.
ii python-novaclient 2:3.3.1-
root@node-1:~#
2. Which hypervisor did you use?
Libvirt + KVM
3. Which storage type did you use?
LVM
4. Which networking type did you use?
Neutron with OpenVSwitch
Logs & Configs
==============
I have deployed OpenStack using Fuel 9.0 with following config
1 Controller Node
2 Compute Node
Attached the Nova-API log
Changed in nova: | |
assignee: | nobody → Matt Riedemann (mriedem) |
status: | New → Confirmed |
summary: |
- Not able to delete the network - exceptions.NotImplementedError + Not able to delete the network - exceptions.NotImplementedError (docs + needed) |
Changed in nova: | |
importance: | Undecided → Low |
The os-tenant-networks REST API in Nova has never supported proxying the network delete call to Neutron, so it fails with a 500 as that proxy isn't implemented internally to Nova. You need to use Neutron to delete the network, i.e. neutron net-delete command.
The only thing that nova proxies for networks is listing and showing details about them, but that's also deprecated in the 2.36 microversion in the Newton release.
So basically if you're doing anything with networks and you're using Neutron, you need to use the neutron client (or openstack client).
Also noted in the compute API reference:
http:// developer. openstack. org/api- ref/compute/ #project- networks- os-tenant- networks- deprecated
But that reference does need to be updated a bit to explain that create/delete aren't implemented when using neutron and will result in an error.