Gate sending ceph pool creation request.

Add new state ceph.create_pool.req.sent to gate sending the ceph
pool creation request. This fixes a problem where the changed
method in requires of ceph-client interface raises the
'{relation_name}.pools.available' state but the create_pool
method then removes it again.

Also remove snap functional tests as they are no longer
needed since that install method via charms is not
actively supported.

Change-Id: Iaf986d24f005bcc7c8f485cfc2eb1775e6dbbbdd
Closes-Bug: #1846480
This commit is contained in:
Liam Young
2019-10-04 12:20:34 +00:00
parent e569e699a2
commit d0d2ac8864
5 changed files with 6 additions and 51 deletions

View File

@@ -75,9 +75,11 @@ def cluster_connected(hacluster):
charm_class.assess_status()
@reactive.when_not('ceph.create_pool.req.sent')
@reactive.when('storage-ceph.connected')
def storage_ceph_connected(ceph):
ceph.create_pool(hookenv.service_name())
reactive.set_state('ceph.create_pool.req.sent')
@reactive.when('storage-ceph.available')