Merge "Limit standalone ceph-admin user creation to a single host" into stable/wallaby
This commit is contained in:
commit
7c51c4284d
@ -880,7 +880,15 @@ class OvercloudCephUserEnable(command.Command):
|
||||
}
|
||||
for limit_list in [ceph_hosts['_admin'], ceph_hosts['non_admin']]:
|
||||
if len(limit_list) > 0:
|
||||
# need to include the undercloud where the keys are generated
|
||||
if parsed_args.standalone:
|
||||
# In standalone, Ansible groups allovercloud and undercloud
|
||||
# denote the same single host. So just use undercloud to
|
||||
# avoid LP 1979093.
|
||||
limit_list = ['undercloud']
|
||||
else:
|
||||
# Need to include the undercloud, where the keys are
|
||||
# generated, in the subset of allovercloud hosts,
|
||||
# denoted by limit_list.
|
||||
limit_list.append('undercloud')
|
||||
with oooutils.TempDirs() as tmp:
|
||||
oooutils.run_ansible_playbook(
|
||||
|
Loading…
Reference in New Issue
Block a user