VMAX: IG error: 'NoneType' object has no attribute '__getitem__'

Bug #1800005 reported by Carl Pecinovsky
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Helen Walsh

Bug Description

Using Queens FC VMAX driver. Initialize connection can result in the failure:

2018-10-23 10:26:21.081 68231 ERROR cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/dell_emc/vmax/rest.py", line 1322, in get_initiator_list
2018-10-23 10:26:21.081 68231 ERROR cinder.volume.manager init_list = init_dict['initiatorId']
2018-10-23 10:26:21.081 68231 ERROR cinder.volume.manager TypeError: 'NoneType' object has no attribute '__getitem__'

code:

        init_dict = self.get_resource(array, SLOPROVISIONING, 'initiator',
                                      params=params, version=version)
        try:
            init_list = init_dict['initiatorId']
        except KeyError:
            init_list = []

init_dict could be None if backend did not return a 200 OK response. For example, the resource is not found. Need to account for this case as well and return empty list.

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/615307

Changed in cinder:
assignee: nobody → Helen Walsh (walshh2)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/615307
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=c3149ebc40110fb903966f64ee03c8489a061623
Submitter: Zuul
Branch: master

commit c3149ebc40110fb903966f64ee03c8489a061623
Author: Helen Walsh <email address hidden>
Date: Fri Nov 2 20:37:19 2018 +0000

    VMAX driver - allow for a clean system with no initiator groups

    Currenty not allowing for a system with no initiator groups so in this
    empty list case an unhandled exception is thrown.

    Change-Id: I7fdfb71ce34aeebdaf23718727a938e9c450f615
    Closes-Bug: #1800005

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

This issue was fixed in the openstack/cinder 14.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.