CLI command 'object nodes' should use all node IPs #476

Closed
opened 2023-06-28 07:31:37 +00:00 by anikeev-yadro · 0 comments
Member

CLI command 'object nodes' uses only first node IP address. If this IP as internal we cannot use command outside of node terminal.

root@aanikeev-node1:~# date;frostfs-cli --rpc-endpoint 172.26.161.76:8080 --wallet /etc/frostfs/storage/wallet.json object nodes  --cid EFEgcZbL5pfJhra7wNNtKGsCtSffCV1xQZcGB4nnxbhE --oid 8cH91cu1EH1K9akvzE7RELLbuwt99WUbxeTtXWiWFtVn
Tue Jun 27 13:43:02 UTC 2023
Enter password >
                  Netmap node| Should contain object| Actually contains object|
 /ip4/172.26.162.131/tcp/8080|                 false|                         |
  /ip4/172.26.162.75/tcp/8080|                  true|                     true|
 /ip4/172.26.162.107/tcp/8080|                  true|                    false|
 /ip4/172.26.162.152/tcp/8080|                 false|                         |
service@aanikeev-node1:~$ frostfs-cli netmap snapshot -r localhost:8080 -g
Epoch: 78
Node 1: 020401b5683f4e5870b11188130c18d6b864e976e46a020de0352d103fef23a2e4 ONLINE /ip4/172.26.162.131/tcp/8080
        Continent: Europe
        Country: Russia
        CountryCode: RU
        ExternalAddr: /ip4/172.26.161.64/tcp/8080
        Location: Saint Petersburg (ex Leningrad)
        Node: 172.26.160.210
        Price: 10
        SubDiv: Sankt-Peterburg
        SubDivCode: SPE
        UN-LOCODE: RU LED
        role: alphabet
Node 2: 0249249bb6ab80d078e62e36ed2a0d0779fd94c210d3dfde70fd15b733b43476cb ONLINE /ip4/172.26.162.75/tcp/8080
        Continent: Europe
        Country: Sweden
        CountryCode: SE
        ExternalAddr: /ip4/172.26.161.246/tcp/8080
        Location: Stockholm
        Node: 172.26.160.221
        Price: 10
        SubDiv: Stockholms l�n
        SubDivCode: AB
        UN-LOCODE: SE STO
        role: alphabet
Node 3: 0271db95a1fa8a23bb5fc829d9b4ad98e5509ad8ae094e7fe32d3e348b2ce74c83 ONLINE /ip4/172.26.162.107/tcp/8080
        Continent: Europe
        Country: Russia
        CountryCode: RU
        ExternalAddr: /ip4/172.26.161.76/tcp/8080
        Location: Moskva
        Node: 172.26.160.160
        Price: 10
        SubDiv: Moskva
        SubDivCode: MOW
        UN-LOCODE: RU MOW
        role: alphabet
Node 4: 034d694d726431e57e5875c333c98a24b9ace08022535753dbb89c9cddbd38c364 ONLINE /ip4/172.26.162.152/tcp/8080
        Continent: Europe
        Country: Finland
        CountryCode: FI
        ExternalAddr: /ip4/172.26.161.224/tcp/8080
        Location: Helsinki (Helsingfors)
        Node: 172.26.160.83
        Price: 10
        SubDiv: Uusimaa
        SubDivCode: 18
        UN-LOCODE: FI HEL
        role: alphabet

If we use command outside of node terminal we get the error context deadline exeeded.

Describe the solution you'd like

CLI command 'object nodes' should try to use all node IPs.

## Is your feature request related to a problem? Please describe. CLI command 'object nodes' uses only first node IP address. If this IP as internal we cannot use command outside of node terminal. ``` root@aanikeev-node1:~# date;frostfs-cli --rpc-endpoint 172.26.161.76:8080 --wallet /etc/frostfs/storage/wallet.json object nodes --cid EFEgcZbL5pfJhra7wNNtKGsCtSffCV1xQZcGB4nnxbhE --oid 8cH91cu1EH1K9akvzE7RELLbuwt99WUbxeTtXWiWFtVn Tue Jun 27 13:43:02 UTC 2023 Enter password > Netmap node| Should contain object| Actually contains object| /ip4/172.26.162.131/tcp/8080| false| | /ip4/172.26.162.75/tcp/8080| true| true| /ip4/172.26.162.107/tcp/8080| true| false| /ip4/172.26.162.152/tcp/8080| false| | ``` ``` service@aanikeev-node1:~$ frostfs-cli netmap snapshot -r localhost:8080 -g Epoch: 78 Node 1: 020401b5683f4e5870b11188130c18d6b864e976e46a020de0352d103fef23a2e4 ONLINE /ip4/172.26.162.131/tcp/8080 Continent: Europe Country: Russia CountryCode: RU ExternalAddr: /ip4/172.26.161.64/tcp/8080 Location: Saint Petersburg (ex Leningrad) Node: 172.26.160.210 Price: 10 SubDiv: Sankt-Peterburg SubDivCode: SPE UN-LOCODE: RU LED role: alphabet Node 2: 0249249bb6ab80d078e62e36ed2a0d0779fd94c210d3dfde70fd15b733b43476cb ONLINE /ip4/172.26.162.75/tcp/8080 Continent: Europe Country: Sweden CountryCode: SE ExternalAddr: /ip4/172.26.161.246/tcp/8080 Location: Stockholm Node: 172.26.160.221 Price: 10 SubDiv: Stockholms l�n SubDivCode: AB UN-LOCODE: SE STO role: alphabet Node 3: 0271db95a1fa8a23bb5fc829d9b4ad98e5509ad8ae094e7fe32d3e348b2ce74c83 ONLINE /ip4/172.26.162.107/tcp/8080 Continent: Europe Country: Russia CountryCode: RU ExternalAddr: /ip4/172.26.161.76/tcp/8080 Location: Moskva Node: 172.26.160.160 Price: 10 SubDiv: Moskva SubDivCode: MOW UN-LOCODE: RU MOW role: alphabet Node 4: 034d694d726431e57e5875c333c98a24b9ace08022535753dbb89c9cddbd38c364 ONLINE /ip4/172.26.162.152/tcp/8080 Continent: Europe Country: Finland CountryCode: FI ExternalAddr: /ip4/172.26.161.224/tcp/8080 Location: Helsinki (Helsingfors) Node: 172.26.160.83 Price: 10 SubDiv: Uusimaa SubDivCode: 18 UN-LOCODE: FI HEL role: alphabet ``` If we use command outside of node terminal we get the error `context deadline exeeded`. ## Describe the solution you'd like CLI command 'object nodes' should try to use all node IPs.
anikeev-yadro added the
triage
label 2023-06-28 07:31:37 +00:00
dstepanov-yadro self-assigned this 2023-07-05 15:39:36 +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#476
No description provided.