api/ceph: create mon: drop now unsupported set-uid on autkey create

From Nautilus release changelog[0]:
> The auid property for cephx users and RADOS pools has been removed.
> This was an undocumented and partially implemented capability that
> allowed cephx users to map capabilities to RADOS pools that they
> “owned”. Because there are no users we have removed this support.

[0]: https://ceph.com/releases/v14-2-0-nautilus-released/

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-05-26 15:22:35 +02:00
parent 2ca75379f7
commit 97ed02b8b6

View File

@ -209,7 +209,7 @@ __PACKAGE__->register_method ({
my $pve_mon_key_path = PVE::Ceph::Tools::get_config('pve_mon_key_path');
if (! -f $pve_mon_key_path) {
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 " .
"--cap mds 'allow' " .
"--cap osd 'allow *' " .
"--cap mgr 'allow *' " .