From 77aef5910825a7ca49db09376b2c4dfbe9d27e76 Mon Sep 17 00:00:00 2001 From: parth-gr Date: Thu, 8 Sep 2022 15:00:40 +0530 Subject: [PATCH] external: do not add info=read cap if ceph version doesn't support it The rgw ip validation feature was needing to update the rgw user cap to add info=read permission, but this permission is only backported till ceph pacific, so we added a check that only add this cap when ceph version support it, But this cap was also adding with the other caps, so removed it from there Now it will only add this cap if ceph version support it Signed-off-by: parth-gr (cherry picked from commit 54425803b6cb6fa1e0896cc1e81850631b02e15b) --- deploy/examples/create-external-cluster-resources.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/examples/create-external-cluster-resources.py b/deploy/examples/create-external-cluster-resources.py index 0c94a085e..fa84051d1 100644 --- a/deploy/examples/create-external-cluster-resources.py +++ b/deploy/examples/create-external-cluster-resources.py @@ -1097,7 +1097,7 @@ class RadosJSON: "--display-name", "Rook RGW Admin Ops user", "--caps", - "info=read;buckets=*;users=*;usage=read;metadata=read;zone=read", + "buckets=*;users=*;usage=read;metadata=read;zone=read", ] if self._arg_parser.dry_run: return self.dry_run("ceph " + " ".join(cmd)) @@ -1128,7 +1128,7 @@ class RadosJSON: ) raise Exception(err_msg) - # separately add info=read caps, because sometimes users already exited and the cap doesn't update + # separately add info=read caps for rgw-endpoint ip validation info_cap_supported = True cmd = [ "radosgw-admin",