Skip to content

Commit

Permalink
Merge pull request #13655 from parth-gr/objectstore-fix-zonegroup
Browse files Browse the repository at this point in the history
object: fix the default multisite zonegroup creation
  • Loading branch information
travisn committed Jan 31, 2024
2 parents 4a12234 + a9c7728 commit 2f82d0a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/operator/ceph/object/objectstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,11 @@ func createMultisiteConfigurations(objContext *Context, configType, configTypeAr
args = append([]string{configType}, args...)
args = append(args, configTypeArg)
// get the multisite config before creating
output, getConfigErr := RunAdminCommandNoMultisite(objContext, true, configType, "get", configTypeArg)
configTypeArgs := []string{configType, "get", configTypeArg}
if configType == "zonegroup" {
configTypeArgs = append(configTypeArgs, fmt.Sprintf("--rgw-realm=%s", objContext.Realm))
}
output, getConfigErr := RunAdminCommandNoMultisite(objContext, true, configTypeArgs...)
if getConfigErr == nil {
return nil
}
Expand Down

0 comments on commit 2f82d0a

Please sign in to comment.