diff --git a/hooks/nova_compute_hooks.py b/hooks/nova_compute_hooks.py index f7433d1c..ef7e24e8 100755 --- a/hooks/nova_compute_hooks.py +++ b/hooks/nova_compute_hooks.py @@ -355,7 +355,7 @@ def get_ceph_request(): replicas = config('ceph-osd-replication-count') weight = config('ceph-pool-weight') rq.add_op_create_pool(name=name, replica_count=replicas, weight=weight, - group='vms') + group='vms', app_name='rbd') if config('restrict-ceph-pools'): rq.add_op_request_access_to_group( name="volumes", diff --git a/unit_tests/test_nova_compute_hooks.py b/unit_tests/test_nova_compute_hooks.py index efa92a69..4446138e 100644 --- a/unit_tests/test_nova_compute_hooks.py +++ b/unit_tests/test_nova_compute_hooks.py @@ -482,7 +482,7 @@ class NovaComputeRelationsTests(CharmTestCase): hooks.get_ceph_request() mock_create_pool.assert_called_with(name='nova', replica_count=3, weight=28, - group='vms') + group='vms', app_name='rbd') mock_request_access.assert_not_called() @patch('charmhelpers.contrib.storage.linux.ceph.CephBrokerRq' @@ -500,7 +500,7 @@ class NovaComputeRelationsTests(CharmTestCase): hooks.get_ceph_request() mock_create_pool.assert_called_with(name='nova', replica_count=3, weight=28, - group='vms') + group='vms', app_name='rbd') mock_request_access.assert_has_calls([ call(name='volumes', object_prefix_permissions={'class-read': ['rbd_children']},