ovsvapp_cluster_vni_allocation table is not getting updated upon VM deletion

Bug #1520082 reported by Romil Gupta
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-vsphere
Fix Committed
Undecided
Romil Gupta

Bug Description

2015-11-25 16:46:40.122 DEBUG neutron.plugins.ml2.drivers.ovsvapp.mech_driver [req-fecba7dd-9a96-4ebd-b3e3-426ad5d7a9ca admin 23400dbb40034736806da670d055a16f] =======DELETE_PORT_PORTCOMMIT_CALLED==== from (pid=25452) delete_port_postcommit /opt/stack/neutron/neutron/plugins/ml2/drivers/ovsvapp/mech_driver.py:62
2015-11-25 16:46:40.123 DEBUG networking_vsphere.ml2.ovsvapp_driver [req-fecba7dd-9a96-4ebd-b3e3-426ad5d7a9ca admin 23400dbb40034736806da670d055a16f] =======DELETE_PORT_PORTCOMMIT_RECEIVED==== from (pid=25452) delete_port_postcommit /opt/stack/networking-vsphere/networking_vsphere/ml2/ovsvapp_driver.py:154
2015-11-25 16:46:40.125 DEBUG networking_vsphere.ml2.ovsvapp_driver [req-fecba7dd-9a96-4ebd-b3e3-426ad5d7a9ca admin 23400dbb40034736806da670d055a16f] ========OVSvApp Mech driver - delete_port_postcommit for port: 7473722d-a5e2-4cae-8e49-9ed4699c03b1. from (pid=25452) delete_port_postcommit /opt/stack/networking-vsphere/networking_vsphere/ml2/ovsvapp_driver.py:160
2015-11-25 16:46:40.128 ERROR neutron.plugins.ml2.managers [req-fecba7dd-9a96-4ebd-b3e3-426ad5d7a9ca admin 23400dbb40034736806da670d055a16f] Mechanism driver 'ovsvapp' failed in delete_port_postcommit
2015-11-25 16:46:40.128 TRACE neutron.plugins.ml2.managers Traceback (most recent call last):
2015-11-25 16:46:40.128 TRACE neutron.plugins.ml2.managers File "/opt/stack/neutron/neutron/plugins/ml2/managers.py", line 327, in _call_on_drivers
2015-11-25 16:46:40.128 TRACE neutron.plugins.ml2.managers getattr(driver.obj, method_name)(context)
2015-11-25 16:46:40.128 TRACE neutron.plugins.ml2.managers File "/opt/stack/neutron/neutron/plugins/ml2/drivers/ovsvapp/mech_driver.py", line 63, in delete_port_postcommit
2015-11-25 16:46:40.128 TRACE neutron.plugins.ml2.managers self.ovsvapp_driver.delete_port_postcommit(context)
2015-11-25 16:46:40.128 TRACE neutron.plugins.ml2.managers File "/opt/stack/networking-vsphere/networking_vsphere/ml2/ovsvapp_driver.py", line 173, in delete_port_postcommit
2015-11-25 16:46:40.128 TRACE neutron.plugins.ml2.managers vcenter = agent['configurations']['vcenter']
2015-11-25 16:46:40.128 TRACE neutron.plugins.ml2.managers KeyError: 'vcenter'
2015-11-25 16:46:40.128 TRACE neutron.plugins.ml2.managers
2015-11-25 16:46:40.130 ERROR neutron.plugins.ml2.plugin [req-fecba7dd-9a96-4ebd-b3e3-426ad5d7a9ca admin 23400dbb40034736806da670d055a16f] mechanism_manager.delete_port_postcommit failed for port 7473722d-a5e2-4cae-8e49-9ed4699c03b1

Romil Gupta (romilg)
Changed in networking-vsphere:
status: New → In Progress
assignee: nobody → Romil Gupta (romilg)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-vsphere (master)

Reviewed: https://review.openstack.org/250186
Committed: https://git.openstack.org/cgit/openstack/networking-vsphere/commit/?id=89f2b7482337db15343012ef6a7798d2031980d3
Submitter: Jenkins
Branch: master

commit 89f2b7482337db15343012ef6a7798d2031980d3
Author: Romil Gupta <email address hidden>
Date: Wed Nov 25 22:45:57 2015 -0800

    Use vcenter_id instead of vcenter from configuration

    Fixed ovsvapp_cluster_vni_allocation table is not getting
    updated upon VM deletion.

    Change-Id: I584690956d909e7e64ab826d6ecbaf85ccf34f22
    Closes-Bug: #1520082

Changed in networking-vsphere:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-vsphere (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/251617

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-vsphere (stable/liberty)

Reviewed: https://review.openstack.org/251617
Committed: https://git.openstack.org/cgit/openstack/networking-vsphere/commit/?id=7b30ffda067048a258f21ece1c2feb8ec91b2853
Submitter: Jenkins
Branch: stable/liberty

commit 7b30ffda067048a258f21ece1c2feb8ec91b2853
Author: Romil Gupta <email address hidden>
Date: Wed Nov 25 22:45:57 2015 -0800

    Use vcenter_id instead of vcenter from configuration

    Fixed ovsvapp_cluster_vni_allocation table is not getting
    updated upon VM deletion.

    Closes-Bug: #1520082
    (cherry picked from commit 89f2b7482337db15343012ef6a7798d2031980d3)

    Conflicts:
     networking_vsphere/tests/unit/ml2/test_ovsvapp_mech_driver.py

    Change-Id: I584690956d909e7e64ab826d6ecbaf85ccf34f22

tags: added: in-stable-liberty
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.