rgw: add period does not exist debug message

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>
This commit is contained in:
Blaine Gardner
2021-09-29 13:14:52 -06:00
parent 2826bc99df
commit e10fb751e5
+1
View File
@@ -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)