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

Improve VCH vSphere API target check #3479

Open
andrewtchin opened this issue Dec 9, 2016 · 5 comments
Open

Improve VCH vSphere API target check #3479

andrewtchin opened this issue Dec 9, 2016 · 5 comments

Comments

@andrewtchin
Copy link
Contributor

Add a service on the VCH to check VCH-vSphere connection
Set the status check in vic-init
Discuss more with Emma and George

@vburenin
Copy link
Contributor

vburenin commented Jan 3, 2017

User statement: The reason we need this feature is actually to insure PortLayer starts without problems. One of the most obscure issues was an access to vSphere API that could fail with very unclear description. However, we can get this feature a little further by having a separate channel to return any error that may happen on ApiCheck, PortLayer, docker-persona and vic-admin sides to vic-machine.

Details: For this purpose one of the components that starts first(vic-admin?) should open a temporary backchannel(tcp-connection) that will send important messages from VCH to vic-machine to keep user informed what is going on at that moment. Channel should be authenticated using some randomly generated credentials during VCH deployment.

Adding a separate service just for the purpose of diagnostics looks like an overkill that may significantly increase the size of the produced ISO image, increase overall complexity and make product less stable.

Acceptance criteria:

  1. vic-admin provides error messaging service
  2. test is provided that exercises this feature
  3. design doc is produced detailing the implementation

@emlin
Copy link
Contributor

emlin commented Jan 30, 2017

should open a temporary backchannel(tcp-connection) that will send important messages from VCH to vic-machine

Currently we're using VM guestinfo for this communication

@emlin
Copy link
Contributor

emlin commented Jan 30, 2017

Besides of vSphere API status check, we also need to check if VCH services are successfully initialized. And then add mark into guestinfo, which will be used by vic-machine create/ls/inspect for status check, to provide more valuable error message

@emlin
Copy link
Contributor

emlin commented Feb 1, 2017

#1160 should be considered in this issue as well

@emlin
Copy link
Contributor

emlin commented Feb 1, 2017

Copied from #1160, which is closed for dependency to this issue

If the VCH appliance cannot connect to the target, but vic-machine can, then we need a useful error. It should direct the user at the --management-network option as it's likely that either:
a. the VCH cannot get an IP address on the management network.
b. the VCH does not have a route to the specified target.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants