diff --git a/src/ceph-create-keys b/src/ceph-create-keys index 65ccd4a212c..dda58e62e11 100755 --- a/src/ceph-create-keys +++ b/src/ceph-create-keys @@ -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: