-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Cannot restore VM snapshot on XenServer #8123
Comments
thanks @MartinEmrich can you share the results of mysql queries ?
|
The first:
(Though I don't use Ubuntu 20.04) The second:
(No VMWare here either) Hypervisor is XCP-ng 7.5, but installing and running Debian 12 worked flawlessly. (We plan to upgrade to XCP-ng latest, but no timeframe yet) |
@MartinEmrich @weizhouapache @AlexanderKgr I investigated this and found that the error is because ACS Xenserver plugin is not able to find the stopped VM as it has been destroyed on the hypervisor (VM disks are intact but just the VM reference is removed on the hypervisor side). I've drafted PR #9175 which will change this behaviour. This would need some tests or maybe a discussion if this behavioural change (to not remove VM reference from the hypervisor when it is stopped by ACS) should be guarded with a global config. With changes I was successfully able revert a VM snapshot |
Though I reported it, I more or less noticed it by accident. We normally do not use Snapshots at all. And as the hardware is showing it's age, the whole cluster here now has a "do not touch" aura, and for various reasons beyond my control will not be replaced. So I most probably will never see ACS 4.19 in action, so I cannot give feedback on this issue. |
@shwstppr i have found a temporary fix for this issue. Fixes the error. Your approach - VMs won't be destroyed on shutdown - will fix many issues. One big is that it will be possible to use xen orchestra backup system because vm will be there and shutdown. Backup on xen orchestra works with uuid of vm. Everytime cloudstack boots a vm it has a new uuid so every time it needs to be adjusted with the new. I am capable of test any new behavior before fully releasing publicly Thanks in advance |
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
Single Host Pool with XCP-ng 7.5
OS / ENVIRONMENT
Management Server: CentOS 7
SUMMARY
Web UI presents this message when trying to revert a snapshot:
The message is IMHO wrong, the VM with Debian 12 worked fine before.
STEPS TO REPRODUCE
Import Debian 12 netinst ISO image
Create VM from it (Type "Debian GNU/Linux 12 (64 Bit)")
Take a VM Snapshot (no Quiesce, no RAM) (works fine)
Shutdown VM
Restore snapshot
EXPECTED RESULTS
I expected it to restore all Volumes to the snapshot state.
ACTUAL RESULTS
Above error message popped up shortly after trying to restore the snapshot.
Looks similar to #6941, but I was asked to create a new issue.
The text was updated successfully, but these errors were encountered: