Process incomplete bucket creation #434
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-s3-gw#434
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bucket creation may be interrupted or cancelled during asynchronous container creation. Therefore container will persist, but there would be no policy nor bucket settings for the bucket.
If error happens during policy setup or tree update, then gateway should delete previously created container.
Optionally consider this optimization: on
create-new-bucket
if container is already exists, gateway may decide to continue setting policy and tree data without returning an error. This should happen only if gateway knows for sure that this is an new container with no settings nor policies.We should take into account that we don't have session token for removing container in AccessBox
While this is true, assume that all tokens are present. Authmate and others token generating services usually grant rights for both bucket creation and deletion.
I suggest at the first step try to delete container anyway. This should cover most of cases.
Then we can modify this code furthermore: if container is already exist, then try to re-apply policies. I will create separate issue for this case.