Closed ilium007 closed 4 years ago
When I ran without "preview" it worked
Which release do you see this in 3.23, 3.24, ...? The issue only happens with preview, evidently.
Apologies.
V3.24 July 2019
Thanks, that's important to know! To be clear you have defined a single VDI backup and no VM backups, correct?
No, it was a VM backup (see above commands)
This is so bizarre. I can duplicate the error on my CH 8.0 test pool, which finally got connected to external backup storage. This may be a limitation of the API call. Note that if you change the name-label to contain instead of 2019 either 2016 or 2008, it still fails, but works if you use 2004 or 2007! There must be some reference to an OS type that's getting in confused is all I can think of for now. Check out: https://docs.citrix.com/en-us/legacy-archive/downloads/xs-sdk-guide-7-2.pdf and look for a comment regarding the call session.xenapi.VM.get_by_name_label and it not necessarily returning a unique reference! Was your VM by chance one you duplicated from that other VM in that pool?
No, the VM was built - not duplicated. One is a 2019 Windows Server, the other is a Windows 10 machine.
Try changing the name_label of "Windows Server 2019 (64-bit)" slightly and I think you can get it to work. IMO, this is a Citrix issue.
The issue is that the opaque references are returned for all templates as well as VMs, hence you should not use the name of a template for a VM! This is what I would consider a restriction, and not a bug. Changing the name slightly will avoid this error. The same limitation exists in earlier versions of this code and using the older API calls provided with XenServer 7.X.
I will make sure this goes into the documentation. To see all template names, you can expand the list in XenCenter under the "View" menu at the top to show "Citrix Hypervisor Templates" so that you can avoid using them.
I am therefore closing this issue.
Getting the " *** ERROR: duplicate VM name found" when running script. There is only 1 VM by the name "prd_win10_01".