From 32e4160971b0b152ce9235b2fd2532d7381f7bdf 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 6ac5bfa7a..1137a9ea2 100644 --- a/deploy/examples/create-external-cluster-resources.py +++ b/deploy/examples/create-external-cluster-resources.py @@ -1092,7 +1092,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)) @@ -1123,7 +1123,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",