neofs-cli container list with -g flag behaves unexpectedly #12

Closed
opened 2023-01-11 13:53:18 +00:00 by carpawell · 3 comments
carpawell commented 2023-01-11 13:53:18 +00:00 (Migrated from github.com)

It never returns any container cause of just generated wallet that of course does not maintain any containers. I'd expect that command iether to behave the same way neofs-adm morph list-containers does (it returns all containers but that would be hard to do cause neofs-adm accepts a morph endpoint directly while neofs-cli works with SN) or does not allow passing -g at all.

It never returns any container cause of just generated wallet that of course does not maintain any containers. I'd expect that command iether to behave the same way `neofs-adm morph list-containers` does (it returns _all_ containers but that would be hard to do cause `neofs-adm` accepts a morph endpoint directly while `neofs-cli` works with `SN`) or does not allow passing `-g` at all.
fyrchik commented 2023-01-12 07:05:59 +00:00 (Migrated from github.com)

You can still provide an explicit --owner.

You can still provide an explicit `--owner`.
carpawell commented 2023-01-13 07:38:18 +00:00 (Migrated from github.com)

@fyrchik, yes, i can. But using -g flag is still useless (without --owner), it would always have an empty output. Also, i know that missing owner returns all the containers while cli says "--owner string Owner of containers (omit to use owner from private key)". Mb i'm too dev that i know contact details but that is what i had: i wanted to get all containers and the first thing to try was passing -g flag without --owner (or with nil owner in other words).

@fyrchik, yes, i can. But using `-g` flag is still useless (without `--owner`), it would always have an empty output. Also, i know that missing owner [returns](https://github.com/TrueCloudLab/frostfs-contract/blob/4077921794f364fca37c14b7743d8419435f9a4c/container/container_contract.go#L409-L410) all the containers while `cli` says "--owner string Owner of containers (omit to use owner from private key)". Mb i'm too dev that i know contact details but that is what i had: i wanted to get all containers and the first thing to try was passing `-g` flag without `--owner` (or with `nil` owner in other words).
fyrchik commented 2023-02-16 09:36:08 +00:00 (Migrated from github.com)

Let's add a verbose log/warning/error about using -g without --owner.
Maybe also claryfy the documentation.

Let's add a verbose log/warning/error about using `-g` without `--owner`. Maybe also claryfy the documentation.
fyrchik added this to the v0.37.0 milestone 2023-05-18 08:54:51 +00:00
fyrchik modified the milestone from v0.37.0 to v0.38.0 2023-05-18 08:54:53 +00:00
elebedeva was assigned by fyrchik 2024-01-16 12:13:59 +00:00
fyrchik modified the milestone from v0.38.0 to v0.39.0 2024-02-12 06:33:24 +00:00
fyrchik added the
frostfs-cli
label 2024-02-12 06:33:30 +00:00
fyrchik modified the milestone from v0.39.0 to v0.40.0 2024-05-14 14:19:09 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#12
No description provided.