Create and activate a virtualenv with the development requirements:
virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements-dev.txt
Get familiarise with Charmed Operator Framework and Sunbeam documentation.
nova-k8s charm uses the ops_sunbeam library and extends OSBaseOperatorAPICharm from the library.
nova-k8s charm consumes shared-db relation to connect to database, identity-service to register the service endpoints to keystone and ingress-internal/ingress-public relation to get exposed over internal and public networks.
nova-k8s charm brings up nova-api, nova-scheduler, nova-conductor services by creating separate peblle handlers for each service which in turn creates separate container within same pod.
nova-k8s charm deploys and configures OpenStack Nova service on a kubernetes based environment.
TODO
The Python operator framework includes a very nice harness for testing
operator behaviour without full deployment. Just run_tests
:
./run_tests
This project uses tox for building and managing. To build the charm run:
tox -e build
To deploy the local test instance:
juju deploy ./nova-k8s_ubuntu-20.04-amd64.charm --trust --resource nova-api-image=kolla/ubuntu-binary-nova-api:xena --resource nova-scheduler-image=kolla/ubuntu-binary-nova-scheduler:xena nova-conductor-image=kolla/ubuntu-binary-nova-condcutor:xena