frostfs-cli command 'container list' returns just deleted container #801

Closed
opened 2023-11-14 09:47:59 +00:00 by anikeev-yadro · 2 comments
Member

Expected Behavior

frostfs-cli command 'container list' should not returns just deleted container

Current Behavior

frostfs-cli command 'container list' returns just deleted container

Steps to Reproduce (for bugs)

  1. Create container
COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_test/tmp.A6wnSDPoVI/frostfs-testcases/wallet_config.yml container create --rpc-endpoint '172.26.161.231:8080' --wallet '/jenkins/workspace/sbercloud_test/tmp.A6wnSDPoVI/frostfs-testcases/TemporaryDir/f7082833-8adb-444d-b140-6f6d711869e1.json' --basic-acl '0FBFBFFF' --await --policy 'REP 2 IN X CBF 1 SELECT 4 FROM * AS X'
RETCODE: 0

STDOUT:
container ID: F9QYNNAA7zbjpCc5bGjRTC3LDjZLMfDxLkBK2q1Yub1L
awaiting...
container has been persisted on sidechain

STDERR:

Start / End / Elapsed	 11:44:17.931428 / 11:44:25.343167 / 0:00:07.411739
  1. Delete container
COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_test/tmp.A6wnSDPoVI/frostfs-testcases/wallet_config.yml container delete --rpc-endpoint '172.26.161.231:8080' --wallet '/jenkins/workspace/sbercloud_test/tmp.A6wnSDPoVI/frostfs-testcases/TemporaryDir/f7082833-8adb-444d-b140-6f6d711869e1.json' --cid 'F9QYNNAA7zbjpCc5bGjRTC3LDjZLMfDxLkBK2q1Yub1L'
RETCODE: 0

STDOUT:
container delete method invoked

STDERR:

Start / End / Elapsed	 11:44:26.353459 / 11:44:26.712621 / 0:00:00.359162
  1. Tick epoch
HOST: 172.26.160.67
COMMAND:
 sudo frostfs-adm --config /home/service/config.yaml morph force-new-epoch 
RC:
 0
STDOUT:
 Current epoch: 80, increase to 81.
 Waiting for transactions to persist...

STDERR:

Start / End / Elapsed	 11:44:26.713864 / 11:44:32.690717 / 0:00:05.976853
  1. Get container returns 'not found'
COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_test/tmp.A6wnSDPoVI/frostfs-testcases/wallet_config.yml container get --rpc-endpoint '172.26.161.231:8080' --wallet '/jenkins/workspace/sbercloud_test/tmp.A6wnSDPoVI/frostfs-testcases/TemporaryDir/f7082833-8adb-444d-b140-6f6d711869e1.json' --cid 'F9QYNNAA7zbjpCc5bGjRTC3LDjZLMfDxLkBK2q1Yub1L' --json
RETCODE: 1

STDOUT:
rpc error: status: code = 3072 message = container not found

STDERR:

Start / End / Elapsed	 11:44:32.691739 / 11:44:33.045488 / 0:00:00.353749
  1. List containers returns deleted container
COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_test/tmp.A6wnSDPoVI/frostfs-testcases/wallet_config.yml container list --rpc-endpoint '172.26.161.231:8080' --wallet '/jenkins/workspace/sbercloud_test/tmp.A6wnSDPoVI/frostfs-testcases/TemporaryDir/f7082833-8adb-444d-b140-6f6d711869e1.json'
RETCODE: 0

