nova compute info cache refresh should detach obsolete ports

Bug #1462366 reported by Baodong (Robert) Li
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Medium
Sivasathurappan Radhakrishnan

Bug Description

Nova conduct periodic task to heal/refresh its info cache. Obsolete ports should be detached during that process.

commit 4a02d9415f64e8d579d1b674d6d2efda902b01fa
Merge: 9fc5c05 13cf0c2
Author: Jenkins <email address hidden>
Date: Thu Jun 4 11:32:03 2015 +0000

    Merge "Get rid of oslo-incubator copy of middleware"

To test it, create an instance with neutron ports, and then delete one of the neutron ports by using neutron CLI. The deleted port remains attached

Changed in nova:
assignee: nobody → Baodong (Robert) Li (baoli)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
status: New → In Progress
Revision history for this message
Sahid Orentino (sahid-ferdjaoui) wrote :

I believe we want to fix the method responsible to update the info_cache of an instance not only the periodic task

Changed in nova:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to nova (master)

Reviewed: https://review.openstack.org/179390
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=d3e9ddfb7f769c775132349e796acba2b7fa11b9
Submitter: Jenkins
Branch: master

commit d3e9ddfb7f769c775132349e796acba2b7fa11b9
Author: Robert Li <email address hidden>
Date: Fri Jun 5 10:06:28 2015 -0400

    Handle port delete initiated by neutron

    Neutron can delete a port without Nova being aware of it.
    https://review.openstack.org/#/c/187871/ adds an event to notify nova
    when a port is deleted. This patch will process the event and detach
    the interface.

    Change-Id: I998b6bb80cc0a81d665b61b8c4a424d7219c666f
    Related-Bug: #1448148
    Related-Bug: #1333365
    Related-Bug: #1462366

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Michael Still (<email address hidden>) on branch: master
Review: https://review.openstack.org/188783
Reason: This patch has been stalled for quite a while, so I am going to abandon it to keep the code review queue sane. Please restore the change when it is ready for review.

Changed in nova:
assignee: Baodong (Robert) Li (baoli) → nobody
status: In Progress → Confirmed
Changed in nova:
assignee: nobody → Sivasathurappan Radhakrishnan (siva-radhakrishnan)
Revision history for this message
Sivasathurappan Radhakrishnan (siva-radhakrishnan) wrote :

I tried to reproduce the bugs using following commands

1) neutron port-create <network_id>
2) nova boot --image cirros-0.3.4-x86_64-uec --flavor m1.small --nic port-id=<port_id> test1
3) nova interface-list <server_id>
4) neutron port-delete <port_id>
5) nova interface-list <server_id>

I wasn't able to reproduce the scenario described above. Hence I am invalidating this bug. If reproducible please feel free to reopen the bug.

Changed in nova:
status: Confirmed → Invalid
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.