[openstack-dev] [cinder] How to retrieve volume_driver

crow1 at interia.pl crow1 at interia.pl
Fri Oct 7 15:04:00 UTC 2016


Hi Erlon. 

Thank you for the reply. I need to collect this information to generate sort of overview of drivers used in given environment. Obviously, it potentially is a multiple backed one. This information does not need to be pulled from the cinder API - I can assume I work under root on host on which cinder service is running. 

Parsing of cinder.conf comes with usual problems related to trying to get runtime information from config file. It is very prone to suddenly stop working due to changes in OpenStack itself. We may also potentially run into a situation in which config file has been modified, but Cinder has not been restarted (or worse, file is currently being edited and we read garbage). Now, if it comes to that I can live with those problems, but I was hoping a cleaner solution exists (as mentioned earlier - volume_backend_name, defined in same config, is very easy to retrieve). 

Thanks again and best regards,
Lukasz

Użytkownik "Erlon Cruz" <sombrafam at gmail.com> napisał(a): 
> Temat: Re: [openstack-dev] [cinder] How to retrieve volume_driver
> Data: 2016-10-07 14:19
> Nadawca: "Erlon Cruz" <sombrafam at gmail.com>
> Adresat: "OpenStack Development Mailing List (not for usage questions)" <openstack-dev at lists.openstack.org>; 
> 
> Hi Luzasz, 
> This information (volume_driver) is only used on driver loading so, its not available outside Cinder context. Can you tell how and why you need that? And why parsing the conf file is not enough for you?
> Erlon
> On Fri, Oct 7, 2016 at 9:05 AM,  <crow1 at interia.pl> wrote:
> Dear all.
> 
> 
> I'm a PHD student from Poland and have found out about this list from Openstack wiki. Could you kindly tell me, if there is a way to retrieve, from outside of OpenStack code, volume_driver for given backend? Preferably - without a need to parse the cinder.conf file?
> 
> 
> It is fairly easy to retrieve the volume_backend_name, which in most scenarios seems to describe the driver type used. However, in general scenario, this is just a custom string entered by the admin. I would greatly appreciate, if someone could point me to a way to acquire the unique stirng, identifying the driver type used - the ona that is passed as volume_driver in cinder.conf.
> 
> 
> Thank you in advance for your time.
> 
> 
> Best regards,
> 
> Lukasz
> 
> __________________________________________________________________________
> 
> 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