Couldn't delete container without session token #303
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#303
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?
If container was created using session token, we cannot delete it without session token even if we have owner key.
Expected Behavior
We can always delete container using container owner key without any tokens.
Current Behavior
We have to use session token to delete container.
Steps to Reproduce (for bugs)
See test that should pass:
Test starts pass if we user the following token for deleting:
In
ir
logs:Context
This happened when we create bucket/container using
s3-gw
and try to remove usingfrostfs-cli
Your Environment
uname -a
): Linux dkirillov 6.0.12-x64v1-xanmod1 # 0~20221208.ff9eceb SMP PREEMPT_DYNAMIC Thu Dec 8 22:12:49 UTC 2 x86_64 GNU/LinuxThe exception tells us that some contract is called by invalid hash. We may first check that frostfs-adm correctly sets hashes of all contracts and provides validate their parameters.
Using more old version of node (somewhere here) gives us the following ir error:
Initial error was about config in dev-env. Will be fixed by TrueCloudLab/frostfs-dev-env#25
Continue working on bellow error from
ir
log:Need to do the same thing in contract as implemented for put.
container_contract.Delete()
method #27