Fujitsu DX Driver: Fix exception in terminate_connection with no connector

Bug #1708329 reported by ZhaTingting
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
ZhaTingting

Bug Description

Fujitsu ETERNUS CI 'test_force_detach_volume' test was failed because of terminate_connection being called without connector.

See stack trace below:

Traceback (most recent call last):
   File "/opt/stack/new/cinder/cinder/volume/manager.py", line 1777, in terminate_connection
     force=force)
   File "/opt/stack/new/cinder/cinder/zonemanager/utils.py", line 104, in decorator
     conn_info = terminate_connection(self, *args, **kwargs)
   File "/opt/stack/new/cinder/cinder/volume/drivers/fujitsu/eternus_dx_fc.py", line 176, in terminate_connection
     {'vid': volume['id'], 'wwpns': connector['wwpns']})
TypeError: 'NoneType' object has no attribute '__getitem__'

Tags: eternus
ZhaTingting (zhatt)
Changed in cinder:
assignee: nobody → ZhaTingting (zhatt)
status: New → In Progress
tags: added: eternus
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

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

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

Reviewed: https://review.openstack.org/490342
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=2d888670817a1761e27d7482267ad1fcab0443a9
Submitter: Jenkins
Branch: master

commit 2d888670817a1761e27d7482267ad1fcab0443a9
Author: Tingting Zha <email address hidden>
Date: Thu Aug 3 14:14:07 2017 +0800

    Fujitsu Driver: Fix exception in terminate_connection with no connector

    Force-detach should be ok when connector is None. When connector
    is None, we change the driver to detach the volume from anything
    its attached to.

    Change-Id: I244e392ff00ef333a4ea823fb7b27da457c4fcea
    Closes-Bug: #1708329

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 11.0.0.0rc1

This issue was fixed in the openstack/cinder 11.0.0.0rc1 release candidate.

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.