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

setting back is-a-template=false on a VM causes inconsistent state #5635

Open
ydirson opened this issue May 16, 2024 · 0 comments
Open

setting back is-a-template=false on a VM causes inconsistent state #5635

ydirson opened this issue May 16, 2024 · 0 comments

Comments

@ydirson
Copy link
Contributor

ydirson commented May 16, 2024

Probably this should be refused, maybe that param ought to be set to RO once set?

[11:01 xcpng83-bzkcpvhy xcp]# xe vm-import   url=http://pxe/images/alpine-uefi-minimal-3.12.0.xva sr-uuid=3c1b62e9-af3f-62e1-b9b9-cad7e56505ed 
41346790-5f5f-155a-61a8-1a5d15c227da
[11:01 xcpng83-bzkcpvhy xcp]# xe vm-param-get param-name=is-a-template uuid=41346790-5f5f-155a-61a8-1a5d15c227da 
false
[11:02 xcpng83-bzkcpvhy xcp]# xe vm-param-set is-a-template=true uuid=41346790-5f5f-155a-61a8-1a5d15c227da 
[11:02 xcpng83-bzkcpvhy xcp]# xe vm-param-get param-name=is-a-template uuid=41346790-5f5f-155a-61a8-1a5d15c227da 
true
[11:03 xcpng83-bzkcpvhy xcp]# xe vm-param-set is-a-template=false uuid=41346790-5f5f-155a-61a8-1a5d15c227da 
[11:03 xcpng83-bzkcpvhy xcp]# xe vm-param-get param-name=is-a-template uuid=41346790-5f5f-155a-61a8-1a5d15c227da 
false
[11:03 xcpng83-bzkcpvhy xcp]# xe vm-param-set is-a-template=true uuid=41346790-5f5f-155a-61a8-1a5d15c227da 
You gave an invalid object reference. The object may have recently been deleted. The class parameter gives the type of reference given, and the handle parameter echoes the bad value given.
class: VM_metrics
handle: OpaqueRef:NULL
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