OVSvApp Agent unable to delete stale ports

Bug #1499504 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-09-23 20:03:19.674 ^[[00;32mDEBUG networking_vsphere.agent.ovsvapp_agent [^[[00;36m-^[[00;32m] ^[[01;35m^[[00;32mStale ports: set([u'9e3fa1e4-bf17-4437-b841-540df49365c5', u'3984d992-a206-43aa-bf64-daa125ed275a']).^[[00m ^[[00;33mfrom (pid=30752) _process_uncached_devices_sublist /opt/stack/networking-vsphere/networking_vsphere/agent/ovsvapp_agent.py:550^[[00m
2015-09-23 20:03:19.674 ^[[01;31mERROR networking_vsphere.agent.ovsvapp_agent [^[[00;36m-^[[01;31m] ^[[01;35m^[[01;31mRPC get_ports_details_list failed u'9e3fa1e4-bf17-4437-b841-540df49365c5'.^[[00m
^[[01;31m2015-09-23 20:03:19.674 TRACE networking_vsphere.agent.ovsvapp_agent ^[[01;35m^[[00mTraceback (most recent call last):
^[[01;31m2015-09-23 20:03:19.674 TRACE networking_vsphere.agent.ovsvapp_agent ^[[01;35m^[[00m File "/opt/stack/networking-vsphere/networking_vsphere/agent/ovsvapp_agent.py", line 553, in _process_uncached_devices_sublist
^[[01;31m2015-09-23 20:03:19.674 TRACE networking_vsphere.agent.ovsvapp_agent ^[[01;35m^[[00m self._remove_stale_ports_flows(stale_ports)
^[[01;31m2015-09-23 20:03:19.674 TRACE networking_vsphere.agent.ovsvapp_agent ^[[01;35m^[[00m File "/opt/stack/networking-vsphere/networking_vsphere/agent/ovsvapp_agent.py", line 495, in _remove_stale_ports_flows
^[[01;31m2015-09-23 20:03:19.674 TRACE networking_vsphere.agent.ovsvapp_agent ^[[01;35m^[[00m vnic = self.vnic_info[port_id]
^[[01;31m2015-09-23 20:03:19.674 TRACE networking_vsphere.agent.ovsvapp_agent ^[[01;35m^[[00mKeyError: u'9e3fa1e4-bf17-4437-b841-540df49365c5'
^[[01;31m2015-09-23 20:03:19.674 TRACE networking_vsphere.agent.ovsvapp_agent ^[[01;35m^[[00m

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

Fix proposed to branch: master
Review: https://review.openstack.org/227497

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

Reviewed: https://review.openstack.org/227497
Committed: https://git.openstack.org/cgit/openstack/networking-vsphere/commit/?id=61a9384dceefc2f542985b30e0a1a9ba60d49b1b
Submitter: Jenkins
Branch: master

commit 61a9384dceefc2f542985b30e0a1a9ba60d49b1b
Author: Romil Gupta <email address hidden>
Date: Thu Sep 24 11:51:29 2015 -0700

    Fix device_create method in ovsvapp_agent

    We shouldn't update the devices_to_filter for port id's belonging to VM's
    hosted on other ESX hosts.

    In the scalability setup we have observed that due to unavailability of
    resources on a given ESX nova delete the VM's and neutron eventually deletes
    the port associated to that VM from DB, since OVSvApp agent running on other
    ESX host tries to delete the flows for that port it won't be able to find in
    neutron DB and get_ports_details_list RPC throws exception and stuck in loop.

    Change-Id: I912d32c33c3f36d87df6539f925f18a8ab1890fc
    Closes-Bug: 1499504

Changed in networking-vsphere:
status: In Progress → Fix Committed
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.