Hyper-V - MicroStack not usable after VM restart
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MicroStack |
New
|
Undecided
|
Unassigned |
Bug Description
1. MicroStack is installed and initialized using Windows steps from https:/
After initial setup console is accessible and admin user can login
2. VM is restarted or suspended
After VM resume external IP of the VM has been changed.
3. As a consequence MicroStack is no longer functional.
Login returns "504 Gateway Time-out".
In Journal log we can see timeouts as well.
2022-11-15 15:47:46.292 222279 ERROR neutron.
Here we can see original IP address logged 172.31.138.248.
Where command multipass info microstack-vm returns
Name: microstack-vm
State: Running
IPv4: 172.29.129.178
Release: Ubuntu 22.04.1 LTS
Image hash: 1d24e397489d (Ubuntu 22.04 LTS)
CPU(s): 8
Load: 5.86 4.73 2.02
Disk usage: 2.8GiB out of 96.7GiB
Memory usage: 3.1GiB out of 23.5GiB
Mounts: --
This is really bad CX.
I would expect that:
1. No IP address is used to connect to internal services. Couldn't VM machine name be used? Or an arbitrary name that resolves to the current IP?
2. If an external IP address is expected to be consumed there should be a script that would rectify the configuration so after restart it would be a matter of running a script.
Is there a plan to better support Hyper-V? Maybe better documentation at least so it can be made to work after restarts.
Unfortunately, this isn't specific to the Hyper-V solution. It's basically whenever the IP address of the instance changes. Your suggestion is a good one to have a script which can be used to update the IP address. These are some things we will take into consideration for the sunbeam edition of MicroStack.
In the meantime, you can provide a static IP address to the hyper-v instance to ensure that the IP address is the same each time.