preset_grpc: Allow to create local containers #109
No reviewers
Labels
No Label
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 Milestone
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/xk6-frostfs#109
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "dstepanov-yadro/xk6-frostfs:feat/local_containers"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Closes #107
@ -8,1 +4,3 @@
wallet_config = "--config " + wallet_config
def create_container(endpoint, policy, wallet_path, config, local=False, depth=0):
if depth > 20:
raise ValueError(f"unable to create container: too many unsuccessful attempts")
Foolproof
@ -34,0 +86,4 @@
return cid
log(f"Created container {cid} is not stored on {endpoint}, creating another one...", endpoint)
return create_container(endpoint, policy, wallet_path, config, local, depth + 1)
Not perfect, but the easiest way
21c9e46fad
to0e06020118