powervc-driver/nova-powervc
Yi Ming Yin 7fc7fc17e9 Add extra logic to handle port detach issue
nova manager will first delete local neutron port before call driver to
detach port on PowerVC. This behavior will trigger a local port deleted
event and cause current driver code failed to retrieve remote PowerVC
port id when doing interface detach

1. First priority is to use local port id to retrieve remote PowerVC
port id, which is the current logic.
2. If local port id cannot be retrieved, it will call interface_list on
remote PowerVC instance and get all attached interface information. Then
the code will scan all the local port IP addresses and compare to remote
IP addresses and find the matched port id to detach.

Change-Id: I3a87f3780c2cb949a0dc80380a37ab17bb98e059
Closes-Bug: #1392540
(cherry picked from commit 8c766d0861)
2014-11-16 04:21:25 +00:00
..
bin move to use oslo.i18/utils/serialization 2014-10-23 00:07:25 +08:00
doc Add document for new host-maintenance-mode feature 2014-10-15 14:30:22 +08:00
hostmaintenanceclient Add nova CLI extension for host maintenance mode status query/evaucation 2014-10-27 15:24:28 +08:00
init Upstart process daemon scripts need to change. 2014-09-17 07:48:14 +00:00
powervc Add extra logic to handle port detach issue 2014-11-16 04:21:25 +00:00
test Add debug info for deploy/delete/resize 2014-11-10 16:19:54 +08:00
.project Initial code base commit. 2014-05-08 22:00:29 +08:00
.pydevproject Fix flake8 warning and error report 2014-07-22 14:35:24 +08:00
pep8.txt Initial code base commit. 2014-05-08 22:00:29 +08:00
run_tests.sh Initial code base commit. 2014-05-08 22:00:29 +08:00