STDOUT:
16sTJnergksS6yDiKnhFtHnZAuSUFAnYNC9qAEDbYQj
XgWnyvUJeDSMWG7fZYr3rajzPju62FiDgaB6mCZfUbb
miDJPtAK5i3LSTU4rqdUPgdC3LGBKxrrApT9xA4x8de
rEw6jtFoY58d3CfrGf8qzg3VZegomq7URbowe6QnmU2
2AEikSvRZ2cG1s6M6WG7RATGGUvrZg3tZpP59ftwD7qT
2Gi8kv7qi1JmpgLAsmoxvd8i9vc5CeKyV2GArKUNE5hm
36SFukdyfbQLMzZGU8QAkBhcmqXTyaDKScyQaZG5BKjn
3BsZeckVXtpCURefPy6r8YC49GbQQiqteWQ3sKioNAwY
46sm3ZQ1nxACNQ9CJWB3MoSo3Bz2Q5zmL5PJgQBs7jVi
4VrxFg58oNbMmbCqJiteS5THjDiZVRBtapLiHxbWjQby
4p2PrsxPCu13nbcrTJBmTuuq3bP3tKHRBfUYQt1rW1Ch
6DiEzxYFQDCxqo6ggPnAyZYQcyNARfgiDmeY7sJw1fUk
6h7FQTCi2gkNgs4wZRtvWP6153tuJnsxwVumVg1BHrBH
7fPDnEhsncSMRjXTGDMevQLrcWRnyUo7gqTaWHVEb6v3
9tamj7brfvkxpNhhAnYoNmYuTqnVkQgBhYJuWGh3gELL
9vx3korvQ2JtfqnND3MNHR2PDKYLp3fLBJzdvJAmetWE
AeykNt2r628NmsgHay6PHLH2g8Q3CdfUepPAhmhrVuT7
BVAixA8buw1SNwmyT2yPgrWPjcAzhSTPm1EbPwE1BoxY
BfebfpBZZQczDXLLMXhngEZDtKbhkP9QcYAzXLG9E1Ev
BjQrfzs4aXovbdRHaPeJri71tysbqxqyZSGETAy9i3e8
BxxfDSQDV4uSv41u9aXfqCEsE9xjBFaDo66iLRibT2Tx
DGFSU2PBbb4nFsmo5eLBNEwm5GmuqmZdx4JdV7isVB6x
DM86GFE7NJmyDh1BdMJkfNXGqEfcK9fE7tMh3AvS8v1T
DmgPAiKW1mB8Jtx1gFBPX9apSo8rCnRBhVkKEjAHDTiu
Dz7kuq1GByABumG6o4sfr1KSu5bnyUfL5SEaC9N7Ummd
EVSsZ5MEEMzzDS7Lnk1eC3uKKnFipVMSPRbaFT24ukTb
Eogm1GDri1fE2jqtkPx4qNEdiycPBv3hFzLwp3F4tVHb
EyV4GpiwbiZpBZreFjuwwqbwyoxfSp5ACrAvVZUw9gkU
F9QYNNAA7zbjpCc5bGjRTC3LDjZLMfDxLkBK2q1Yub1L
HidLcgCaAhrn3HuyUyCSJ6jMRYeexnqEKDszWNBTpRta
HjAF8xp6GR4KzUejU9mFggWSrvYU3kYFTtsUkhzQAY8Y

STDERR:

Start / End / Elapsed	 11:44:33.046763 / 11:44:33.394253 / 0:00:00.347490

Regression

Yes

Version

0.36.0-1-g188ab89b

Your Environment

4 nodes
Virtual

