cinderlib.cmd.cinder_cfg_to_python module

Generate Python code to initialize cinderlib based on Cinder config file

This tool generates Python code to instantiate backends using a cinder.conf file.

It supports multiple backends as defined in enabled_backends.

This program uses the oslo.config module to load configuration options instead of using configparser directly because drivers will need variables to have the right type (string, list, integer…), and the types are defined in the code using oslo.config.

cinder-cfg-to_python cinder.conf cinderlib-conf.py

If no output is provided it will use stdout, and if we also don’t provide an input file, it will default to /etc/cinder/cinder.conf.

convert(source, dest)[source]
main()[source]