vSphere Integrated Containers VCH is not recognized as a VCH
book
Article ID: 340351
calendar_today
Updated On:
Products
VMware vSphere ESXi
Issue/Introduction
Symptoms:
From the CLI, running the vic-machine ls command does not list VCH VM in the output:
./vic-machine ls --target vcsa.vsphere.local --user [email protected] --thumbprint F6:B4:06:A4:B5:01:5E:31:66:18:E2:E4:3B:B5:6F:28:51:20:E3:3B
Aug 17 2017 08:14:56.820Z INFO vSphere password for [email protected]: Aug 17 2017 08:15:00.856Z INFO ### Listing VCHs #### Aug 17 2017 08:15:01.158Z INFO Validating target
ID PATH NAME VERSION UPGRADE STATUS
From the CLI, running the vic-machine debug command does not recognize VCH as a VCH:
Aug 17 2017 08:17:09.460Z INFO vSphere password for [email protected]: Aug 17 2017 08:17:13.737Z INFO ### Configuring VCH for debug #### Aug 17 2017 08:17:13.959Z INFO Validating target Aug 17 2017 08:17:14.053Z ERROR Not a VCH Aug 17 2017 08:17:14.053Z ERROR Failed to get Virtual Container Host vch-01 Aug 17 2017 08:17:14.053Z ERROR Not a VCH Aug 17 2017 08:17:14.053Z ERROR -------------------- Aug 17 2017 08:17:14.053Z ERROR vic-machine debug failed: debug failed
The docker daemon is not running when you try to execute a docker command:
docker -H vch-01.vsphere.local:2376 --tls info Cannot connect to the Docker daemon at tcp://vch-01.vsphere.local:2376. Is the docker daemon running?
The VM's /vmfs/volumes/datastore/virtual machine/vwmare.log file reports an issue with docker-personality:
Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.
Environment
VMware vSphere Integrated Containers 1.0.x
Cause
This issue occurs because VCH VM was deleted from the vCenter inventory and then added back to the vCenter inventory changing the VCH VM's vm-id (MOID). Due to this change, the VIC services are no longer using the correct vm-id (MOID).