ava-labs / avalanchego

Go implementation of an Avalanche node.
https://avax.network
BSD 3-Clause "New" or "Revised" License
2.11k stars 662 forks source link

admin.loadVMs should reload existing VMs if version is changed #1030

Open Nuttymoon opened 2 years ago

Nuttymoon commented 2 years ago

Describe the bug After upgrading a VM to a newer version, the API call admin.loadVMs do not detect the change, leaving the VM in the old version.

To Reproduce

Expected behavior To minimize node downtime, admin.loadVMs should be able to detect a version change and reload the VMs that have indeed changed.

Screenshots (I am using symlinks in the plugins directory)

Operating System Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-104-generic x86_64)

By submitting this issue I agree to the Terms and Conditions of the Developer Accelerator Program.

ceyonur commented 2 years ago

Thank you for reporting this. We will look into this.

StephenButtolph commented 1 year ago

I really don't consider this a bug... It may be useful to add... but I think that this would result in a lot of confusion if a VM is currently being used, but is no longer the same version... We could shutdown the blockchain and restart it with the new VM version... but I feel like at that point we should just be restarting the node.

github-actions[bot] commented 1 year ago

This issue has become stale because it has been open 60 days with no activity. Adding the lifecycle/frozen label will cause this issue to ignore lifecycle events.