Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal consensus mode of Inner Ring with Sidechain auto-deploy #282

Merged
merged 2 commits into from
Dec 22, 2023

Conversation

cthulhu-rider
Copy link
Contributor

@cthulhu-rider cthulhu-rider commented Aug 28, 2023

pls have a look and advisable pull+try

i'll write commit message finally

@vvarg229
Copy link
Collaborator

Couldn't find env file: /home/runner/work/neofs-node/neofs-node/neofs-dev-env/services/ir/.ir.env
51eb2f8a8b0e1512ad56694933618460e42c6c9c60140df8de0f66b17fe14a26
Waiting for transfer to settle
fa3fd18095dcd6a08c8cedb21e62fba324b3aee25a7046bf719d1252cd46cde8
Contract: 47b8f6a809c7fe27f2f7e895231a1e437420c[64](https://github.com/vvarg229/neofs-node/actions/runs/7252535413/job/19757223163?pr=50#step:23:65)2
Waiting for deployment to happen
Running bin/deposit.sh
df3ae089fd09aeb2c798c6e9b737009e2388baa8923cd0ea90f169beb921475d
Transfer GAS to wallet ./services/storage/wallet01.json
Error: can't create N3 client: failed to get network magic: Post "http://ir01.neofs.devenv:30333": dial tcp 192.1[68](https://github.com/vvarg229/neofs-node/actions/runs/7252535413/job/19757223163?pr=50#step:23:69).130.61:30333: connect: no route to host
: Failed to transfer GAS to alphabet wallets
make[1]: *** [Makefile:117: up/bootstrap] Error 1
make[1]: Leaving directory '/home/runner/work/neofs-node/neofs-node/neofs-dev-env'
Test environment setup failed. Please check the error messages above.
make: *** [Makefile:252: prepare-test-env] Error 1

https://github.com/vvarg229/neofs-node/actions/runs/7252535413/job/19757223163?pr=50

@cthulhu-rider cthulhu-rider force-pushed the feature/internal-consensus-with-autodeploy branch from f22a3bd to 267fe52 Compare December 19, 2023 07:30
Copy link
Member

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks legit, can be 0.39.1 now.


# Get the line numbers of "Addresses:"
addresses_lines=$(grep -n "Addresses:" "$MORPH_CHAIN_CONFIG" | cut -d ':' -f 1)
# FIXME: grep by 'listen:' is unstable, jump to exact YAML fields
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likely can be fixed with some jq incantation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you mind fixing this separately? the approach was the same before

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likely can be fixed with some jq incantation.

The jq is sometimes not installed on the custom runners.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you mind fixing this separately

Issue?

The jq is sometimes not installed

We already use it in scripts, so I doubt dev-env would work without it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vvarg229
vvarg229 previously approved these changes Dec 20, 2023
`[email protected]` release gave us the opportunity to deploy/update the
network automatically using IR. Moreover, starting from `@v0.36`, IR
can be launched in internal consensus mode to avoid maintaining a
separate NeoFS chain (IR becomes Neo blockchain itself). Using these
features in DevEnv will significantly simplify its architecture.

Significant changes check list:
 - upgrade all `neofs-node` apps to `@v0.39.1` (currently the latest)
 - configure `ir` service to be run in the local consensus mode
 - purge no longer needed `morph_chain` service
 - configure `ir` service to perform network auto-deployment
 - make `ir` service a bootstrap one to keep previous run flow
 - do not exec no longer needed `neofs-adm morph init` command (IR does
   all the stuff)
 - purge UN/LOCODE database that was embedded into IR in `@v0.39`
 - add healthcheck of the (main) `chain` service since it should be
   ready to accept deployed NeoFS contract
 - store NeoFS chain DB in the persistent volume so as not to deploy the
   network from scratch every time (the volume can be removed to reset)

Closes #252.
Closes #295.

Signed-off-by: Leonard Lyubich <[email protected]>
Signed-off-by: Leonard Lyubich <[email protected]>
@cthulhu-rider cthulhu-rider force-pushed the feature/internal-consensus-with-autodeploy branch from 78d41c9 to f54fdc7 Compare December 20, 2023 10:37
@roman-khimov roman-khimov merged commit 95acc4b into master Dec 22, 2023
1 check passed
@roman-khimov roman-khimov deleted the feature/internal-consensus-with-autodeploy branch December 22, 2023 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants