adm: morph init error: rpc-endpoint and local-dump flags are mutually exclusive #244

Closed
opened 2023-04-12 17:09:05 +00:00 by anikeev-yadro · 2 comments

Expected Behavior

Command should initialize wallets

Current Behavior

Command returns error:

anikeev@NB-1670:~/neofs$ frostfs-adm --config frostfs-dev-env/frostfs-adm.yml morph init --alphabet-wallets frostfs-dev-env/services/ir --contracts frotfs-dev-env/vendor/contract --local-dump frostfs-dev-env/vendor/morph_chain.gz --protocol frostfs-dev-env/services/morph_chain/protocol.privnet.yml
Error: initialization error: `rpc-endpoint` and `local-dump` flags are mutually exclusive

Your Environment

devenv

## Expected Behavior Command should initialize wallets ## Current Behavior Command returns error: ``` anikeev@NB-1670:~/neofs$ frostfs-adm --config frostfs-dev-env/frostfs-adm.yml morph init --alphabet-wallets frostfs-dev-env/services/ir --contracts frotfs-dev-env/vendor/contract --local-dump frostfs-dev-env/vendor/morph_chain.gz --protocol frostfs-dev-env/services/morph_chain/protocol.privnet.yml Error: initialization error: `rpc-endpoint` and `local-dump` flags are mutually exclusive ``` ## Your Environment devenv
anikeev-yadro added the
triage
label 2023-04-12 17:09:05 +00:00

Issue appeared while I testing #48

Issue appeared while I testing https://git.frostfs.info/TrueCloudLab/frostfs-node/issues/48
fyrchik added this to the v0.37.0 milestone 2023-04-13 08:28:46 +00:00
fyrchik added the
P2
frostfs-adm
labels 2023-04-14 06:48:44 +00:00

So we have --local-dump which is there in init but can also be used via config in other commands. The initial vision was that we should be able to use a local dump everywhere where an endpoint is present.

I propose to remove --local-dump from the configuration and prioritize it if it is used as a CIL flag explicitly. We can avoid removing it from the configuration, but this will only complicate things.

So we have `--local-dump` which is there in `init` but can also be used via config in other commands. The initial vision was that we should be able to use a local dump _everywhere_ where an endpoint is present. I propose to remove `--local-dump` from the configuration and prioritize it if it is used as a CIL flag explicitly. We can avoid removing it from the configuration, but this will only complicate things.
fyrchik removed the
P2
label 2023-04-14 06:52:51 +00:00
fyrchik added the
P2
label 2023-04-14 09:11:46 +00:00
snegurochka added the
bug
label 2023-05-03 17:14:43 +00:00
ale64bit was assigned by fyrchik 2023-06-26 10:06:02 +00:00
Sign in to join this conversation.
No Milestone
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#244
There is no content yet.