Merge pull request #10959 from rook/mergify/bp/release-1.9/pr-10931
external: do not add info=read cap if ceph version doesn't support it (backport #10931)
This commit is contained in:
1 file changed
+2
-2
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user