mirror of
https://github.com/ceph/ceph
synced 2025-03-30 23:40:09 +00:00
Merge pull request #17312 from cbodley/wip-21155
qa: create_cache_pool no longer runs 'pool application enable' Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
commit
d24ba40be3
@ -171,7 +171,7 @@ def create_pools(ctx, clients):
|
||||
create_replicated_pool(remote, data_pool, 64, cluster_name, 'rgw')
|
||||
if ctx.rgw.cache_pools:
|
||||
create_cache_pool(remote, data_pool, data_pool + '.cache', 64,
|
||||
64*1024*1024, cluster_name, 'rgw')
|
||||
64*1024*1024, cluster_name)
|
||||
log.debug('Pools created')
|
||||
yield
|
||||
|
||||
|
@ -45,7 +45,7 @@ def create_replicated_pool(remote, name, pgnum, cluster_name="ceph", application
|
||||
'sudo', 'ceph', 'osd', 'pool', 'application', 'enable', name, application, '--cluster', cluster_name
|
||||
])
|
||||
|
||||
def create_cache_pool(remote, base_name, cache_name, pgnum, size, cluster_name="ceph", application=None):
|
||||
def create_cache_pool(remote, base_name, cache_name, pgnum, size, cluster_name="ceph"):
|
||||
remote.run(args=[
|
||||
'sudo', 'ceph', 'osd', 'pool', 'create', cache_name, str(pgnum), '--cluster', cluster_name
|
||||
])
|
||||
@ -53,10 +53,6 @@ def create_cache_pool(remote, base_name, cache_name, pgnum, size, cluster_name="
|
||||
'sudo', 'ceph', 'osd', 'tier', 'add-cache', base_name, cache_name,
|
||||
str(size), '--cluster', cluster_name
|
||||
])
|
||||
if application:
|
||||
remote.run(args=[
|
||||
'sudo', 'ceph', 'osd', 'pool', 'application', 'enable', name, application, '--cluster', cluster_name
|
||||
])
|
||||
|
||||
def cmd_erasure_code_profile(profile_name, profile):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user