When creating a container with a policy that includes the word UNIQUE, we return an error #119

Closed
opened 2023-07-14 07:35:36 +00:00 by d.zayakin · 1 comment

Expected Behavior

Policy with UNIQUE keyword does not interfere with container creation

Current Behavior

When using the UNIQUE keyword in the policy, the container is successfully created.

frostfs-cli --rpc-endpoint 127.0.0.1:8080 --wallet /path/to/wallet container create --policy 'REP 1 REP 1 CBF 1'
container ID: 4VaU2aNwNvR9DjHeJB7LCTgHg5GujpMkvYspoFemnK62

Steps to Reproduce (for bugs)

  1. Network map
Epoch: 47
Node 1: 021d5bcfffbefb3859ca433671073df5b90003ee7eca156f6e18f250db0609af8c ONLINE /ip4/172.26.162.225/tcp/8080 
	Continent: Europe
	Country: Finland
	CountryCode: FI
	ExternalAddr: /ip4/172.26.161.151/tcp/8080
	Location: Helsingfors (Helsinki)
	Node: 172.26.160.25
	Price: 10
	SubDiv: Uusimaa
	SubDivCode: 18
	UN-LOCODE: FI HEL
	role: alphabet
Node 2: 0252677d52ee7545d9433fbfdf3565299b8102995e55701d5f9056dcedb6c5848c ONLINE /ip4/172.26.162.202/tcp/8080 
	Continent: Europe
	Country: Sweden
	CountryCode: SE
	ExternalAddr: /ip4/172.26.161.205/tcp/8080
	Location: Stockholm
	Node: 172.26.160.204
	Price: 10
	SubDiv: Stockholms l�n
	SubDivCode: AB
	UN-LOCODE: SE STO
	role: alphabet
Node 3: 02b23355cfea90ccdd6f36b412c9a9b8619487a58c4adaf55c2427b577f5fd31b8 ONLINE /ip4/172.26.162.197/tcp/8080 
	Continent: Europe
	Country: Russia
	CountryCode: RU
	ExternalAddr: /ip4/172.26.161.66/tcp/8080
	Location: Moskva
	Node: 172.26.160.132
	Price: 10
	SubDiv: Moskva
	SubDivCode: MOW
	UN-LOCODE: RU MOW
	role: alphabet
Node 4: 02f7c84595746953c74fa99bb91b5b821b2b0693d7f76019a12a235bd7f88389f6 ONLINE /ip4/172.26.162.118/tcp/8080 
	Continent: Europe
	Country: Russia
	CountryCode: RU
	ExternalAddr: /ip4/172.26.161.159/tcp/8080
	Location: Saint Petersburg (ex Leningrad)
	Node: 172.26.160.118
	Price: 10
	SubDiv: Sankt-Peterburg
	SubDivCode: SPE
	UN-LOCODE: RU LED
	role: alphabet

  1. Sending a command to create a container
frostfs-cli --rpc-endpoint 127.0.0.1:8080 --wallet /path/to/wallet container create --policy 'UNIQUE REP 1 REP 1 CBF 1'
  1. Expect to get container id
put container rpc error: status: code = 1026 message = could not verify body: invalid signature: 2a7280dc59cadf7119156543ae67ab6765e2ef44ee9790b6c2447fe2374bee50 : 98f84dc1557f1c1b44dd36cf087f4a4cf85481ce8c97b544b6fd4d4b29c62c6e

Your Environment

Virtual
4 nodes

<!--- Provide a general summary of the issue in the Title above --> ## Expected Behavior Policy with UNIQUE keyword does not interfere with container creation ## Current Behavior When using the UNIQUE keyword in the policy, the container is successfully created. ``` frostfs-cli --rpc-endpoint 127.0.0.1:8080 --wallet /path/to/wallet container create --policy 'REP 1 REP 1 CBF 1' container ID: 4VaU2aNwNvR9DjHeJB7LCTgHg5GujpMkvYspoFemnK62 ``` ## Steps to Reproduce (for bugs) 1. Network map ``` Epoch: 47 Node 1: 021d5bcfffbefb3859ca433671073df5b90003ee7eca156f6e18f250db0609af8c ONLINE /ip4/172.26.162.225/tcp/8080 Continent: Europe Country: Finland CountryCode: FI ExternalAddr: /ip4/172.26.161.151/tcp/8080 Location: Helsingfors (Helsinki) Node: 172.26.160.25 Price: 10 SubDiv: Uusimaa SubDivCode: 18 UN-LOCODE: FI HEL role: alphabet Node 2: 0252677d52ee7545d9433fbfdf3565299b8102995e55701d5f9056dcedb6c5848c ONLINE /ip4/172.26.162.202/tcp/8080 Continent: Europe Country: Sweden CountryCode: SE ExternalAddr: /ip4/172.26.161.205/tcp/8080 Location: Stockholm Node: 172.26.160.204 Price: 10 SubDiv: Stockholms l�n SubDivCode: AB UN-LOCODE: SE STO role: alphabet Node 3: 02b23355cfea90ccdd6f36b412c9a9b8619487a58c4adaf55c2427b577f5fd31b8 ONLINE /ip4/172.26.162.197/tcp/8080 Continent: Europe Country: Russia CountryCode: RU ExternalAddr: /ip4/172.26.161.66/tcp/8080 Location: Moskva Node: 172.26.160.132 Price: 10 SubDiv: Moskva SubDivCode: MOW UN-LOCODE: RU MOW role: alphabet Node 4: 02f7c84595746953c74fa99bb91b5b821b2b0693d7f76019a12a235bd7f88389f6 ONLINE /ip4/172.26.162.118/tcp/8080 Continent: Europe Country: Russia CountryCode: RU ExternalAddr: /ip4/172.26.161.159/tcp/8080 Location: Saint Petersburg (ex Leningrad) Node: 172.26.160.118 Price: 10 SubDiv: Sankt-Peterburg SubDivCode: SPE UN-LOCODE: RU LED role: alphabet ``` 2. Sending a command to create a container ``` frostfs-cli --rpc-endpoint 127.0.0.1:8080 --wallet /path/to/wallet container create --policy 'UNIQUE REP 1 REP 1 CBF 1' ``` 3. Expect to get container id ``` put container rpc error: status: code = 1026 message = could not verify body: invalid signature: 2a7280dc59cadf7119156543ae67ab6765e2ef44ee9790b6c2447fe2374bee50 : 98f84dc1557f1c1b44dd36cf087f4a4cf85481ce8c97b544b6fd4d4b29c62c6e ``` ## Your Environment Virtual 4 nodes
d.zayakin added the
bug
label 2023-07-14 07:35:36 +00:00
aarifullin was assigned by fyrchik 2023-07-14 08:12:57 +00:00

Closed via #126

Closed via #126
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-sdk-go#119
There is no content yet.