hitachi drivers access volume['instance_uuid']

Bug #1436605 reported by Walt Boring
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Critical
Walt Boring

Bug Description

volume/drivers/hitachi/hbsd_fc.py
508: if (volume['instance_uuid'] or volume['attached_host']):

volume/drivers/hitachi/hbsd_iscsi.py
413: if (volume['instance_uuid'] or volume['attached_host']):

the instance_uuid and attached_host don't exist in the volume object now. They live inside the volume_attachment list, if any, for the volume.

Tags: driver hitachi
Changed in cinder:
importance: Undecided → Critical
tags: added: driver hitachi
Revision history for this message
Walt Boring (walter-boring) wrote :

volume['volume_attachment'] is a list if there are any attachments.

description: updated
Mike Perez (thingee)
Changed in cinder:
milestone: none → kilo-rc1
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/167883

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

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

commit 2fc920a55c39af815641b85f7d71458257202a1b
Author: Walter A. Boring IV <email address hidden>
Date: Thu Mar 26 05:04:00 2015 +0000

    Hitachi: Fix access to volume instance_uuid

    The instance_uuid and attached_host no longer exists
    in the volume object. It's part of the attachments that
    show up in volume['volume_attachment'].

    This patch now tests to see if there are any volume
    attachments at all via the volume['volume_attachment'] list.

    Change-Id: I6b06adaf408e9458a9d4d8c73a6749bd3a282340
    Closes-Bug: 1436605

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: kilo-rc1 → 2015.1.0
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.