Skip to content

Commit

Permalink
rgw: add period does not exist debug message
Browse files Browse the repository at this point in the history
Log as a debug message when the RGW period will be updated because it
does not exist.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
  • Loading branch information
BlaineEXE committed Sep 29, 2021
1 parent 2826bc9 commit e10fb75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/operator/ceph/object/objectstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ func createMultisite(objContext *Context, endpointArg string) error {
// ENOENT means “No such file or directory”
if err == nil && code == int(syscall.ENOENT) {
// period does not exist and so needs to be created
logger.Debugf("period must be updated for CephObjectStore %q because it does not exist", objContext.Name)
updatePeriod = true
} else {
return errorOrIsNotFound(err, "'radosgw-admin period get' failed with code %d, for reason %q", strconv.Itoa(code), output)
Expand Down

0 comments on commit e10fb75

Please sign in to comment.