[openstack-dev] [Cinder] Listing of backends

Martin, Kurt Frederick (ESSN Storage MSDU) kurt.f.martin at hp.com
Mon Dec 22 17:16:35 UTC 2014


You can set/unset key value pairs to your volume type with the cinder type-key command. Or you can also set them in the Horizon Admin console under the Admin->Volumes->Volume Types tab, then select “View Extra Specs” Action.

$cinder help type-key
usage: cinder type-key <vtype> <action> <key=value> [<key=value> ...]

Sets or unsets extra_spec for a volume type.

Positional arguments:
  <vtype>      Name or ID of volume type.
  <action>     The action. Valid values are 'set' or 'unset.'
  <key=value>  The extra specs key and value pair to set or unset. For unset,
               specify only the key.

e.g.
cinder type-key GoldVolumeType set volume_backend_name=my_iscsi_backend

~Kurt

From: Pradip Mukhopadhyay [mailto:pradip.interra at gmail.com]
Sent: Sunday, December 07, 2014 4:36 AM
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] [Cinder] Listing of backends

Thanks!
One more question.
Is there any equivalent API to add keys to the volume-type? I understand we have APIs for creating volume-type? But how about adding key-value pair (say I want to add-key to the volume-type as backend-name="my_iscsi_backend" ?

Thanks,
Pradip

On Sun, Dec 7, 2014 at 4:25 PM, Duncan Thomas <duncan.thomas at gmail.com<mailto:duncan.thomas at gmail.com>> wrote:
See https://review.openstack.org/#/c/119938/ - now merged. I don't believe the python-cinderclient side work has been done yet, nor anything in Horizon, but the API itself is now there.

On 7 December 2014 at 09:53, Pradip Mukhopadhyay <pradip.interra at gmail.com<mailto:pradip.interra at gmail.com>> wrote:
Hi,

Is there a way to find out/list down the backends discovered for Cinder?

There is, I guess, no API for get the list of backends.


Thanks,
Pradip

_______________________________________________
OpenStack-dev mailing list
OpenStack-dev at lists.openstack.org<mailto:OpenStack-dev at lists.openstack.org>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



--
Duncan Thomas

_______________________________________________
OpenStack-dev mailing list
OpenStack-dev at lists.openstack.org<mailto:OpenStack-dev at lists.openstack.org>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141222/0e4a0f6f/attachment.html>


More information about the OpenStack-dev mailing list