[openstack-dev] [cinder] [nova] [scheduler] Nova node name passed to Cinder

Vishvananda Ishaya vishvananda at gmail.com
Tue Jan 27 20:02:45 UTC 2015


On Jan 26, 2015, at 10:16 PM, Philipp Marek <philipp.marek at linbit.com> wrote:

> Hello Vish,
> 
>> Nova passes ip, iqn, and hostname into initialize_connection. That should 
>> give you the info you need.
> thank you, but that is on the _Nova_ side.
> 
> I need to know that on the Cinder node already:
> 
>>> For that the cinder volume driver needs to know at
> ...
>>> time which Nova host will be used to access the data.
> 
> but it's not passed in there:
> 
>>> The arguments passed to this functions already include an
>>> "attached_host" value, sadly it's currently given as "None"...
> 
> 
> Therefore my question where/when that value is calculated…

Initialize connection passes that data to cinder in the call. The connector
dictionary in the call should contain the info from nova:

https://github.com/openstack/cinder/blob/master/cinder/volume/driver.py#L1051


> 
> 
> Regards,
> 
> Phil
> 
> -- 
> : Ing. Philipp Marek
> : LINBIT | Your Way to High Availability
> : DRBD/HA support and consulting                 http://www.linbit.com :
> 
> DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
> 
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




More information about the OpenStack-dev mailing list