Generate storpool.conf

The current storpool code inside cinder relies on reading StorPool's
configuration options from /etc/storpool.conf

This change makes the charm generate the minimum required
/etc/storpool.conf in order for iSCSI to work. The names of the options
written to /etc/storpool.conf follow the file's format:
UPPERCASE_WITH_UNDERSCORES.

A planned future improvement will make storpool read its configuration
from /etc/cinder/cinder.conf

Change-Id: Ia530ff26506fc13dff72942883e618baf64155f9
2 files changed
tree: 598eb2ad2e21bf53385ab5d4d7f893feef6c2b3f
  1. .gitignore
  2. .gitreview
  3. .stestr.conf
  4. README.md
  5. TODO.md
  6. build-requirements.txt
  7. charmcraft.yaml
  8. config.yaml
  9. metadata.yaml
  10. osci.yaml
  11. pip.sh
  12. pyproject.toml
  13. rename.sh
  14. requirements.txt
  15. setup.cfg
  16. src/
  17. test-requirements.txt
  18. tests/
  19. tox.ini
  20. unit_tests/
README.md

StorPool Storage Backend for Cinder

Overview

This charm provides a StorPool storage backend for use with the Cinder charm.

To use:

juju deploy cinder

juju deploy cinder-storpool \
    --config storpool_template="my_template" \
    --config sp_api_http_host="1.2.3.4" \
    --config sp_auth_token=1234567890123456789

juju add-relation cinder-storpool cinder

Configuration

See config.yaml for details of configuration options.

Options with a blank 'default' field are mandatory and have to be provided by an administrator.