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

fix(multi-cluster): fix 'solo node setup' command, failing when running multiple clusters #1420

Closed
instamenta opened this issue Feb 17, 2025 · 0 comments · Fixed by #1421
Closed
Assignees
Labels
Bug A error that causes the feature to behave differently than what was expected based on design docs

Comments

@instamenta
Copy link
Contributor

instamenta commented Feb 17, 2025

Describe

Currently the node setup command fails when running multi-cluster setup

Error Logs

******************************* Solo *********************************************
Version                     : 0.34.0
Kubernetes Context  : context
Kubernetes Cluster  : cluster
Current Command             : node setup --deployment staging --node-aliases node1,node2,node3,node4 --quiet-mode --dev
**********************************************************************************
✔ Initialize [1s]
  ✔ Acquire lease - lease acquired successfully, attempt: 1/10 [1s]
✔ Validate nodes states
  ✔ Validating state for node node1 - valid state: requested
  ✔ Validating state for node node2 - valid state: requested
  ✔ Validating state for node node3 - valid state: requested
  ✔ Validating state for node node4 - valid state: requested
✔ Identify network pods [0.3s]
  ✔ Check network pod: node1 [0.2s]
  ✔ Check network pod: node2 [0.2s]
  ✔ Check network pod: node3 [0.2s]
  ✔ Check network pod: node4 [0.3s]
❯ Fetch platform software into network nodes
  ✖ failed to extract platform code in this pod 'network-node1-0': failed to copy files to pod 'network-node1-0': Invalid pod network-node1-0
  ✖ Update node: node2 [ platformVersion = v0.58.5 ]
  ✖ Update node: node3 [ platformVersion = v0.58.5 ]
  ✖ Update node: node4 [ platformVersion = v0.58.5 ]
◼ Setup network nodes
◼ Change node state to setup in remote config
✔ Initialize [1s]
  ✔ Acquire lease - lease acquired successfully, attempt: 1/10 [1s]
✔ Validate nodes states
  ✔ Validating state for node node1 - valid state: requested
  ✔ Validating state for node node2 - valid state: requested
  ✔ Validating state for node node3 - valid state: requested
  ✔ Validating state for node node4 - valid state: requested
✔ Identify network pods [0.3s]
  ✔ Check network pod: node1 [0.2s]
  ✔ Check network pod: node2 [0.2s]
  ✔ Check network pod: node3 [0.2s]
  ✔ Check network pod: node4 [0.3s]
❯ Fetch platform software into network nodes
  ✖ failed to extract platform code in this pod 'network-node1-0': failed to copy files to pod 'network-node1-0': Invalid pod network-node1-0
  ✖ failed to extract platform code in this pod 'network-node2-0': failed to copy files to pod 'network-node2-0': Invalid pod network-node2-0
  ✖ failed to extract platform code in this pod 'network-node3-0': failed to copy files to pod 'network-node3-0': Invalid pod network-node3-0
  ✖ Update node: node4 [ platformVersion = v0.58.5 ]
◼ Setup network nodes
◼ Change node state to setup in remote config
*********************************** ERROR *****************************************
Error in setting up nodes: failed to extract platform code in this pod 'network-node1-0': failed to copy files to pod 'network-node1-0': Invalid pod network-node1-0
SoloError: Error in setting up nodes: failed to extract platform code in this pod 'network-node1-0': failed to copy files to pod 'network-node1-0': Invalid pod network-node1-0
    at file:///Users/nathan.klick/Git/hashgraph/solo/dist/src/commands/base.js:240:23
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async NodeCommandHandlers.setup (file:///Users/nathan.klick/Git/hashgraph/solo/dist/src/commands/node/handlers.js:584:9)
Caused by: SoloError: failed to extract platform code in this pod 'network-node1-0': failed to copy files to pod 'network-node1-0': Invalid pod network-node1-0
    at PlatformInstaller.fetchPlatform (file:///Users/nathan.klick/Git/hashgraph/solo/dist/src/core/platform_installer.js:101:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async Task.task [as taskFn] (file:///Users/nathan.klick/Git/hashgraph/solo/dist/src/commands/node/tasks.js:213:35)
    at async Task.run (file:///Users/nathan.klick/Git/hashgraph/solo/node_modules/listr2/dist/index.js:2058:11)
Caused by: SoloError: failed to copy files to pod 'network-node1-0': Invalid pod network-node1-0
    at PlatformInstaller.copyFiles (file:///Users/nathan.klick/Git/hashgraph/solo/dist/src/core/platform_installer.js:134:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async PlatformInstaller.fetchPlatform (file:///Users/nathan.klick/Git/hashgraph/solo/dist/src/core/platform_installer.js:88:13)
    at async Task.task [as taskFn] (file:///Users/nathan.klick/Git/hashgraph/solo/dist/src/commands/node/tasks.js:213:35)
    at async Task.run (file:///Users/nathan.klick/Git/hashgraph/solo/node_modules/listr2/dist/index.js:2058:11)
Caused by: IllegalArgumentError: Invalid pod network-node1-0
@instamenta instamenta added the Bug A error that causes the feature to behave differently than what was expected based on design docs label Feb 17, 2025
@instamenta instamenta self-assigned this Feb 17, 2025
@instamenta instamenta added this to Solo Feb 17, 2025
@github-project-automation github-project-automation bot moved this to 🆕 New in Solo Feb 17, 2025
@instamenta instamenta moved this from 🆕 New to 🏗 In progress in Solo Feb 17, 2025
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in Solo Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A error that causes the feature to behave differently than what was expected based on design docs
Projects
Status: ✅ Done
1 participant