Description of problem:
if you have a virtualcenter where you classify your datacenter into folders, you are unable to access datastore, returning a 404 not found.
Mi list of folder is like:
Index of datacenters
virsh -d5 -c vpx://vcenterIP/MYDC1/CLUSTER/esx001?no_verify=1 dumpxml virtualmachine
error: internal error HTTP response code 404 for download from 'https://vcenterIP:443/folder/virtualmachine/virtualmachine.vmx?dcPath=MYDC1&dsName=vmstorage'
dcPath should be "OWN/MYDC1"
Version-Release number of selected component (if applicable):
create a folder in your virtualcenter and then move your datacenter inside, you will recieve a 404 when requesting a "dumpxml" command.
please, see patch attached for a possible solution.
Hope that helps.
Thanks for the bugreport and the patch; I don't see it attached, though?
Created attachment 519578 [details]
patch for dcPath
You may get faster review if you also send your patch upstream, to email@example.com
The common vpx:// URI format is like this
The actual problem here is that the driver doesn't handle folders yet. In your case the correct URI should look like this once the driver can handle folders
and OWN/MYDC1 is the datacenter part. As you can probably create folders (and even nest them) on all levels of the datacenter/cluster/server path the driver needs to deal with complexer paths.
Your patch works around this by adding a query parameter. That's fine for your special case. But the general solution will be to make the URI path handling aware of folders.
I'll have a look at that.
I posted a patch to the mailing list that allows you to specify folders in the path of the connection URI as suggested:
While implementing this I found a bug in the driver and fixed it. This patch is a prerequisite for the first one:
ok, thank you. I'will try it!
Juan Carlos Moreno
That patch was pushed upstream:
Author: Matthias Bolte <firstname.lastname@example.org>
Date: Tue Nov 1 17:12:37 2011 +0100
esx: Support folders in the path of vpx:// connection URIs