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

Cosmetic - nicer error when all hosts not connected to DVS #1647

Open
cormachogan opened this issue Jul 25, 2016 · 3 comments
Open

Cosmetic - nicer error when all hosts not connected to DVS #1647

cormachogan opened this issue Jul 25, 2016 · 3 comments
Labels
area/ux component/install kind/debt Problems that increase the cost of other work severity/4-minor Low usability or functional impact. Often has an easy workaround.

Comments

@cormachogan
Copy link

VIC Version:

0.1 / master / 3190

This is simply a request to see if we could make a nicer error/warning when some of the hosts in the cluster are not attached to the DVS, and thus do not have access to the bridge network (this is a deployment to a vCenter obviously)

Here is the error:

root@photon-NaTv5i8IA [ /workspace/vic ]# ./vic-machine-linux create --bridge-network Bridge-DPG --image-datastore vsanDatastore  -t 'administrator@vsphere.local:VMware123!@10.27.51.103' --compute-resource Mgmt
INFO[2016-07-25T09:37:17Z] ### Installing VCH ####
INFO[2016-07-25T09:37:17Z] Generating certificate/key pair - private key in ./virtual-container-host-key.pem
INFO[2016-07-25T09:37:18Z] Validating supplied configuration
INFO[2016-07-25T09:37:18Z] Firewall status: ENABLED on "/CNA-DC/host/Mgmt/10.27.51.10"
INFO[2016-07-25T09:37:18Z] Firewall status: ENABLED on "/CNA-DC/host/Mgmt/10.27.51.8"
INFO[2016-07-25T09:37:18Z] Firewall status: ENABLED on "/CNA-DC/host/Mgmt/10.27.51.9"
INFO[2016-07-25T09:37:18Z] Firewall configuration OK on hosts:
INFO[2016-07-25T09:37:18Z]   "/CNA-DC/host/Mgmt/10.27.51.10"
INFO[2016-07-25T09:37:18Z]   "/CNA-DC/host/Mgmt/10.27.51.8"
INFO[2016-07-25T09:37:18Z]   "/CNA-DC/host/Mgmt/10.27.51.9"
INFO[2016-07-25T09:37:18Z] License check OK on hosts:
INFO[2016-07-25T09:37:18Z]   "/CNA-DC/host/Mgmt/10.27.51.10"
INFO[2016-07-25T09:37:18Z]   "/CNA-DC/host/Mgmt/10.27.51.8"
INFO[2016-07-25T09:37:18Z]   "/CNA-DC/host/Mgmt/10.27.51.9"
INFO[2016-07-25T09:37:18Z] DRS check OK on:
INFO[2016-07-25T09:37:18Z]   "/CNA-DC/host/Mgmt/Resources"
INFO[2016-07-25T09:37:18Z] Creating virtual app "virtual-container-host"
INFO[2016-07-25T09:37:18Z] Creating appliance on target
INFO[2016-07-25T09:37:18Z] Network role "external" is sharing NIC with "management"
INFO[2016-07-25T09:37:18Z] Network role "client" is sharing NIC with "management"
ERRO[2016-07-25T09:37:20Z] Operation failed: A specified parameter was not correct: spec.deviceChange.device.port.switchUuid - (&{{} %!!(MISSING)s(*types.InvalidArgument=&{{{<nil> [{{} com.vmware.vim.vpxd.dvs.nonHostMember.label [{{} host 10.27.51.8} {{} dvs DSwitch}] Host 10.27.51.8 is not a member of VDS DSwitch}]}} spec.deviceChange.device.port.switchUuid}) A specified parameter was not correct: spec.deviceChange.device.port.switchUuid})
ERRO[2016-07-25T09:37:20Z] Unable to create appliance VM: Operation failed: A specified parameter was not correct: spec.deviceChange.device.port.switchUuid - (&{{} %!s(*types.InvalidArgument=&{{{<nil> [{{} com.vmware.vim.vpxd.dvs.nonHostMember.label [{{} host 10.27.51.8} {{} dvs DSwitch}] Host 10.27.51.8 is not a member of VDS DSwitch}]}} spec.deviceChange.device.port.switchUuid}) A specified parameter was not correct: spec.deviceChange.device.port.switchUuid})
INFO[2016-07-25T09:37:20Z] Collecting a0522635-224e-4171-92b1-7edaf726b39f vpxd.log
ERRO[2016-07-25T09:37:21Z] --------------------
ERRO[2016-07-25T09:37:21Z] vic-machine-linux failed: Creating the appliance failed with Operation failed: A specified parameter was not correct: spec.deviceChange.device.port.switchUuid - (&{{} %!s(*types.InvalidArgument=&{{{<nil> [{{} com.vmware.vim.vpxd.dvs.nonHostMember.label [{{} host 10.27.51.8} {{} dvs DSwitch}] Host 10.27.51.8 is not a member of VDS DSwitch}]}} spec.deviceChange.device.port.switchUuid}) A specified parameter was not correct: spec.deviceChange.device.port.switchUuid}). Exiting...

root@photon-NaTv5i8IA [ /workspace/vic ]#

Expected behavior:

Could we product a more human readable error? Even though all the information is in there, the output is not pretty.

Actual behavior:

As above.

@hickeng
Copy link
Member

hickeng commented Aug 24, 2016

I'm seeing the same issue for dVS not found:

ERRO[2016-08-24T21:03:06Z] --------------------
ERRO[2016-08-24T21:03:06Z] network 'VMExternal' not found
ERRO[2016-08-24T21:03:06Z] Unable to check hosts in vDS for "VMExternal": ServerFaultCode:
Error processing attribute "type" with value ""

while parsing MoRef for ManagedObject of type vmodl.ManagedObject
at line 2, column 259

while parsing property "obj" of static type ManagedObject

while parsing serialized DataObject of type vmodl.query.PropertyCollector.ObjectSpec
at line 2, column 248

while parsing property "objectSet" of static type ArrayOfObjectSpec

while parsing serialized DataObject of type vmodl.query.PropertyCollector.FilterSpec
at line 2, column 161

while parsing call information for method RetrieveProperties
at line 2, column 66

while parsing SOAP body
at line 2, column 60

while parsing SOAP envelope
at line 2, column 0

while parsing HTTP request for method retrieveContents
on object of type vmodl.query.PropertyCollector
at line 1, column 0
ERRO[2016-08-24T21:03:06Z] Create cannot continue: configuration validation failed
ERRO[2016-08-24T21:03:06Z] --------------------
ERRO[2016-08-24T21:03:06Z] vic-machine-linux failed: validation of configuration failed

@mdubya66 mdubya66 removed this from the VIC GA Release milestone Sep 20, 2016
@mdubya66 mdubya66 added the impact/doc/note Requires creation of or changes to an official release note label Sep 20, 2016
@mdubya66
Copy link
Contributor

Moving to Icebox per 9/20 Triage. Needs release note

@stuclem
Copy link
Contributor

stuclem commented Nov 7, 2016

Already in the release notes, so removing the kind/note tag.

@cormachogan cormachogan removed the impact/doc/note Requires creation of or changes to an official release note label Nov 7, 2016
@hmahmood hmahmood added the kind/debt Problems that increase the cost of other work label Apr 12, 2017
@zjs zjs added severity/4-minor Low usability or functional impact. Often has an easy workaround. area/ux component/install and removed priority/p4 labels Mar 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ux component/install kind/debt Problems that increase the cost of other work severity/4-minor Low usability or functional impact. Often has an easy workaround.
Projects
None yet
Development

No branches or pull requests

7 participants