Can't specify custom backend-name for HP/3par driver

Bug #1175222 reported by Shanthakumar K
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Walt Boring
Grizzly
Fix Released
Undecided
John Griffith

Bug Description

Hi,

Please find my setup details below,

OS: Ubuntu12.04 LTS 64B

I have openstack grizzly single node setup with all the services up and running.

I'm running into a config issue with cinder-volume service, while I'm trying to create the volume using multibackend driver
>>>>> Getting "No valid host found" error

I have created the volume-type and associated the same with volume_backend_name (Custom name for both volumetype & volume_backend_name)

Since the code is hardcoded, the create request for 3par volume is not taking the custom name and its taking the volume_backend_name as "HP3PARFCDriver"

We found this after lot this scheduler log updatation.

once we change the volume_backend_name to HP3PARFCDriver the request is getting passed.

Its not mentioned in any docs as well and its similar to bug "1173037"

Tags: drivers
information type: Private Security → Public
Revision history for this message
John Griffith (john-griffith) wrote :

We just fixed this in the LHN driver and noticed it's a problem in a number of the drivers. We should just go through and address all of them at this point and submit one fix for all of the remaining drivers that didn't implement:

backend_name = self.configuration.safe_get('volume_backend_name')
data['volume_backend_name'] = backend_name or self.__class__.__name__

Revision history for this message
Walt Boring (walter-boring) wrote :

I'll go through the drivers and make sure they all have lines to allow adjusting the volume_backend_name

Changed in cinder:
assignee: nobody → Walt Boring (walter-boring)
Revision history for this message
Shanthakumar K (shantha-kumar) wrote :

Thanks for you feedback.

As of now we have tested the in LHN iSCSI & 3par FC.

Soon ll update for 3par iSCSI & netapp if you need.

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

Changed in cinder:
status: New → In Progress
tags: added: drivers grizzly-backport-potential
Revision history for this message
Shanthakumar K (shantha-kumar) wrote :

Thanks for accepting the defect.

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

Reviewed: https://review.openstack.org/28208
Committed: http://github.com/openstack/cinder/commit/54a2ee48a4dc31cbf116b1e9d5add37efe66bc20
Submitter: Jenkins
Branch: master

commit 54a2ee48a4dc31cbf116b1e9d5add37efe66bc20
Author: Walter A. Boring IV <email address hidden>
Date: Fri May 3 14:36:12 2013 -0700

    Fix ability to add custom volume_backend_name

    This patch fixes the ability to set the volume_backend_name
    for each driver. The original bug was filed against LeftHand
    and 3PAR, but several drivers exhibited a fixed backend name.

    Fixes: bug #1175222
           bug #1172286

    Change-Id: I4197f99bebd6ca8e4969795ae6edb537bc066c90

Changed in cinder:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/grizzly)

Fix proposed to branch: stable/grizzly
Review: https://review.openstack.org/28440

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

Reviewed: https://review.openstack.org/28440
Committed: http://github.com/openstack/cinder/commit/995a3100fcaa7eb445b2838c4b4799a482c817cc
Submitter: Jenkins
Branch: stable/grizzly

commit 995a3100fcaa7eb445b2838c4b4799a482c817cc
Author: Walter A. Boring IV <email address hidden>
Date: Fri May 3 14:36:12 2013 -0700

    Fix ability to add custom volume_backend_name

    This patch fixes the ability to set the volume_backend_name
    for each driver. The original bug was filed against LeftHand
    and 3PAR, but several drivers exhibited a fixed backend name.

    Fixes: bug #1175222
           bug #1172286

    Change-Id: I4197f99bebd6ca8e4969795ae6edb537bc066c90
    (cherry picked from commit 54a2ee48a4dc31cbf116b1e9d5add37efe66bc20)

tags: removed: grizzly-backport-potential
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → havana-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: havana-1 → 2013.2
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.