mirror of
https://github.com/ceph/ceph
synced 2024-12-18 17:37:38 +00:00
Merge pull request #15112 from jcsp/wip-19940
ceph-create-keys: update client.admin if it already exists Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
commit
035c398487
@ -136,6 +136,19 @@ def get_key(cluster, mon_id):
|
||||
],
|
||||
stdout=f,
|
||||
)
|
||||
else:
|
||||
returncode = subprocess.call(
|
||||
args=args_prefix + [
|
||||
'auth',
|
||||
'caps',
|
||||
'client.admin',
|
||||
'mon', 'allow *',
|
||||
'osd', 'allow *',
|
||||
'mds', 'allow *',
|
||||
'mgr', 'allow *',
|
||||
],
|
||||
stdout=f,
|
||||
)
|
||||
|
||||
if returncode != 0:
|
||||
if returncode == errno.EPERM or returncode == errno.EACCES:
|
||||
|
Loading…
Reference in New Issue
Block a user