remove --set-uid option from ceph-authtool calls

Newer versions of ceph have deprecated this option, and the commands
will fail if you try to pass it in.

Signed-off-by: travisn <tnielsen@redhat.com>
This commit is contained in:
travisn authored and Jeff Layton committed 2018-11-30 13:24:46 -05:00
1 parent 9654e51db1
commit 69fba00f6b
1 file changed
+1 -1
+1 -1
View File
@@ -210,7 +210,7 @@ func createNamedClusterInfo(context *clusterd.Context, clusterName string) (*cep
}
// generate the admin secret if one was not provided at the command line
args := []string{"--set-uid=0", "--cap", "mon", "'allow *'", "--cap", "osd", "'allow *'", "--cap", "mgr", "'allow *'", "--cap", "mds", "'allow'"}
args := []string{"--cap", "mon", "'allow *'", "--cap", "osd", "'allow *'", "--cap", "mgr", "'allow *'", "--cap", "mds", "'allow'"}
adminSecret, err := genSecret(context.Executor, dir, client.AdminUsername, args)
if err != nil {
return nil, err