Skip to content

Commit

Permalink
object: fix search user in objectstore
Browse files Browse the repository at this point in the history
adding realm, zonegroup and zone args to avoid failed reconcile when multiple multisite objectstore are configured

Signed-off-by: Olivier Bouffet <olivier.bouffet@infomaniak.com>
  • Loading branch information
olivierbouffet committed Nov 24, 2021
1 parent 184f2fd commit 8ffc36b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/operator/ceph/object/objectstore.go
Expand Up @@ -477,7 +477,7 @@ func createSystemUser(objContext *Context, namespace string) error {
zoneGroupArg := fmt.Sprintf("--rgw-zonegroup=%s", objContext.ZoneGroup)
zoneArg := fmt.Sprintf("--rgw-zone=%s", objContext.Zone)

output, err := RunAdminCommandNoMultisite(objContext, false, "user", "info", uidArg, realmArg)
output, err := RunAdminCommandNoMultisite(objContext, false, "user", "info", uidArg, realmArg, zoneGroupArg, zoneArg)
if err == nil {
logger.Debugf("realm system user %q has already been created", uid)
return nil
Expand Down

0 comments on commit 8ffc36b

Please sign in to comment.