You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#701
#### Description
This adds the implementation of storage. In particular, it introduces the following functions:
`unit.add_storage()`
`unit.attach_storage()`
`model.create_storage_pool()`
`unit.detach_storage()`
`model.list_storage()`
`model.list_storage_pools()`
`model.remove_storage()`
`model.remove_storage_pool()`
`model.show_storage()`
`model.update_storage_pool()`
Also adds the `--attach-storage` parameter to the `application.add_unit`.
Fixes#694 and #695
#### QA Steps
A couple of new tests are added to test the main functionality of storages and pools. In particular, all the following should pass:
```
tox -e integration -- tests/integration/test_model.py::test_add_storage
```
```
tox -e integration -- tests/integration/test_model.py::test_list_storage
```
```
tox -e integration -- tests/integration/test_model.py::test_storage_pools
```
#### Notes & Discussion
`attach_storage` & `detach_storage` seem to work inconsistently on Juju's side, we're currently investigating, possibly a launchpad bug is coming, which makes it difficult/impossible to test their behavior here, so we skip the tests for these at the moment.
0 commit comments