No description, website, or topics provided.
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
output-sample-pre-ocata
scripts
.gitignore
README.md

README.md

openstack conf tool

create list of options of OpenStack from source code

[DEFAULT]

(snip...)

compute_driver = None
# class:      <class 'oslo_config.cfg.StrOpt'>
# deprecated: False
# multi:      False
# required:   False
# help:
# Defines which driver to use for controlling virtualization.
#
# Possible values:
#
# * ``libvirt.LibvirtDriver``
# * ``xenapi.XenAPIDriver``
# * ``fake.FakeDriver``
# * ``ironic.IronicDriver``
# * ``vmwareapi.VMwareVCDriver``
# * ``hyperv.HyperVDriver``

(snip...)

requirement

python 3.4-

python 2.7 may work but not tested

usage

use virtualenv

# git clone
# cd path/to/oscfg-tool/
# virtualenv .
# bin/activate
# python scripts/setup_env.py
# ls tmp/json-*.sh | xargs -n 1 bash -x
# ls tmp/text-*.sh | xargs -n 1 bash -x

sample output

list of nova options

how it works

  1. load openstack source(e.g. nova/conf/api.py)
  2. call register_opts() or list_opts(), or read global variable cfg.CONF or *_OPTS
  3. dump them all

So list may not be perfect.

author

wataken44(twitter)