Commit ebe0126a authored by Dietmar Maurer's avatar Dietmar Maurer

fix mds permissions in client.admin key

parent 182da879
...@@ -613,14 +613,13 @@ __PACKAGE__->register_method ({ ...@@ -613,14 +613,13 @@ __PACKAGE__->register_method ({
if (! -f $pve_mon_key_path) { if (! -f $pve_mon_key_path) {
run_command("cp $pve_ckeyring_path $pve_mon_key_path.tmp"); run_command("cp $pve_ckeyring_path $pve_mon_key_path.tmp");
run_command("ceph-authtool $pve_mon_key_path.tmp -n client.admin --set-uid=0 " . run_command("ceph-authtool $pve_mon_key_path.tmp -n client.admin --set-uid=0 " .
"--cap mds 'allow *' " . "--cap mds 'allow' " .
"--cap osd 'allow *' " . "--cap osd 'allow *' " .
"--cap mon 'allow *'"); "--cap mon 'allow *'");
run_command("ceph-authtool $pve_mon_key_path.tmp --gen-key -n mon. --cap mon 'allow *'"); run_command("ceph-authtool $pve_mon_key_path.tmp --gen-key -n mon. --cap mon 'allow *'");
run_command("mv $pve_mon_key_path.tmp $pve_mon_key_path"); run_command("mv $pve_mon_key_path.tmp $pve_mon_key_path");
} }
my $cfg = &$parse_ceph_config($pve_ceph_cfgpath); my $cfg = &$parse_ceph_config($pve_ceph_cfgpath);
my $moncount = 0; my $moncount = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment