Sorry, of course this
https://github.com/openstack/cinder/blob/master/cinder/volume/utils.py#L575
On Wed, Jan 6, 2016 at 5:57 PM, Yuriy Nesenenko
wrote:
> You can use this function
> https://github.com/openstack/cinder/blob/master/cinder/volume/utils.py#L5
>
> On Wed,
Hello,
>From CLI, I can see the host-name in the cinder show command as follows:
| os-vol-host-attr:host | openstack4@mySCSIBackend#pool1
|
How this info can be accessed from the cinder python client?
I can access other information (id, size, name etc.) as follows:
>>>
Try client.volumes..get(id).__dict__['
*os-vol-host-attr:host'] *
*Ugly, but it seems to work*
On 6 January 2016 at 18:20, Pradip Mukhopadhyay
wrote:
> Thanks, Yuriy.
>
> My question was: how can I retrieve the "host@backend#pool" from the
> pythonclient API of
Thanks, Yuriy.
My question was: how can I retrieve the "host@backend#pool" from the
pythonclient API of volume listing? Once I have that, I should use this
method to extract the pool-name.
But how can I access this info? CLI is showing this as in the following
field:
Thanks a ton Duncan. It's just awesome.
>>> volumes[0].__dict__['os-vol-host-attr:host']
u'openstack4@cmodeSCSIBackend#pool1'
>>>
--pradip
On Thu, Jan 7, 2016 at 12:53 AM, Duncan Thomas
wrote:
> Try client.volumes..get(id).__dict__['
>
> *os-vol-host-attr:host'] *