frostfs-cli object lock can't read rpc-endpoint from configuration file #1703

Closed
opened 2025-04-01 15:25:52 +00:00 by a-savchuk · 0 comments
Member

Expected Behavior

frostfs-cli object lock reads a rpc-endpoint from a configuration file and proceeds further.

Current Behavior

  • with the rpc-endpoint flag
$ vendor/frostfs-cli -c configs/s01-cli.yml --rpc-endpoint s01.frostfs.devenv:8080 object lock --cid 5EkWKKgLnod1RMYc4hibyqHb5iosUyhqoVxBw3KDAfjC --oid JAS6sowpmTB3QDcQzZXvEzptC32XdMLWNnZKXJ871Vbj --lifetime 5
Lock object ID: 36NYrAkjPr2bffCCwtmgBSGPqmw8ychnpz5hNapnEUgL
Objects successfully locked.
  • with a configuration file only
$ vendor/frostfs-cli -c configs/s01-cli.yml object lock --cid 5EkWKKgLnod1RMYc4hibyqHb5iosUyhqoVxBw3KDAfjC --oid JAS6sowpmTB3QDcQzZXvEzptC32XdMLWNnZKXJ871Vbj --lifetime 5
Request current epoch: can't parse RPC endpoint: host is empty

Possible Solution

Init common flags like in the other commands.

Regression

Unlikely.

Your Environment

FrostFS CLI
Version: v0.44.4
GoVersion: go1.23.2

## Expected Behavior `frostfs-cli object lock` reads a `rpc-endpoint` from a configuration file and proceeds further. ## Current Behavior - with the `rpc-endpoint` flag ```console $ vendor/frostfs-cli -c configs/s01-cli.yml --rpc-endpoint s01.frostfs.devenv:8080 object lock --cid 5EkWKKgLnod1RMYc4hibyqHb5iosUyhqoVxBw3KDAfjC --oid JAS6sowpmTB3QDcQzZXvEzptC32XdMLWNnZKXJ871Vbj --lifetime 5 Lock object ID: 36NYrAkjPr2bffCCwtmgBSGPqmw8ychnpz5hNapnEUgL Objects successfully locked. ``` - with a configuration file only ```console $ vendor/frostfs-cli -c configs/s01-cli.yml object lock --cid 5EkWKKgLnod1RMYc4hibyqHb5iosUyhqoVxBw3KDAfjC --oid JAS6sowpmTB3QDcQzZXvEzptC32XdMLWNnZKXJ871Vbj --lifetime 5 Request current epoch: can't parse RPC endpoint: host is empty ``` ## Possible Solution Init common flags like in the other commands. ## Regression Unlikely. ## Your Environment FrostFS CLI Version: v0.44.4 GoVersion: go1.23.2
a-savchuk added the
bug
frostfs-cli
good first issue
triage
labels 2025-04-01 15:25:52 +00:00
a-savchuk was assigned by fyrchik 2025-04-03 12:20:14 +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#1703
No description provided.