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

Bootnode container unable to launch _For GoQuorum:_ #245

Open
ravinayag opened this issue Sep 28, 2024 · 1 comment
Open

Bootnode container unable to launch _For GoQuorum:_ #245

ravinayag opened this issue Sep 28, 2024 · 1 comment

Comments

@ravinayag
Copy link

I was following goquorum method to launch the network, while doing bootnode1 was not able to launch its init container and below ref. logs.
Pod Status :

quorum        besu-node-bootnode-1-0                                   0/1     Init:0/1    0          4m8s
quorum        besu-node-bootnode-1-pre-install-hook-vbhbn              0/1     Completed   0          4m17s

Configmap :

NAME                                                           DATA   AGE
besu-bootnodes                                                 2      8m59s
besu-node-bootnode-1-address                                   1      8m59s
besu-node-bootnode-1-besu-config                               1      8m55s
goquorum-genesis                                               1      24h
goquorum-node-validator-1-address                              1      24h
goquorum-node-validator-2-address                              1      24h
goquorum-node-validator-3-address                              1      24h
goquorum-node-validator-4-address                              1      24h
goquorum-peers                                                 1      24h

Pod event logs :

  Warning  FailedMount       92s (x11 over 7m44s)  kubelet            MountVolume.SetUp failed for volume "genesis" : configmap "besu-genesis" not found
  Warning  FailedMount       92s (x11 over 7m44s)  kubelet            MountVolume.SetUp failed for volume "static-nodes" : configmap "besu-peers" not found

Expected behaviour :
the container should ref. the respective configmap goquorum-genesis and goquorum-peers to mount.

Hence update the helm chart and Readme file, Since this step is missing under For GoQuorum section

@ravinayag
Copy link
Author

Further deep i figured out the issue, as i was using charts/besu-node instead of charts/goquorum-node. But still there is some error on key generation.

Warning  FailedMount  14s (x6 over 29s)  kubelet            MountVolume.SetUp failed for volume "quorum-keys" : secret "goquorum-node-bootnode-1-keys" not found

Configmap & Secret :

get secrets,cm -n quorum | grep goquorum
secret/goquorum-node-validator-1-keys                                      Opaque               8      2m18s
secret/goquorum-node-validator-2-keys                                      Opaque               8      2m18s
secret/goquorum-node-validator-3-keys                                      Opaque               8      2m18s
secret/goquorum-node-validator-4-keys                                      Opaque               8      2m18s
configmap/goquorum-genesis                                               1      2m18s
configmap/goquorum-node-bootnode-1-address                               1      60s
configmap/goquorum-node-validator-1-address                              1      2m18s
configmap/goquorum-node-validator-2-address                              1      2m18s
configmap/goquorum-node-validator-3-address                              1      2m18s
configmap/goquorum-node-validator-4-address                              1      2m18s
configmap/goquorum-peers                                                 1      2m17s

Pods :

goquorum-genesis-init-zdpm5                              0/1     Completed           0          7m22s
goquorum-node-bootnode-1-0                               0/1     ContainerCreating   0          3m5s

Looks the preinstall not launched by helm install bootnode1 ........, hence i tried manually to launch the pre-install job. and the console output below.

logs -n quorum pod/goquorum-node-bootnode-1-pre-install-hook-5stm9
goquorum-node-bootnode-1 Pre Install hook ...
goquorum-node-bootnode-1 hook ...
Nodekey generation ...
Creating goquorum-node-bootnode-1 secrets in k8s ...
Creating new goquorum-node-bootnode-1
error: key names or file paths cannot contain '='
{
    "apiVersion": "v1",
    "data": {
        "static-nodes.json": "[\n  
        ----Snipped-------
    },
    "kind": "ConfigMap",
    "metadata": {
        "creationTimestamp": "2024-09-30T07:51:35Z",
        "name": "goquorum-peers",
        "namespace": "quorum",
        "resourceVersion": "808868",
        "uid": "0e714b69-db20-4814-8498-126b1baaeac2"
    }
}
updating goquorum-peers...
configmap/goquorum-peers replaced
error: failed to create configmap: configmaps "goquorum-node-bootnode-1-address" already exists
Quorum Completed
Tessera Completed


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

No branches or pull requests

1 participant