frostfs-cli container create does not expect transaction inclusion #1387

Closed
opened 2024-09-20 20:31:37 +00:00 by achuprov · 1 comment
Member

Expected Behavior

```
frostfs-cli --config /home/achuprov/Documents/work/frostfs-dev-env/wallets/conf.yml container create json --policy "REP 1 IN X CBF 1 SELECT 1 FROM * AS X" --basic-acl public-read-write  --nns-name="bober"
CID: AdzKVYkKxzREeDizu7fqKHh53eYZFMvQj4ks6KMMALM2
```
frostfs-cli --config /home/achuprov/Documents/work/frostfs-dev-env/wallets/conf.yml container create json --policy "REP 1 IN X CBF 1 SELECT 1 FROM * AS X" --basic-acl public-read-write  --nns-name="bober"
*error*
frostfs-cli --config /home/achuprov/Documents/work/frostfs-dev-env/wallets/conf.yml container list 
AdzKVYkKxzREeDizu7fqKHh53eYZFMvQj4ks6KMMALM2

Current Behavior

    frostfs-cli --config /home/achuprov/Documents/work/frostfs-dev-env/wallets/conf.yml container create json --policy "REP 1 IN X CBF 1 SELECT 1 FROM * AS X" --basic-acl public-read-write  --nns-name="bober"
    CID: AdzKVYkKxzREeDizu7fqKHh53eYZFMvQj4ks6KMMALM2
frostfs-cli --config /home/achuprov/Documents/work/frostfs-dev-env/wallets/conf.yml container create json --policy "REP 1 IN X CBF 1 SELECT 1 FROM * AS X" --basic-acl public-read-write  --nns-name="bober"
CID: 4oH2rUiJgcU92ZbavhwxWbWf3Zv89eYZ884a1feXjQdD
frostfs-cli --config /home/achuprov/Documents/work/frostfs-dev-env/wallets/conf.yml container list 
AdzKVYkKxzREeDizu7fqKHh53eYZFMvQj4ks6KMMALM2

Possible Solution

Wait for the transaction to be included in the block before returning the result.

Steps to Reproduce (for bugs)

Run in parallel:

frostfs-cli --config /home/achuprov/Documents/work/frostfs-dev-env/wallets/conf.yml container create json --policy "REP 1 IN X CBF 1 SELECT 1 FROM * AS X" --basic-acl public-read-write  --nns-name="bober"

and

frostfs-cli --config /home/achuprov/Documents/work/frostfs-dev-env/wallets/conf.yml container create json --policy "REP 1 IN X CBF 1 SELECT 1 FROM * AS X" --basic-acl public-read-write  --nns-name="bober"
<!-- Provide a general summary of the issue in the Title above --> ## Expected Behavior <!-- If you're describing a bug, tell us what should happen If you're suggesting a change/improvement, tell us how it should work --> ``` frostfs-cli --config /home/achuprov/Documents/work/frostfs-dev-env/wallets/conf.yml container create json --policy "REP 1 IN X CBF 1 SELECT 1 FROM * AS X" --basic-acl public-read-write --nns-name="bober" CID: AdzKVYkKxzREeDizu7fqKHh53eYZFMvQj4ks6KMMALM2 ``` ``` frostfs-cli --config /home/achuprov/Documents/work/frostfs-dev-env/wallets/conf.yml container create json --policy "REP 1 IN X CBF 1 SELECT 1 FROM * AS X" --basic-acl public-read-write --nns-name="bober" *error* ``` ``` frostfs-cli --config /home/achuprov/Documents/work/frostfs-dev-env/wallets/conf.yml container list AdzKVYkKxzREeDizu7fqKHh53eYZFMvQj4ks6KMMALM2 ``` ## Current Behavior <!-- If describing a bug, tell us what happens instead of the expected behavior If suggesting a change/improvement, explain the difference from current behavior --> ``` frostfs-cli --config /home/achuprov/Documents/work/frostfs-dev-env/wallets/conf.yml container create json --policy "REP 1 IN X CBF 1 SELECT 1 FROM * AS X" --basic-acl public-read-write --nns-name="bober" CID: AdzKVYkKxzREeDizu7fqKHh53eYZFMvQj4ks6KMMALM2 ``` ``` frostfs-cli --config /home/achuprov/Documents/work/frostfs-dev-env/wallets/conf.yml container create json --policy "REP 1 IN X CBF 1 SELECT 1 FROM * AS X" --basic-acl public-read-write --nns-name="bober" CID: 4oH2rUiJgcU92ZbavhwxWbWf3Zv89eYZ884a1feXjQdD ``` ``` frostfs-cli --config /home/achuprov/Documents/work/frostfs-dev-env/wallets/conf.yml container list AdzKVYkKxzREeDizu7fqKHh53eYZFMvQj4ks6KMMALM2 ``` ## Possible Solution Wait for the transaction to be included in the block before returning the result. ## Steps to Reproduce (for bugs) Run in parallel: ``` frostfs-cli --config /home/achuprov/Documents/work/frostfs-dev-env/wallets/conf.yml container create json --policy "REP 1 IN X CBF 1 SELECT 1 FROM * AS X" --basic-acl public-read-write --nns-name="bober" ``` and ``` frostfs-cli --config /home/achuprov/Documents/work/frostfs-dev-env/wallets/conf.yml container create json --policy "REP 1 IN X CBF 1 SELECT 1 FROM * AS X" --basic-acl public-read-write --nns-name="bober" ```
achuprov added the
bug
triage
labels 2024-09-20 20:31:37 +00:00

Not a bug: frostfs-cli container create has --await flag.

Not a bug: `frostfs-cli container create` has `--await` flag.
realloc added the
wontfix
label 2024-09-25 11:47:41 +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-node#1387
No description provided.