Skip to content

vipr not handling fake connector on terminate connection #17

@gmcb

Description

@gmcb

Vipr does not handle the fake connector that nova can generate at times
Connector {u'ip': u'127.0.0.1', u'initiator': u'iqn.fake'}
This is causing terminate_connection to fail with a KeyError

2016-07-06 10:32:28.391 38246 INFO powervc_cinder.zonemanager.powervc_utils [req-2a7f2c06-e8c2-4b78-a49e-79616af38d63 0688b01e6439ca32d698d20789d52169126fb41fb1a4ddafcebb97d854e836c9 be905aea83134411ba7ce9cfae6a8328 - - -] RemoveFCZone terminate_connection failure Volume <cinder.db.sqlalchemy.models.Volume object at 0x6a1dc90> Connector {u'ip': u'127.0.0.1', u'initiator': u'iqn.fake'}
2016-07-06 10:32:28.392 38246 ERROR powervc_cinder.zonemanager.powervc_utils [req-2a7f2c06-e8c2-4b78-a49e-79616af38d63 0688b01e6439ca32d698d20789d52169126fb41fb1a4ddafcebb97d854e836c9 be905aea83134411ba7ce9cfae6a8328 - - -] 'host'
2016-07-06 10:32:28.392 38246 ERROR powervc_cinder.zonemanager.powervc_utils Traceback (most recent call last):
2016-07-06 10:32:28.392 38246 ERROR powervc_cinder.zonemanager.powervc_utils File "/usr/lib/python2.7/site-packages/powervc_cinder/zonemanager/powervc_utils.py", line 496, in decorator
2016-07-06 10:32:28.392 38246 ERROR powervc_cinder.zonemanager.powervc_utils info = terminate_connection(self, _args, *_kwargs)
2016-07-06 10:32:28.392 38246 ERROR powervc_cinder.zonemanager.powervc_utils File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/emc/vipr/fc.py", line 204, in terminate_connection
2016-07-06 10:32:28.392 38246 ERROR powervc_cinder.zonemanager.powervc_utils hostname = connector['host']
2016-07-06 10:32:28.392 38246 ERROR powervc_cinder.zonemanager.powervc_utils KeyError: 'host'
2016-07-06 10:32:28.392 38246 ERROR powervc_cinder.zonemanager.powervc_utils
2016-07-06 10:32:28.392 38246 ERROR cinder.volume.manager [req-2a7f2c06-e8c2-4b78-a49e-79616af38d63 0688b01e6439ca32d698d20789d52169126fb41fb1a4ddafcebb97d854e836c9 be905aea83134411ba7ce9cfae6a8328 - - -] Terminate volume connection failed: 'host'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions