You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rgw/logging: make unique part of log file both random and incremental
new format will be: 10 char incremental count (so 32bit uint fit in it).
and 6 char alphanumeric random part.
this should fix possible race conditions in case of multisite
Fixes: https://tracker.ceph.com/issues/71608
Signed-off-by: Yuval Lifshitz <[email protected]>
(cherry picked from commit fa2bc49)
Resolves: rhbz#2373177
In a multi-zone deployment, each zone will use its own log object before the log object is added to the log bucket.
91
+
After the log object is added to the log bucket (e.g after being flushed) it will be replicated to other zones.
92
+
This means that for a given time period there could be more than one log object holding relevant log records.
87
93
88
94
Bucket Logging Policy
89
95
---------------------
90
96
On the source bucket, only its owner is allowed to enable or disable bucket logging.
91
97
For a bucket to be used as a log bucket, it must have bucket policy that allows that (even if the source bucket and the log bucket are owned by the same user or account).
92
-
The bucket policy must allow the `s3:PutObject` action for the log bucket, to be perfomed by the `logging.s3.amazonaws.com` service principal.
98
+
The bucket policy must allow the `s3:PutObject` action for the log bucket, to be performed by the `logging.s3.amazonaws.com` service principal.
93
99
It should also specify the source bucket and account that are expected to write logs to it. For example:
0 commit comments