adm: Refactor helper in part of reading alphabet wallets #1203

Merged
fyrchik merged 2 commits from acid-ant/frostfs-node:bugfix/morph-print-alphabet into master 2024-07-01 06:56:05 +00:00
Collaborator

Close #218

Update doc for morph generate-alphabet.

Signed-off-by: Anton Nikiforov an.nikiforov@yadro.com

Close #218 Update doc for `morph generate-alphabet`. Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
acid-ant added 2 commits 2024-06-25 19:31:08 +00:00
494e047523 [#218] adm: Add command `morph print-alphabet`
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
Tests and linters / Tests with -race (pull_request) Failing after 11s Details
DCO action / DCO (pull_request) Successful in 1m27s Details
Pre-commit hooks / Pre-commit (pull_request) Successful in 5m50s Details
Vulncheck / Vulncheck (pull_request) Successful in 6m6s Details
Tests and linters / gopls check (pull_request) Successful in 6m47s Details
Tests and linters / Staticcheck (pull_request) Successful in 8m15s Details
Tests and linters / Lint (pull_request) Successful in 9m13s Details
Build / Build Components (1.21) (pull_request) Successful in 11m6s Details
Build / Build Components (1.22) (pull_request) Successful in 11m35s Details
Tests and linters / Tests (1.21) (pull_request) Successful in 18m47s Details
Tests and linters / Tests (1.22) (pull_request) Successful in 18m52s Details
65afb6acac
[#218] adm: Refactor `helper` in part of reading alphabet wallets
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
acid-ant requested review from storage-core-committers 2024-06-25 19:31:36 +00:00
acid-ant force-pushed bugfix/morph-print-alphabet from 65afb6acac to c8b6a36c45 2024-06-25 19:31:41 +00:00 Compare
acid-ant requested review from storage-core-developers 2024-06-25 19:32:15 +00:00
fyrchik reviewed 2024-06-26 05:31:02 +00:00
@ -50,1 +43,3 @@
continue loop
var wallets []*wallet.Wallet
var letter string
innerring.IterateOverGlagoliticLetters(func(l string) (stop bool) {

I don't understand the purpose of IterateGlagoliticLetters, what is wrong with a simple for loop?

I don't understand the purpose of `IterateGlagoliticLetters`, what is wrong with a simple for loop?
Poster
Collaborator

Are we ok to make lastLetterNum public?

Are we ok to make [lastLetterNum](https://git.frostfs.info/TrueCloudLab/frostfs-node/src/commit/a0e5fc733e412beb674f38d4b5994e443e63c937/pkg/innerring/alphabet.go#L52) public?

Do we need to? We already have a 23-node restriction anyway #352

Do we need to? We already have a 23-node restriction anyway #352
Poster
Collaborator

For the case of required wallets for operation - no, we can use MaxAlphabetNodes.
For the case of printing all alphabet letters - yes.

For the case of required wallets for operation - no, we can use [MaxAlphabetNodes](https://git.frostfs.info/TrueCloudLab/frostfs-node/src/commit/af57d5a6a12f1be58c836e079ff3fc73acca39b3/cmd/frostfs-adm/internal/modules/morph/constants/const.go#L9). For the case of printing all alphabet letters - yes.
Poster
Collaborator

@fyrchik updated, please review.

@fyrchik updated, please review.

Regarding printing -- the command has static output, how about mentioning all names in the documentation?

Regarding printing -- the command has static output, how about mentioning all names in the documentation?
Poster
Collaborator

Updated doc a bit.

Updated doc a bit.
acid-ant force-pushed bugfix/morph-print-alphabet from c8b6a36c45 to 73e00e7986 2024-06-26 11:31:35 +00:00 Compare
aarifullin approved these changes 2024-06-26 12:49:21 +00:00
acid-ant force-pushed bugfix/morph-print-alphabet from 73e00e7986 to b3841e7054 2024-06-26 14:11:10 +00:00 Compare
dstepanov-yadro approved these changes 2024-06-27 09:12:14 +00:00
acid-ant changed title from adm: Add command `morph print-alphabet` to adm: Refactor `helper` in part of reading alphabet wallets 2024-06-27 09:18:57 +00:00
Poster
Collaborator

@fyrchik TestInitialize passed successfuly.
Log:

GOROOT=/home/annikifa/workspace/go1.21.1 #gosetup
GOPATH=/home/annikifa/workspace/go1.21.1 #gosetup
/home/annikifa/workspace/go1.21.1/bin/go test -c -o /home/annikifa/.cache/JetBrains/GoLand2023.3/tmp/GoLand/___TestInitialize_in_git_frostfs_info_TrueCloudLab_frostfs_node_cmd_frostfs_adm_internal_modules_morph_initialize.test git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-adm/internal/modules/morph/initialize #gosetup
warning: GOPATH set to GOROOT (/home/annikifa/workspace/go1.21.1) has no effect
/home/annikifa/workspace/go1.21.1/bin/go tool test2json -t /home/annikifa/.cache/JetBrains/GoLand2023.3/tmp/GoLand/___TestInitialize_in_git_frostfs_info_TrueCloudLab_frostfs_node_cmd_frostfs_adm_internal_modules_morph_initialize.test -test.v -test.paniconexit0 -test.run ^\QTestInitialize\E$
warning: GOPATH set to GOROOT (/home/annikifa/workspace/go1.21.1) has no effect
=== RUN   TestInitialize
--- PASS: TestInitialize (212.32s)
=== RUN   TestInitialize/1_nodes
size: 1
alphabet-wallets: /tmp/TestInitialize1_nodes1567379287/001
wallet[0]: 0
Stage 1: transfer GAS to alphabet nodes.
Waiting for transactions to persist...
Stage 2: set notary and alphabet nodes in designate contract.
Waiting for transactions to persist...
Stage 3: deploy NNS contract.
Waiting for transactions to persist...
Stage 4: deploy NeoFS contracts.
Waiting for transactions to persist...
Stage 4.1: Transfer GAS to proxy contract.
Waiting for transactions to persist...
Stage 5: register candidates.
Waiting for transactions to persist...
Stage 6: transfer NEO to alphabet contracts.
Waiting for transactions to persist...
Stage 7: set addresses in NNS.
Waiting for transactions to persist...
NNS: Set alphabet0.frostfs -> af781c35221768295f7988ed252f876c6a1245fa
NNS: Set balance.frostfs -> 4b151126c54e8c2a5574970df4631055deaf03da
NNS: Set container.frostfs -> df83fc6ce32abc0b0276a1a99e36f6ef91376e38
NNS: Set frostfsid.frostfs -> ccb84bb916fe48375a6c98be144ba9ec53c02018
NNS: Set netmap.frostfs -> fdcf895d080fa5b9fdccbaae56e6a4156efa8277
NNS: Set policy.frostfs -> 515ee15b453c2af48f34c901d316477cd0fe95bb
NNS: Set proxy.frostfs -> a05fdad7b3631e22aeb197236f5f1c67dba9ff86
NNS: Set group.frostfs -> 022e1e2a9cea09001e0b254ca867e371877c26d522d26837affd7c159021052f95
Waiting for transactions to persist...
    --- PASS: TestInitialize/1_nodes (5.37s)
=== RUN   TestInitialize/1_nodes/force-new-epoch
Current epoch: 0, increase to 1.
Waiting for transactions to persist...
        --- PASS: TestInitialize/1_nodes/force-new-epoch (0.84s)
=== RUN   TestInitialize/1_nodes/set-config
Waiting for transactions to persist...
        --- PASS: TestInitialize/1_nodes/set-config (0.80s)
=== RUN   TestInitialize/1_nodes/set-policy
Waiting for transactions to persist...
        --- PASS: TestInitialize/1_nodes/set-policy (0.82s)
=== RUN   TestInitialize/1_nodes/remove-node
Current epoch: 0, increase to 1.
Waiting for transactions to persist...
        --- PASS: TestInitialize/1_nodes/remove-node (0.80s)
=== RUN   TestInitialize/4_nodes
size: 4
alphabet-wallets: /tmp/TestInitialize4_nodes2964497604/001
wallet[0]: 0
wallet[1]: 1
wallet[2]: 2
wallet[3]: 3
Stage 1: transfer GAS to alphabet nodes.
Waiting for transactions to persist...
Stage 2: set notary and alphabet nodes in designate contract.
Waiting for transactions to persist...
Stage 3: deploy NNS contract.
Waiting for transactions to persist...
Stage 4: deploy NeoFS contracts.
Waiting for transactions to persist...
Stage 4.1: Transfer GAS to proxy contract.
Waiting for transactions to persist...
Stage 5: register candidates.
Waiting for transactions to persist...
Stage 6: transfer NEO to alphabet contracts.
Waiting for transactions to persist...
Stage 7: set addresses in NNS.
Waiting for transactions to persist...
NNS: Set alphabet0.frostfs -> 3551e0be79b7704a0489f38e946259bd580b33f7
NNS: Set alphabet1.frostfs -> 8b1b327ac76c3af428f5be84567d4b7bc531720f
NNS: Set alphabet2.frostfs -> f486d2324bfa9d2953ffe24ea90fd450635ee539
NNS: Set alphabet3.frostfs -> 7b070a3662327d73ae251e6ebd6976a94735dbd3
NNS: Set balance.frostfs -> dd171cd1f67abeae6329c264ff79fab90c148ac0
NNS: Set container.frostfs -> 4e6a27b4e53cf7beeb2dc8f333d8b0f128d3ff14
NNS: Set frostfsid.frostfs -> be2ca11491988ffbe03085c2068f67ba947a3081
NNS: Set netmap.frostfs -> 17939c5002053a4bf426d5dc097d61c08f0db375
NNS: Set policy.frostfs -> 4ee731ebb592b19bd687b3be31296305efe4742a
NNS: Set proxy.frostfs -> b314176d1c3b4fb0cd955f0dc16beb38dc1b7841
NNS: Set group.frostfs -> 030290415ff96028d1918efa6881c2b67ced8e83b0c24b7066f258fcf9a49e13c1
Waiting for transactions to persist...
    --- PASS: TestInitialize/4_nodes (17.41s)
=== RUN   TestInitialize/4_nodes/force-new-epoch
Current epoch: 0, increase to 1.
Waiting for transactions to persist...
        --- PASS: TestInitialize/4_nodes/force-new-epoch (3.12s)
=== RUN   TestInitialize/4_nodes/set-config
Waiting for transactions to persist...
        --- PASS: TestInitialize/4_nodes/set-config (3.14s)
=== RUN   TestInitialize/4_nodes/set-policy
Waiting for transactions to persist...
        --- PASS: TestInitialize/4_nodes/set-policy (3.16s)
=== RUN   TestInitialize/4_nodes/remove-node
Current epoch: 0, increase to 1.
Waiting for transactions to persist...
        --- PASS: TestInitialize/4_nodes/remove-node (3.14s)
=== RUN   TestInitialize/7_nodes
size: 7
alphabet-wallets: /tmp/TestInitialize7_nodes1780509171/001
wallet[0]: 0
wallet[1]: 1
wallet[2]: 2
wallet[3]: 3
wallet[4]: 4
wallet[5]: 5
wallet[6]: 6
Stage 1: transfer GAS to alphabet nodes.
Waiting for transactions to persist...
Stage 2: set notary and alphabet nodes in designate contract.
Waiting for transactions to persist...
Stage 3: deploy NNS contract.
Waiting for transactions to persist...
Stage 4: deploy NeoFS contracts.
Waiting for transactions to persist...
Stage 4.1: Transfer GAS to proxy contract.
Waiting for transactions to persist...
Stage 5: register candidates.
Waiting for transactions to persist...
Stage 6: transfer NEO to alphabet contracts.
Waiting for transactions to persist...
Stage 7: set addresses in NNS.
Waiting for transactions to persist...
NNS: Set alphabet0.frostfs -> 388fcf0f67756980f4d62667b8e01a8e94ab4844
NNS: Set alphabet1.frostfs -> ada7920b8a28d35f6d388be341c661866f673fd3
NNS: Set alphabet2.frostfs -> 67a1ba249df04ff1154ba8aecd2774448b195af0
NNS: Set alphabet3.frostfs -> 5c42052b50b54042c73ba56dd74f293ab5e27bc8
NNS: Set alphabet4.frostfs -> 99cf09587bd2233c11668c65e9e800bced13bba4
NNS: Set alphabet5.frostfs -> 0635c18770262f1d32d2e43c8a31e16df649962e
NNS: Set alphabet6.frostfs -> f0cfb273f48b08cd67a04171ed1c33fb06d6b182
NNS: Set balance.frostfs -> 96bc5872facd530d5ba51ab4e66e0ce93d9d09bc
NNS: Set container.frostfs -> 7862b2aea8062f0159bae7769622be95444e3f24
NNS: Set frostfsid.frostfs -> 5c959c145484b2115c492a9ab37f3a85ba25c7ad
NNS: Set netmap.frostfs -> 4666a6784fca1d5da8afe7473cb03b50712e3aae
NNS: Set policy.frostfs -> 7bd79e051200105d8d2fa974d13f259cadeb9658
NNS: Set proxy.frostfs -> aedce6dc197382eb36d81fb6ceab95673f0fdae2
NNS: Set group.frostfs -> 02ce173549a805887e8f269821638827d2557fc1265767fe95339bb6f9df33149f
Waiting for transactions to persist...
    --- PASS: TestInitialize/7_nodes (29.83s)
=== RUN   TestInitialize/7_nodes/force-new-epoch
Current epoch: 0, increase to 1.
Waiting for transactions to persist...
        --- PASS: TestInitialize/7_nodes/force-new-epoch (5.62s)
=== RUN   TestInitialize/7_nodes/set-config
Waiting for transactions to persist...
        --- PASS: TestInitialize/7_nodes/set-config (5.50s)
=== RUN   TestInitialize/7_nodes/set-policy
Waiting for transactions to persist...
        --- PASS: TestInitialize/7_nodes/set-policy (5.53s)
=== RUN   TestInitialize/7_nodes/remove-node
Current epoch: 0, increase to 1.
Waiting for transactions to persist...
        --- PASS: TestInitialize/7_nodes/remove-node (5.50s)
=== RUN   TestInitialize/16_nodes
size: 16
alphabet-wallets: /tmp/TestInitialize16_nodes3362919247/001
wallet[0]: 0
wallet[1]: 1
wallet[2]: 2
wallet[3]: 3
wallet[4]: 4
wallet[5]: 5
wallet[6]: 6
wallet[7]: 7
wallet[8]: 8
wallet[9]: 9
wallet[10]: 10
wallet[11]: 11
wallet[12]: 12
wallet[13]: 13
wallet[14]: 14
wallet[15]: 15
Stage 1: transfer GAS to alphabet nodes.
Waiting for transactions to persist...
Stage 2: set notary and alphabet nodes in designate contract.
Waiting for transactions to persist...
Stage 3: deploy NNS contract.
Waiting for transactions to persist...
Stage 4: deploy NeoFS contracts.
Waiting for transactions to persist...
Stage 4.1: Transfer GAS to proxy contract.
Waiting for transactions to persist...
Stage 5: register candidates.
Waiting for transactions to persist...
Waiting for transactions to persist...
Stage 6: transfer NEO to alphabet contracts.
Waiting for transactions to persist...
Stage 7: set addresses in NNS.
Waiting for transactions to persist...
NNS: Set alphabet0.frostfs -> 593b18bd11ffed0e8eaf6722370c7e19d11ae00b
NNS: Set alphabet1.frostfs -> bbf021570fa61503e9829857ad0b2c2bf8ff8760
NNS: Set alphabet2.frostfs -> 6b766e432b66d22ab3e94d83bfd7da1720928ed6
NNS: Set alphabet3.frostfs -> 135b31355b79197202be2ce7a3d050a23e289aed
NNS: Set alphabet4.frostfs -> 9ab096b3ece231665351e1c51534690e72674ad9
NNS: Set alphabet5.frostfs -> 905f87e8dd92d049c9f1005c7858edfb53c22828
NNS: Set alphabet6.frostfs -> 2f824127fef47a19b247dd274d0ca45492bfe3eb
NNS: Set alphabet7.frostfs -> 0632e8cc6d55db151a83a6a43324b1161e93f136
NNS: Set alphabet8.frostfs -> 0ca4aba598b8241739df789a4fa7e96b715646cf
NNS: Set alphabet9.frostfs -> 88d7eba40a5e7c5a4a3a914ec3de518446369656
NNS: Set alphabet10.frostfs -> f23eceb0d8189972c4501776a865ce1e9aaa5636
NNS: Set alphabet11.frostfs -> ccd06ea6bc1c18c579545cc82c6485a65115297d
NNS: Set alphabet12.frostfs -> 8985915b343ff2392a04714ea70c6de1d5283f7b
NNS: Set alphabet13.frostfs -> ff6861c53c1b41434931b7f89cbc307be0ee075b
NNS: Set alphabet14.frostfs -> 0baf0d43cb58ccb28880c423b9505329d1bd4cbb
NNS: Set alphabet15.frostfs -> 4a265b4c3f7a6259c001fe29a149a64acf2a57ac
NNS: Set balance.frostfs -> 5bf51f428d408b14af83ffd753acdd9c82094267
NNS: Set container.frostfs -> 279fde4eb38767068376262a1cc46bac439f1288
NNS: Set frostfsid.frostfs -> c6d51dc336ccbadfa45017263c4b437e27e15b19
NNS: Set netmap.frostfs -> a52b13c0098192864d18b453736db76ed58c403f
NNS: Set policy.frostfs -> b09069690986f0e063f27fed91cea93d9ff7d085
NNS: Set proxy.frostfs -> c3c28a5b8afe0a09f750e67881d7abfcd37bea82
NNS: Set group.frostfs -> 02990cb43b4b0b8349c7f6973d7eaeecd3371f8a51c6c3a5eaf40ffd33c73e900e
Waiting for transactions to persist...
    --- PASS: TestInitialize/16_nodes (66.73s)
=== RUN   TestInitialize/16_nodes/force-new-epoch
Current epoch: 0, increase to 1.
Waiting for transactions to persist...
        --- PASS: TestInitialize/16_nodes/force-new-epoch (12.54s)
=== RUN   TestInitialize/16_nodes/set-config
Waiting for transactions to persist...
        --- PASS: TestInitialize/16_nodes/set-config (12.73s)
=== RUN   TestInitialize/16_nodes/set-policy
Waiting for transactions to persist...
        --- PASS: TestInitialize/16_nodes/set-policy (12.46s)
=== RUN   TestInitialize/16_nodes/remove-node
Current epoch: 0, increase to 1.
Waiting for transactions to persist...
        --- PASS: TestInitialize/16_nodes/remove-node (12.46s)
=== RUN   TestInitialize/max_nodes
size: 22
alphabet-wallets: /tmp/TestInitializemax_nodes848155876/001
wallet[0]: 0
wallet[1]: 1
wallet[2]: 2
wallet[3]: 3
wallet[4]: 4
wallet[5]: 5
wallet[6]: 6
wallet[7]: 7
wallet[8]: 8
wallet[9]: 9
wallet[10]: 10
wallet[11]: 11
wallet[12]: 12
wallet[13]: 13
wallet[14]: 14
wallet[15]: 15
wallet[16]: 16
wallet[17]: 17
wallet[18]: 18
wallet[19]: 19
wallet[20]: 20
wallet[21]: 21
Stage 1: transfer GAS to alphabet nodes.
Waiting for transactions to persist...
Stage 2: set notary and alphabet nodes in designate contract.
Waiting for transactions to persist...
Stage 3: deploy NNS contract.
Waiting for transactions to persist...
Stage 4: deploy NeoFS contracts.
Waiting for transactions to persist...
Stage 4.1: Transfer GAS to proxy contract.
Waiting for transactions to persist...
Stage 5: register candidates.
Waiting for transactions to persist...
Waiting for transactions to persist...
Stage 6: transfer NEO to alphabet contracts.
Waiting for transactions to persist...
Stage 7: set addresses in NNS.
Waiting for transactions to persist...
NNS: Set alphabet0.frostfs -> 2ec3692523a85223fc9bf7ccb89a195e088621db
NNS: Set alphabet1.frostfs -> 1623c689fbe70c5a1615163616fcee76e337f38c
NNS: Set alphabet2.frostfs -> a2acf415b5fb324454a1307deeae5e132be89f41
NNS: Set alphabet3.frostfs -> d91ce2ce1dc4932f08c86f69d324a3ab451ff6f8
NNS: Set alphabet4.frostfs -> e0fe4f29cade0663038a3365882ddc07b702e6e7
NNS: Set alphabet5.frostfs -> 386c517448f27cda6682426f36249a3863b8224c
NNS: Set alphabet6.frostfs -> 3cb575bb6ae0a7152ca2b1c94d236046714ec715
NNS: Set alphabet7.frostfs -> 078b0e6022a96700e3c59dbb9ceb3ef0597e0135
NNS: Set alphabet8.frostfs -> 3ca64bf69030cd0dcc7063e97c27261dad325bcf
NNS: Set alphabet9.frostfs -> 1bbae79f6916e95ce561a3a1f33add00d91032a5
NNS: Set alphabet10.frostfs -> 5eee589d49dd3d68018c5c892c85cff27d7a8b6f
NNS: Set alphabet11.frostfs -> d1834a4bfe21d26fd4eed351d1ae42901bcc85d8
NNS: Set alphabet12.frostfs -> eb66d0946060462226af9ca9c70f38c124d3bd99
NNS: Set alphabet13.frostfs -> 317d2e3fe985bf046d4900c7e7f69285b19df9f5
NNS: Set alphabet14.frostfs -> e344b489a47bdff12ecdd95a9d31b4a9ce943fae
NNS: Set alphabet15.frostfs -> c338cc2fc6b439701bd88885e1950cc04324e627
NNS: Set alphabet16.frostfs -> 3e3b1df674b301d24b33e78ea90aa0964427ae0d
NNS: Set alphabet17.frostfs -> d99c3366b076b0a3ec0fb10bfcf011068022c524
NNS: Set alphabet18.frostfs -> 098aac0a8d8cc2832e1a6a456906113a614168f3
NNS: Set alphabet19.frostfs -> d83310a007eb961a3b9e91be0805c03def83b18b
NNS: Set alphabet20.frostfs -> 3bb77cde3179bb0af5e15cca0120f960d55b814e
NNS: Set alphabet21.frostfs -> bad99f4fbe234969a4c711e4c01d5e0865e7be1c
NNS: Set balance.frostfs -> 2babaaa5fc045f99bf44bca903533f2adf85bca2
NNS: Set container.frostfs -> 665a2b762b8d88264fd2e94bf71f929dc3d24059
NNS: Set frostfsid.frostfs -> 58e2ca910614ee14246dc27fd93a50ec1064e7e9
NNS: Set netmap.frostfs -> 9f8a01506cdbf591610d4898ec62e2e7dd3da9e5
NNS: Set policy.frostfs -> 6c2ee05dc3397c661399f75a3c223b13a63584e3
NNS: Set proxy.frostfs -> bc9f23814e9956765ee2a9bace858e5151b91b9f
NNS: Set group.frostfs -> 0217d9b42ab11a6862a0b7c274f72322bbe4591e30b04c22153ab3049ba1612858
Waiting for transactions to persist...
    --- PASS: TestInitialize/max_nodes (92.98s)
=== RUN   TestInitialize/max_nodes/force-new-epoch
Current epoch: 0, increase to 1.
Waiting for transactions to persist...
        --- PASS: TestInitialize/max_nodes/force-new-epoch (18.48s)
=== RUN   TestInitialize/max_nodes/set-config
Waiting for transactions to persist...
        --- PASS: TestInitialize/max_nodes/set-config (17.18s)
=== RUN   TestInitialize/max_nodes/set-policy
Waiting for transactions to persist...
        --- PASS: TestInitialize/max_nodes/set-policy (17.17s)
=== RUN   TestInitialize/max_nodes/remove-node
Current epoch: 0, increase to 1.
Waiting for transactions to persist...
        --- PASS: TestInitialize/max_nodes/remove-node (17.22s)
=== RUN   TestInitialize/too_many_nodes
    --- PASS: TestInitialize/too_many_nodes (0.00s)
PASS

Process finished with the exit code 0

@fyrchik [TestInitialize](https://git.frostfs.info/TrueCloudLab/frostfs-node/src/commit/4c7ff159ec90579b962c1d81454047c0752c17ad/cmd/frostfs-adm/internal/modules/morph/initialize/initialize_test.go#L35) passed successfuly. Log: ``` GOROOT=/home/annikifa/workspace/go1.21.1 #gosetup GOPATH=/home/annikifa/workspace/go1.21.1 #gosetup /home/annikifa/workspace/go1.21.1/bin/go test -c -o /home/annikifa/.cache/JetBrains/GoLand2023.3/tmp/GoLand/___TestInitialize_in_git_frostfs_info_TrueCloudLab_frostfs_node_cmd_frostfs_adm_internal_modules_morph_initialize.test git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-adm/internal/modules/morph/initialize #gosetup warning: GOPATH set to GOROOT (/home/annikifa/workspace/go1.21.1) has no effect /home/annikifa/workspace/go1.21.1/bin/go tool test2json -t /home/annikifa/.cache/JetBrains/GoLand2023.3/tmp/GoLand/___TestInitialize_in_git_frostfs_info_TrueCloudLab_frostfs_node_cmd_frostfs_adm_internal_modules_morph_initialize.test -test.v -test.paniconexit0 -test.run ^\QTestInitialize\E$ warning: GOPATH set to GOROOT (/home/annikifa/workspace/go1.21.1) has no effect === RUN TestInitialize --- PASS: TestInitialize (212.32s) === RUN TestInitialize/1_nodes size: 1 alphabet-wallets: /tmp/TestInitialize1_nodes1567379287/001 wallet[0]: 0 Stage 1: transfer GAS to alphabet nodes. Waiting for transactions to persist... Stage 2: set notary and alphabet nodes in designate contract. Waiting for transactions to persist... Stage 3: deploy NNS contract. Waiting for transactions to persist... Stage 4: deploy NeoFS contracts. Waiting for transactions to persist... Stage 4.1: Transfer GAS to proxy contract. Waiting for transactions to persist... Stage 5: register candidates. Waiting for transactions to persist... Stage 6: transfer NEO to alphabet contracts. Waiting for transactions to persist... Stage 7: set addresses in NNS. Waiting for transactions to persist... NNS: Set alphabet0.frostfs -> af781c35221768295f7988ed252f876c6a1245fa NNS: Set balance.frostfs -> 4b151126c54e8c2a5574970df4631055deaf03da NNS: Set container.frostfs -> df83fc6ce32abc0b0276a1a99e36f6ef91376e38 NNS: Set frostfsid.frostfs -> ccb84bb916fe48375a6c98be144ba9ec53c02018 NNS: Set netmap.frostfs -> fdcf895d080fa5b9fdccbaae56e6a4156efa8277 NNS: Set policy.frostfs -> 515ee15b453c2af48f34c901d316477cd0fe95bb NNS: Set proxy.frostfs -> a05fdad7b3631e22aeb197236f5f1c67dba9ff86 NNS: Set group.frostfs -> 022e1e2a9cea09001e0b254ca867e371877c26d522d26837affd7c159021052f95 Waiting for transactions to persist... --- PASS: TestInitialize/1_nodes (5.37s) === RUN TestInitialize/1_nodes/force-new-epoch Current epoch: 0, increase to 1. Waiting for transactions to persist... --- PASS: TestInitialize/1_nodes/force-new-epoch (0.84s) === RUN TestInitialize/1_nodes/set-config Waiting for transactions to persist... --- PASS: TestInitialize/1_nodes/set-config (0.80s) === RUN TestInitialize/1_nodes/set-policy Waiting for transactions to persist... --- PASS: TestInitialize/1_nodes/set-policy (0.82s) === RUN TestInitialize/1_nodes/remove-node Current epoch: 0, increase to 1. Waiting for transactions to persist... --- PASS: TestInitialize/1_nodes/remove-node (0.80s) === RUN TestInitialize/4_nodes size: 4 alphabet-wallets: /tmp/TestInitialize4_nodes2964497604/001 wallet[0]: 0 wallet[1]: 1 wallet[2]: 2 wallet[3]: 3 Stage 1: transfer GAS to alphabet nodes. Waiting for transactions to persist... Stage 2: set notary and alphabet nodes in designate contract. Waiting for transactions to persist... Stage 3: deploy NNS contract. Waiting for transactions to persist... Stage 4: deploy NeoFS contracts. Waiting for transactions to persist... Stage 4.1: Transfer GAS to proxy contract. Waiting for transactions to persist... Stage 5: register candidates. Waiting for transactions to persist... Stage 6: transfer NEO to alphabet contracts. Waiting for transactions to persist... Stage 7: set addresses in NNS. Waiting for transactions to persist... NNS: Set alphabet0.frostfs -> 3551e0be79b7704a0489f38e946259bd580b33f7 NNS: Set alphabet1.frostfs -> 8b1b327ac76c3af428f5be84567d4b7bc531720f NNS: Set alphabet2.frostfs -> f486d2324bfa9d2953ffe24ea90fd450635ee539 NNS: Set alphabet3.frostfs -> 7b070a3662327d73ae251e6ebd6976a94735dbd3 NNS: Set balance.frostfs -> dd171cd1f67abeae6329c264ff79fab90c148ac0 NNS: Set container.frostfs -> 4e6a27b4e53cf7beeb2dc8f333d8b0f128d3ff14 NNS: Set frostfsid.frostfs -> be2ca11491988ffbe03085c2068f67ba947a3081 NNS: Set netmap.frostfs -> 17939c5002053a4bf426d5dc097d61c08f0db375 NNS: Set policy.frostfs -> 4ee731ebb592b19bd687b3be31296305efe4742a NNS: Set proxy.frostfs -> b314176d1c3b4fb0cd955f0dc16beb38dc1b7841 NNS: Set group.frostfs -> 030290415ff96028d1918efa6881c2b67ced8e83b0c24b7066f258fcf9a49e13c1 Waiting for transactions to persist... --- PASS: TestInitialize/4_nodes (17.41s) === RUN TestInitialize/4_nodes/force-new-epoch Current epoch: 0, increase to 1. Waiting for transactions to persist... --- PASS: TestInitialize/4_nodes/force-new-epoch (3.12s) === RUN TestInitialize/4_nodes/set-config Waiting for transactions to persist... --- PASS: TestInitialize/4_nodes/set-config (3.14s) === RUN TestInitialize/4_nodes/set-policy Waiting for transactions to persist... --- PASS: TestInitialize/4_nodes/set-policy (3.16s) === RUN TestInitialize/4_nodes/remove-node Current epoch: 0, increase to 1. Waiting for transactions to persist... --- PASS: TestInitialize/4_nodes/remove-node (3.14s) === RUN TestInitialize/7_nodes size: 7 alphabet-wallets: /tmp/TestInitialize7_nodes1780509171/001 wallet[0]: 0 wallet[1]: 1 wallet[2]: 2 wallet[3]: 3 wallet[4]: 4 wallet[5]: 5 wallet[6]: 6 Stage 1: transfer GAS to alphabet nodes. Waiting for transactions to persist... Stage 2: set notary and alphabet nodes in designate contract. Waiting for transactions to persist... Stage 3: deploy NNS contract. Waiting for transactions to persist... Stage 4: deploy NeoFS contracts. Waiting for transactions to persist... Stage 4.1: Transfer GAS to proxy contract. Waiting for transactions to persist... Stage 5: register candidates. Waiting for transactions to persist... Stage 6: transfer NEO to alphabet contracts. Waiting for transactions to persist... Stage 7: set addresses in NNS. Waiting for transactions to persist... NNS: Set alphabet0.frostfs -> 388fcf0f67756980f4d62667b8e01a8e94ab4844 NNS: Set alphabet1.frostfs -> ada7920b8a28d35f6d388be341c661866f673fd3 NNS: Set alphabet2.frostfs -> 67a1ba249df04ff1154ba8aecd2774448b195af0 NNS: Set alphabet3.frostfs -> 5c42052b50b54042c73ba56dd74f293ab5e27bc8 NNS: Set alphabet4.frostfs -> 99cf09587bd2233c11668c65e9e800bced13bba4 NNS: Set alphabet5.frostfs -> 0635c18770262f1d32d2e43c8a31e16df649962e NNS: Set alphabet6.frostfs -> f0cfb273f48b08cd67a04171ed1c33fb06d6b182 NNS: Set balance.frostfs -> 96bc5872facd530d5ba51ab4e66e0ce93d9d09bc NNS: Set container.frostfs -> 7862b2aea8062f0159bae7769622be95444e3f24 NNS: Set frostfsid.frostfs -> 5c959c145484b2115c492a9ab37f3a85ba25c7ad NNS: Set netmap.frostfs -> 4666a6784fca1d5da8afe7473cb03b50712e3aae NNS: Set policy.frostfs -> 7bd79e051200105d8d2fa974d13f259cadeb9658 NNS: Set proxy.frostfs -> aedce6dc197382eb36d81fb6ceab95673f0fdae2 NNS: Set group.frostfs -> 02ce173549a805887e8f269821638827d2557fc1265767fe95339bb6f9df33149f Waiting for transactions to persist... --- PASS: TestInitialize/7_nodes (29.83s) === RUN TestInitialize/7_nodes/force-new-epoch Current epoch: 0, increase to 1. Waiting for transactions to persist... --- PASS: TestInitialize/7_nodes/force-new-epoch (5.62s) === RUN TestInitialize/7_nodes/set-config Waiting for transactions to persist... --- PASS: TestInitialize/7_nodes/set-config (5.50s) === RUN TestInitialize/7_nodes/set-policy Waiting for transactions to persist... --- PASS: TestInitialize/7_nodes/set-policy (5.53s) === RUN TestInitialize/7_nodes/remove-node Current epoch: 0, increase to 1. Waiting for transactions to persist... --- PASS: TestInitialize/7_nodes/remove-node (5.50s) === RUN TestInitialize/16_nodes size: 16 alphabet-wallets: /tmp/TestInitialize16_nodes3362919247/001 wallet[0]: 0 wallet[1]: 1 wallet[2]: 2 wallet[3]: 3 wallet[4]: 4 wallet[5]: 5 wallet[6]: 6 wallet[7]: 7 wallet[8]: 8 wallet[9]: 9 wallet[10]: 10 wallet[11]: 11 wallet[12]: 12 wallet[13]: 13 wallet[14]: 14 wallet[15]: 15 Stage 1: transfer GAS to alphabet nodes. Waiting for transactions to persist... Stage 2: set notary and alphabet nodes in designate contract. Waiting for transactions to persist... Stage 3: deploy NNS contract. Waiting for transactions to persist... Stage 4: deploy NeoFS contracts. Waiting for transactions to persist... Stage 4.1: Transfer GAS to proxy contract. Waiting for transactions to persist... Stage 5: register candidates. Waiting for transactions to persist... Waiting for transactions to persist... Stage 6: transfer NEO to alphabet contracts. Waiting for transactions to persist... Stage 7: set addresses in NNS. Waiting for transactions to persist... NNS: Set alphabet0.frostfs -> 593b18bd11ffed0e8eaf6722370c7e19d11ae00b NNS: Set alphabet1.frostfs -> bbf021570fa61503e9829857ad0b2c2bf8ff8760 NNS: Set alphabet2.frostfs -> 6b766e432b66d22ab3e94d83bfd7da1720928ed6 NNS: Set alphabet3.frostfs -> 135b31355b79197202be2ce7a3d050a23e289aed NNS: Set alphabet4.frostfs -> 9ab096b3ece231665351e1c51534690e72674ad9 NNS: Set alphabet5.frostfs -> 905f87e8dd92d049c9f1005c7858edfb53c22828 NNS: Set alphabet6.frostfs -> 2f824127fef47a19b247dd274d0ca45492bfe3eb NNS: Set alphabet7.frostfs -> 0632e8cc6d55db151a83a6a43324b1161e93f136 NNS: Set alphabet8.frostfs -> 0ca4aba598b8241739df789a4fa7e96b715646cf NNS: Set alphabet9.frostfs -> 88d7eba40a5e7c5a4a3a914ec3de518446369656 NNS: Set alphabet10.frostfs -> f23eceb0d8189972c4501776a865ce1e9aaa5636 NNS: Set alphabet11.frostfs -> ccd06ea6bc1c18c579545cc82c6485a65115297d NNS: Set alphabet12.frostfs -> 8985915b343ff2392a04714ea70c6de1d5283f7b NNS: Set alphabet13.frostfs -> ff6861c53c1b41434931b7f89cbc307be0ee075b NNS: Set alphabet14.frostfs -> 0baf0d43cb58ccb28880c423b9505329d1bd4cbb NNS: Set alphabet15.frostfs -> 4a265b4c3f7a6259c001fe29a149a64acf2a57ac NNS: Set balance.frostfs -> 5bf51f428d408b14af83ffd753acdd9c82094267 NNS: Set container.frostfs -> 279fde4eb38767068376262a1cc46bac439f1288 NNS: Set frostfsid.frostfs -> c6d51dc336ccbadfa45017263c4b437e27e15b19 NNS: Set netmap.frostfs -> a52b13c0098192864d18b453736db76ed58c403f NNS: Set policy.frostfs -> b09069690986f0e063f27fed91cea93d9ff7d085 NNS: Set proxy.frostfs -> c3c28a5b8afe0a09f750e67881d7abfcd37bea82 NNS: Set group.frostfs -> 02990cb43b4b0b8349c7f6973d7eaeecd3371f8a51c6c3a5eaf40ffd33c73e900e Waiting for transactions to persist... --- PASS: TestInitialize/16_nodes (66.73s) === RUN TestInitialize/16_nodes/force-new-epoch Current epoch: 0, increase to 1. Waiting for transactions to persist... --- PASS: TestInitialize/16_nodes/force-new-epoch (12.54s) === RUN TestInitialize/16_nodes/set-config Waiting for transactions to persist... --- PASS: TestInitialize/16_nodes/set-config (12.73s) === RUN TestInitialize/16_nodes/set-policy Waiting for transactions to persist... --- PASS: TestInitialize/16_nodes/set-policy (12.46s) === RUN TestInitialize/16_nodes/remove-node Current epoch: 0, increase to 1. Waiting for transactions to persist... --- PASS: TestInitialize/16_nodes/remove-node (12.46s) === RUN TestInitialize/max_nodes size: 22 alphabet-wallets: /tmp/TestInitializemax_nodes848155876/001 wallet[0]: 0 wallet[1]: 1 wallet[2]: 2 wallet[3]: 3 wallet[4]: 4 wallet[5]: 5 wallet[6]: 6 wallet[7]: 7 wallet[8]: 8 wallet[9]: 9 wallet[10]: 10 wallet[11]: 11 wallet[12]: 12 wallet[13]: 13 wallet[14]: 14 wallet[15]: 15 wallet[16]: 16 wallet[17]: 17 wallet[18]: 18 wallet[19]: 19 wallet[20]: 20 wallet[21]: 21 Stage 1: transfer GAS to alphabet nodes. Waiting for transactions to persist... Stage 2: set notary and alphabet nodes in designate contract. Waiting for transactions to persist... Stage 3: deploy NNS contract. Waiting for transactions to persist... Stage 4: deploy NeoFS contracts. Waiting for transactions to persist... Stage 4.1: Transfer GAS to proxy contract. Waiting for transactions to persist... Stage 5: register candidates. Waiting for transactions to persist... Waiting for transactions to persist... Stage 6: transfer NEO to alphabet contracts. Waiting for transactions to persist... Stage 7: set addresses in NNS. Waiting for transactions to persist... NNS: Set alphabet0.frostfs -> 2ec3692523a85223fc9bf7ccb89a195e088621db NNS: Set alphabet1.frostfs -> 1623c689fbe70c5a1615163616fcee76e337f38c NNS: Set alphabet2.frostfs -> a2acf415b5fb324454a1307deeae5e132be89f41 NNS: Set alphabet3.frostfs -> d91ce2ce1dc4932f08c86f69d324a3ab451ff6f8 NNS: Set alphabet4.frostfs -> e0fe4f29cade0663038a3365882ddc07b702e6e7 NNS: Set alphabet5.frostfs -> 386c517448f27cda6682426f36249a3863b8224c NNS: Set alphabet6.frostfs -> 3cb575bb6ae0a7152ca2b1c94d236046714ec715 NNS: Set alphabet7.frostfs -> 078b0e6022a96700e3c59dbb9ceb3ef0597e0135 NNS: Set alphabet8.frostfs -> 3ca64bf69030cd0dcc7063e97c27261dad325bcf NNS: Set alphabet9.frostfs -> 1bbae79f6916e95ce561a3a1f33add00d91032a5 NNS: Set alphabet10.frostfs -> 5eee589d49dd3d68018c5c892c85cff27d7a8b6f NNS: Set alphabet11.frostfs -> d1834a4bfe21d26fd4eed351d1ae42901bcc85d8 NNS: Set alphabet12.frostfs -> eb66d0946060462226af9ca9c70f38c124d3bd99 NNS: Set alphabet13.frostfs -> 317d2e3fe985bf046d4900c7e7f69285b19df9f5 NNS: Set alphabet14.frostfs -> e344b489a47bdff12ecdd95a9d31b4a9ce943fae NNS: Set alphabet15.frostfs -> c338cc2fc6b439701bd88885e1950cc04324e627 NNS: Set alphabet16.frostfs -> 3e3b1df674b301d24b33e78ea90aa0964427ae0d NNS: Set alphabet17.frostfs -> d99c3366b076b0a3ec0fb10bfcf011068022c524 NNS: Set alphabet18.frostfs -> 098aac0a8d8cc2832e1a6a456906113a614168f3 NNS: Set alphabet19.frostfs -> d83310a007eb961a3b9e91be0805c03def83b18b NNS: Set alphabet20.frostfs -> 3bb77cde3179bb0af5e15cca0120f960d55b814e NNS: Set alphabet21.frostfs -> bad99f4fbe234969a4c711e4c01d5e0865e7be1c NNS: Set balance.frostfs -> 2babaaa5fc045f99bf44bca903533f2adf85bca2 NNS: Set container.frostfs -> 665a2b762b8d88264fd2e94bf71f929dc3d24059 NNS: Set frostfsid.frostfs -> 58e2ca910614ee14246dc27fd93a50ec1064e7e9 NNS: Set netmap.frostfs -> 9f8a01506cdbf591610d4898ec62e2e7dd3da9e5 NNS: Set policy.frostfs -> 6c2ee05dc3397c661399f75a3c223b13a63584e3 NNS: Set proxy.frostfs -> bc9f23814e9956765ee2a9bace858e5151b91b9f NNS: Set group.frostfs -> 0217d9b42ab11a6862a0b7c274f72322bbe4591e30b04c22153ab3049ba1612858 Waiting for transactions to persist... --- PASS: TestInitialize/max_nodes (92.98s) === RUN TestInitialize/max_nodes/force-new-epoch Current epoch: 0, increase to 1. Waiting for transactions to persist... --- PASS: TestInitialize/max_nodes/force-new-epoch (18.48s) === RUN TestInitialize/max_nodes/set-config Waiting for transactions to persist... --- PASS: TestInitialize/max_nodes/set-config (17.18s) === RUN TestInitialize/max_nodes/set-policy Waiting for transactions to persist... --- PASS: TestInitialize/max_nodes/set-policy (17.17s) === RUN TestInitialize/max_nodes/remove-node Current epoch: 0, increase to 1. Waiting for transactions to persist... --- PASS: TestInitialize/max_nodes/remove-node (17.22s) === RUN TestInitialize/too_many_nodes --- PASS: TestInitialize/too_many_nodes (0.00s) PASS Process finished with the exit code 0 ```
fyrchik merged commit 36eab4059c into master 2024-07-01 06:56:05 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
4 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#1203
There is no content yet.