preset_grpc: Allow to create local containers #109

Merged
dstepanov-yadro merged 1 commits from dstepanov-yadro/xk6-frostfs:feat/local_containers into master 2023-12-18 08:41:56 +00:00

Closes #107

Closes #107
dstepanov-yadro reviewed 2023-12-13 14:54:41 +00:00
@ -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")
Poster
Collaborator

Foolproof

Foolproof
dstepanov-yadro reviewed 2023-12-13 14:55:23 +00:00
@ -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)
Poster
Collaborator

Not perfect, but the easiest way

Not perfect, but the easiest way
dstepanov-yadro requested review from storage-core-committers 2023-12-13 14:55:41 +00:00
dstepanov-yadro requested review from storage-core-developers 2023-12-13 14:55:49 +00:00
dstepanov-yadro requested review from mmalygina 2023-12-13 14:56:05 +00:00
acid-ant approved these changes 2023-12-14 07:00:39 +00:00
aarifullin approved these changes 2023-12-14 09:00:43 +00:00
dstepanov-yadro force-pushed feat/local_containers from 21c9e46fad to 0e06020118 2023-12-15 13:57:27 +00:00 Compare
mmalygina approved these changes 2023-12-18 08:37:14 +00:00
dstepanov-yadro merged commit 0e06020118 into master 2023-12-18 08:41:56 +00:00
dstepanov-yadro deleted branch feat/local_containers 2023-12-18 08:42:03 +00:00
Sign in to join this conversation.
There is no content yet.