Comment 0 for bug 1324436

Revision history for this message
Romil Gupta (romilg) wrote :

DESCRIPTION: Changing the ml2 network type result in internal server error while performing delete/update operation on the pre existing resources

Steps to Reproduce:

1.Configure a ml2 plug-in with network type as vxlan.
 /etc/neutron/plugins/ml2/ml2_conf.ini
[ml2]
type_drivers = vxlan
tenant_network_types = vxlan
mechanism_drivers = openvswitch,linuxbridge,l2population

2.Create a network .
neutron net-create Net1

+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| id | 4ea83d79-95f4-4a97-bb2e-b8599fa27723 |
| name | Net1 |
| provider:network_type | vxlan |
| provider:physical_network | |
| provider:segmentation_id | 500 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | e261d031311b484a9ddb177291fab164 |
+---------------------------+--------------------------------------+
2. Update the ml2 plugin network type as vlan./etc/neutron/plugins/ml2/ml2_conf.ini

[ml2]
type_drivers = vlan
tenant_network_types = vlan
mechanism_drivers = openvswitch,linuxbridge,l2population
3.Create a network again :
neutron net-create n1
Created a new network:
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| id | d8593185-9e0f-435f-a96e-3d6deb13c5e4 |
| name | n1 |
| provider:network_type | vlan |
| provider:physical_network | physnet1 |
| provider:segmentation_id | 3541 |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | e261d031311b484a9ddb177291fab164 |
+---------------------------+--------------------------------------+

4.List the network both the network is listed.
5. Try to delete the vxlan network type network created:
neutron net-delete Net1
Request Failed: internal server error while processing your request.