<!-- Provide a general summary of the issue in the Title above --> ## Expected Behavior frostfs-cli command 'container list' should not returns just deleted container ## Current Behavior frostfs-cli command 'container list' returns just deleted container ## Steps to Reproduce (for bugs) 1. Create container ``` COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_test/tmp.A6wnSDPoVI/frostfs-testcases/wallet_config.yml container create --rpc-endpoint '172.26.161.231:8080' --wallet '/jenkins/workspace/sbercloud_test/tmp.A6wnSDPoVI/frostfs-testcases/TemporaryDir/f7082833-8adb-444d-b140-6f6d711869e1.json' --basic-acl '0FBFBFFF' --await --policy 'REP 2 IN X CBF 1 SELECT 4 FROM * AS X' RETCODE: 0 STDOUT: container ID: F9QYNNAA7zbjpCc5bGjRTC3LDjZLMfDxLkBK2q1Yub1L awaiting... container has been persisted on sidechain STDERR: Start / End / Elapsed 11:44:17.931428 / 11:44:25.343167 / 0:00:07.411739 ``` 2. Delete container ``` COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_test/tmp.A6wnSDPoVI/frostfs-testcases/wallet_config.yml container delete --rpc-endpoint '172.26.161.231:8080' --wallet '/jenkins/workspace/sbercloud_test/tmp.A6wnSDPoVI/frostfs-testcases/TemporaryDir/f7082833-8adb-444d-b140-6f6d711869e1.json' --cid 'F9QYNNAA7zbjpCc5bGjRTC3LDjZLMfDxLkBK2q1Yub1L' RETCODE: 0 STDOUT: container delete method invoked STDERR: Start / End / Elapsed 11:44:26.353459 / 11:44:26.712621 / 0:00:00.359162 ``` 3. Tick epoch ``` HOST: 172.26.160.67 COMMAND: sudo frostfs-adm --config /home/service/config.yaml morph force-new-epoch RC: 0 STDOUT: Current epoch: 80, increase to 81. Waiting for transactions to persist... STDERR: Start / End / Elapsed 11:44:26.713864 / 11:44:32.690717 / 0:00:05.976853 ``` 4. Get container returns 'not found' ``` COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_test/tmp.A6wnSDPoVI/frostfs-testcases/wallet_config.yml container get --rpc-endpoint '172.26.161.231:8080' --wallet '/jenkins/workspace/sbercloud_test/tmp.A6wnSDPoVI/frostfs-testcases/TemporaryDir/f7082833-8adb-444d-b140-6f6d711869e1.json' --cid 'F9QYNNAA7zbjpCc5bGjRTC3LDjZLMfDxLkBK2q1Yub1L' --json RETCODE: 1 STDOUT: rpc error: status: code = 3072 message = container not found STDERR: Start / End / Elapsed 11:44:32.691739 / 11:44:33.045488 / 0:00:00.353749 ``` 5. List containers returns deleted container ``` COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_test/tmp.A6wnSDPoVI/frostfs-testcases/wallet_config.yml container list --rpc-endpoint '172.26.161.231:8080' --wallet '/jenkins/workspace/sbercloud_test/tmp.A6wnSDPoVI/frostfs-testcases/TemporaryDir/f7082833-8adb-444d-b140-6f6d711869e1.json' RETCODE: 0 STDOUT: 16sTJnergksS6yDiKnhFtHnZAuSUFAnYNC9qAEDbYQj XgWnyvUJeDSMWG7fZYr3rajzPju62FiDgaB6mCZfUbb miDJPtAK5i3LSTU4rqdUPgdC3LGBKxrrApT9xA4x8de rEw6jtFoY58d3CfrGf8qzg3VZegomq7URbowe6QnmU2 2AEikSvRZ2cG1s6M6WG7RATGGUvrZg3tZpP59ftwD7qT 2Gi8kv7qi1JmpgLAsmoxvd8i9vc5CeKyV2GArKUNE5hm 36SFukdyfbQLMzZGU8QAkBhcmqXTyaDKScyQaZG5BKjn 3BsZeckVXtpCURefPy6r8YC49GbQQiqteWQ3sKioNAwY 46sm3ZQ1nxACNQ9CJWB3MoSo3Bz2Q5zmL5PJgQBs7jVi 4VrxFg58oNbMmbCqJiteS5THjDiZVRBtapLiHxbWjQby 4p2PrsxPCu13nbcrTJBmTuuq3bP3tKHRBfUYQt1rW1Ch 6DiEzxYFQDCxqo6ggPnAyZYQcyNARfgiDmeY7sJw1fUk 6h7FQTCi2gkNgs4wZRtvWP6153tuJnsxwVumVg1BHrBH 7fPDnEhsncSMRjXTGDMevQLrcWRnyUo7gqTaWHVEb6v3 9tamj7brfvkxpNhhAnYoNmYuTqnVkQgBhYJuWGh3gELL 9vx3korvQ2JtfqnND3MNHR2PDKYLp3fLBJzdvJAmetWE AeykNt2r628NmsgHay6PHLH2g8Q3CdfUepPAhmhrVuT7 BVAixA8buw1SNwmyT2yPgrWPjcAzhSTPm1EbPwE1BoxY BfebfpBZZQczDXLLMXhngEZDtKbhkP9QcYAzXLG9E1Ev BjQrfzs4aXovbdRHaPeJri71tysbqxqyZSGETAy9i3e8 BxxfDSQDV4uSv41u9aXfqCEsE9xjBFaDo66iLRibT2Tx DGFSU2PBbb4nFsmo5eLBNEwm5GmuqmZdx4JdV7isVB6x DM86GFE7NJmyDh1BdMJkfNXGqEfcK9fE7tMh3AvS8v1T DmgPAiKW1mB8Jtx1gFBPX9apSo8rCnRBhVkKEjAHDTiu Dz7kuq1GByABumG6o4sfr1KSu5bnyUfL5SEaC9N7Ummd EVSsZ5MEEMzzDS7Lnk1eC3uKKnFipVMSPRbaFT24ukTb Eogm1GDri1fE2jqtkPx4qNEdiycPBv3hFzLwp3F4tVHb EyV4GpiwbiZpBZreFjuwwqbwyoxfSp5ACrAvVZUw9gkU F9QYNNAA7zbjpCc5bGjRTC3LDjZLMfDxLkBK2q1Yub1L HidLcgCaAhrn3HuyUyCSJ6jMRYeexnqEKDszWNBTpRta HjAF8xp6GR4KzUejU9mFggWSrvYU3kYFTtsUkhzQAY8Y STDERR: Start / End / Elapsed 11:44:33.046763 / 11:44:33.394253 / 0:00:00.347490 ``` ## Regression Yes ## Version ``` 0.36.0-1-g188ab89b ``` ## Your Environment 4 nodes Virtual
anikeev-yadro added the
bug
triage
labels 2023-11-14 09:47:59 +00:00
Owner

Probably not related to a bug, but -- delete without --await flag doesn't provide any guarantee, it is better to always use --await.

Probably not related to a bug, but -- `delete` without `--await` flag doesn't provide any guarantee, it is better to always use `--await`.
Owner

Related #506

Related https://git.frostfs.info/TrueCloudLab/frostfs-node/issues/506
fyrchik added
frostfs-node
and removed
triage
labels 2023-11-14 13:16:01 +00:00
fyrchik added this to the v0.38.0 milestone 2023-12-22 07:27:32 +00:00
Sign in to join this conversation.
No milestone
No project
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#801
No description provided.