Process incomplete bucket creation #434

Closed
opened 2024-07-18 12:12:47 +00:00 by alexvanin · 2 comments
Owner

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.

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.
Member

If error happens during policy setup or tree update, then gateway should delete previously created container.

We should take into account that we don't have session token for removing container in AccessBox

> If error happens during policy setup or tree update, then gateway should delete previously created container. We should take into account that we don't have session token for removing container in AccessBox
Author
Owner

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.

> 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.
dkirillov was assigned by alexvanin 2024-09-24 09:09:29 +00:00
alexvanin added this to the v0.31.0 milestone 2024-11-20 12:04:55 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-s3-gw#434
No description provided.