aptos-labs / aptos-core

Aptos is a layer 1 blockchain built to support the widespread use of blockchain through better technology and user experience.
https://aptosfoundation.org
Other
6.07k stars 3.61k forks source link

[Bug] use pangu to create local net with k8s #13844

Closed KunPengRen closed 1 day ago

KunPengRen commented 2 months ago

🐛 Bug

I am trying to run a multiple nodes local network of aptos using the pangu test suit under the aptos-core repos, it seems the script is outdated the docker image. When I run the command

pangu testnet create --num-of-validators 2 --framework-path ../aptos-core/head.mrb --aptos-cli-path ~/.local/bin/aptos --workspace ../test-net

the node crash with the below errors

kubectl logs nodebp-node-1-validator-0 -n pangu-kunpeng-skn3zm83
thread 'main' panicked at 'Failed to load the node config file! Given file path: "/opt/aptos/etc/validator.yaml". Error: Unexpected("Failed to BCS deserialize the genesis file: \"/opt/aptos/genesis/genesis.blob\". Error: Custom(\"invalid value: integer `1`, expected variant index 0 <= i < 1\")")', aptos-node/src/lib.rs:145:17
stack backtrace:
   0: rust_begin_unwind
             at ./rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:578:5
   1: core::panicking::panic_fmt
             at ./rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/panicking.rs:67:14
   2: aptos_node::AptosNodeArgs::run::{{closure}}
             at ./aptos/aptos-node/src/lib.rs:145:17
   3: core::result::Result<T,E>::unwrap_or_else
             at ./rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/result.rs:1464:23
   4: aptos_node::AptosNodeArgs::run
             at ./aptos/aptos-node/src/lib.rs:144:26
   5: aptos_node::main
             at ./aptos/aptos-node/src/main.rs:19:5
   6: core::ops::function::FnOnce::call_once
             at ./rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

System information

ubuntu Kind version of k8s

Additional context

And any other easy ways to run a multiple nodes local net on a cluster.

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open 45 days with no activity. Remove the stale label or comment - otherwise this will be closed in 15 days.