Escape ceph capabilities for manila client
authorJan Provaznik <jprovazn@redhat.com>
Thu, 31 Aug 2017 12:28:28 +0000 (14:28 +0200)
committerTom Barron <tpb@dyncloud.net>
Wed, 6 Sep 2017 01:59:32 +0000 (01:59 +0000)
Capabilities were not properly escaped and ignored by ceph.

Change-Id: I099c3d9bad95ec69ac85fe406e3e1d4685ede439
Closes: #1713928

docker/services/ceph-ansible/ceph-base.yaml

index bf2c86c..2f2af2d 100644 (file)
@@ -241,7 +241,7 @@ outputs:
               - - client
                 - {get_param: ManilaCephFSNativeCephFSAuthId}
             key: {get_param: CephManilaClientKey}
-            mon_cap: "allow r, allow command auth del, allow command auth caps, allow command auth get, allow command auth get-or-create"
+            mon_cap: 'allow r, allow command \\\"auth del\\\", allow command \\\"auth caps\\\", allow command \\\"auth get\\\", allow command \\\"auth get-or-create\\\"'
             mds_cap: "allow *"
             osd_cap: "allow rw"
             mode: "0644"