-
Notifications
You must be signed in to change notification settings - Fork 174
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
vic-machine: validation failed if dvSwitch exists in ESXi target #729
Comments
Sounds like we should detect if the ESX host is managed by a VC and exit 1 with a friendly error message, before the installer would even get to this point. |
This sounds good. Is there interface in govmomi? |
This can occur even if the ESX is not managed by VC - you can have residual config on the ESX in various scenarios. |
Already in the release notes, so removing the kind/note tag. |
@emlin. I don't believe this is still an issue. Let's close if not. |
@corrieb I didn't test it atm, but as comment above, this can occur even if there is left over in ESXi which ever is managed by VC. @andrewtchin did you ever touch this? |
I have not tested this |
root [ ~/vic/bin ]# ./vic-machine -target esxi-hp-08.rainpole.com -user root -passwd VMware123! -compute-resource /ha-datacenter/host/esxi-hp-08.rainpole.com/Resources -image-store esxi-hp-08-local -management-network "VM Network"
INFO[2016-05-19T11:49:38Z] ### Installing VCH ####
INFO[2016-05-19T11:49:38Z] Generating certificate/key pair - private key in ./docker-appliance-key.pem
INFO[2016-05-19T11:49:38Z] Validating supplied configuration
ERRO[2016-05-19T11:49:40Z] Unable to get network: SystemError
FATA[2016-05-19T11:49:40Z] Validating supplied configuration failed. Exiting...
[6:57]
In the hostd.log, I see the following:
[6:57]
2016-05-18T15:23:51.346Z error hostd[32EC4B70] [Originator@6876 sub=PropertyProvider opID=328016ee user=root] Unexpected fault reading property: vim.DistributedVirtualSwitch, GetNetworkResourcePool: N5Vmomi5Fault12NotSupported9ExceptionE(vmodl.fault.NotSupported)
2016-05-18T15:23:51.346Z error hostd[32EC4B70] [Originator@6876 sub=PropertyProvider opID=328016ee user=root] Unexpected fault reading property: vim.DistributedVirtualSwitch, GetRuntime: N5Vmomi5Fault12NotSupported9ExceptionE(vmodl.fault.NotSupported)
[7:00]
Could we get a better error message bubble up to vic-machine? Probably something along the lines of “VIC cannot use an ESXi host as a target when a DVS is present” or something to that effect
The text was updated successfully, but these errors were encountered: