Files
sunbeam-charms/charms/manila-data/CONTRIBUTING.md
Claudiu Belu 2c33e70211 Adds manila-data charm
manila-data is a machine charm, and it manages the manila-data snap.

Change-Id: I30279f713e4b83e72023eef3f0a47905f040886d
Signed-off-by: Claudiu Belu <cbelu@cloudbasesolutions.com>
2025-09-09 09:03:38 +00:00

1.4 KiB

manila-data

Developing

Create and activate a virtualenv with the development requirements:

virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements-dev.txt

Code overview

Get familiarised with Charmed Operator Framework and Sunbeam documentation.

manila-data charm uses the ops_sunbeam library and extends OSBaseOperatorCharmSnap from the library.

manila-data charm consumes database relation to connect to database, amqp to connect to rabbitmq, and identity-credentials to connect to keystone.

The charm starts manila-data service.

Intended use case

manila-data charm deploys and configures OpenStack manila-data service.

Roadmap

TODO

Testing

The Python operator framework includes a very nice harness for testing operator behaviour without full deployment. Run tests using command:

tox --root ../../ -e py3 -- manila-data

Deployment

This project uses tox for building and managing. To build the charm run:

tox --root ../../ -e build -- manila-data

To deploy the local test instance:

juju deploy ./manila-data.charm manila-data

To upgrade / refresh the manila-k8s charm with a locally-built charm, use the following command:

juju refresh manila-data --path ./manila-data.charm