-
Notifications
You must be signed in to change notification settings - Fork 921
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
"ServerFaultCode: The operation is not supported on the object" #952
Comments
Hey Brad, I haven't used the vmug license before, I'll have to look into it. Can you check if your license has the vimapi feature enabled: % govc license.ls -json -feature vimapi | jq .[].EditionKey
"esx.enterprisePlus.cpuPackage" And share your edition keys if it doesn't (will help me track down this licence): % govc license.ls -json | jq .[].EditionKey
"eval"
"esx.enterprisePlus.cpuPackage"
"vc.standard.instance" |
Then again, if |
Yeah,
Maybe I need to add more VMUG licenses or something. But considering that I was able to set up an HA vCenter configuration, I'd be surprised if there was a license that allowed HA but did not also include API access. |
Looking at this list: https://www.vmug.com/Join/EVALExperience "VMware vSphere® ESXi Enterprise Plus with Operations Management™" should work if you assign it to your ESX hosts. Normally the "eval" license that is included in the default install allows API access (until the eval expires). I use this script to assign licenses: /~https://github.com/vmware/govmomi/blob/master/scripts/vcsa/README.md#licenses |
I had a giant reply written here with all my debugging steps, but then as I was reading through the HTTP requests & responses from the Whoops--- I had Sigh. Sorry. But a nicer error message would be nice, if such a thing is possible. But the API server doesn't give you much to work with:
|
If no username is provided, the govc client tries to acquire a local ticket. When invoked remotely, ESX returns an InvalidRequestFault (VC returns NotSupportedFault). So, rather than return an error here, fallthrough to Login() with the original User to to avoid what would be a confusing error message. Don't try AcquireLocalTicket at all against vCenter as it is unsupported. Fixes vmware#952
Argh, sorry Brad, this confusion is govc's fault. Fixed in #955 so the error message in this case will be:
|
If no username is provided, the govc client tries to acquire a local ticket. When invoked remotely, ESX returns an InvalidRequestFault (VC returns NotSupportedFault). So, rather than return an error here, fallthrough to Login() with the original User to to avoid what would be a confusing error message. Don't try AcquireLocalTicket at all against vCenter as it is unsupported. Fixes vmware#952
If no username is provided, the govc client tries to acquire a local ticket. When invoked remotely, ESX returns an InvalidRequestFault. So, rather than return an error here, fallthrough to Login() with the original User to to avoid what would be a confusing error message. Don't try AcquireLocalTicket at all against vCenter as it is unsupported. Fixes #952
I've used govc successfully in the past, and I have production jobs using it regularly, but today I'm trying to use govc with my homelab cluster, which it doesn't seem to like:
Does that mean my VMUG EVALExperience license for my 3-node vSphere + vCenter HA setup doesn't include API access?
If so, can we get a better error message in govc telling users what the actual problem is?
Or do I need to enable the API server in vCenter somewhere? I've only ever worked with vSphere clusters others have created before. This home one is the first I've put together, and perhaps I screwed it up.
Sorry for the noob questions.
Thanks!
The text was updated successfully, but these errors were encountered: