https://github.com/openstack/charm-interface-cinder-backend
Charm Interface - Cinder Backend. Mirror of code maintained at opendev.org.
https://github.com/openstack/charm-interface-cinder-backend
Last synced: about 1 month ago
JSON representation
Charm Interface - Cinder Backend. Mirror of code maintained at opendev.org.
- Host: GitHub
- URL: https://github.com/openstack/charm-interface-cinder-backend
- Owner: openstack
- Created: 2019-01-21T23:22:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-10-11T15:18:18.000Z (over 3 years ago)
- Last Synced: 2025-03-02T18:50:38.663Z (over 1 year ago)
- Language: Python
- Homepage: https://opendev.org/openstack/charm-interface-cinder-backend
- Size: 11.7 KB
- Stars: 3
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Overview
Basic interface for sending Cinder subordinate backend configuration to
principle Cinder charms.
# Usage
## Requires
This interface layer will set the following state:
* `{relation_name}.connected` The relation is established, but the charm may
not have provided any backend information.
For example, the subordinate would handle the `cinder-backend.connected` state
with something like:
```python
@when('cinder-backend.connected')
def configure_cinder(cinder_principal):
config = {'api-endpoint': '1.2.3.4',
'admin-username': 'admin',
'admin-password': 'openstack',
'api-version': '1.0'}
cinder_principle.configure_principal(
backend_name='my_backend', configuration=config)
```
# Contact Information
-