The docker endpoint never comes up when deploying a container host in vSphere Integrated Containers
search cancel

The docker endpoint never comes up when deploying a container host in vSphere Integrated Containers

book

Article ID: 315127

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:
  • Deploying VCH does not succeed when using DHCP, but works when using Static IP.
  • When deploying a container host, the docker endpoint never comes up.
Following errors are shown during the deployment:
Failure finding cluster (): default compute resource resolves to multiple instances, please specify
Failure finding ds (): default datastore resolves to multiple instances, please specify
Failure finding pool (): default resource pool resolves to multiple instances, please specify
  • Using "vic-machine" CLI using verbose option "--debug 2" returns:
INFO[0021] Waiting for IP information
ERRO[0201] vic/pkg/trace.(*Operation).Err: Create error: context deadline exceeded
vic/cmd/vic-machine/create.(*Create).Run:741 Create
vic/cmd/vic-machine/common.NewOperation:27 vic-machine-linux
ERRO[0201] vic/lib/install/management.(*Dispatcher).ensureApplianceInitializes: Create error: context deadline exceeded
vic/cmd/vic-machine/create.(*Create).Run:741 Create
vic/cmd/vic-machine/common.NewOperation:27 vic-machine-linux
DEBU[0201] properties: [config.extraConfig summary.runtime.connectionState]
ERRO[0201] vic/pkg/trace.(*Operation).Err: Create error: context deadline exceeded
vic/cmd/vic-machine/create.(*Create).Run:741 Create
vic/cmd/vic-machine/common.NewOperation:27 vic-machine-linux
ERRO[0201] Unable to get vm config: Post https://vcenter.corp.com/sdk: context deadline exceeded
DEBU[0201]   State of components:
DEBU[0201]     "vicadmin": "waiting to launch"
DEBU[0201]     "docker-personality": "waiting to launch"
DEBU[0201]     "port-layer": "waiting to launch"
ERRO[0201] vic/lib/install/management.(*Dispatcher).ensureApplianceInitializes: Create error: context deadline exceeded
vic/cmd/vic-machine/create.(*Create).Run:741 Create
vic/cmd/vic-machine/common.NewOperation:27 vic-machine-linux
DEBU[0201] properties: [config.extraConfig summary.runtime.connectionState]
INFO[0201]
ERRO[0201] Failed to obtain IP address for client interface
INFO[0201] Use vic-machine inspect to see if VCH has received an IP address at a later time
INFO[0201]   State of all interfaces:
INFO[0201]     "public" IP: "waiting for IP"
INFO[0201]     "client" IP: "waiting for IP"
INFO[0201]     "management" IP: "waiting for IP"
INFO[0201]     "bridge" IP: "waiting for IP"
INFO[0201]   State of components:
INFO[0201]     "vicadmin": "<nil>"
INFO[0201]     "docker-personality": "<nil>"
INFO[0201]     "port-layer": "<nil>"
INFO[0201] Collecting 5cf78ecb-d4ab-433e-9a23-a17733c5bab3 vpxd.log
INFO[0201]      API may be slow to start - try to connect to API after a few minutes:
INFO[0201]              Run vic-machine-linux inspect to find API connection command and run the command if ip address is ready
INFO[0201]              If command succeeds, VCH is started. If command fails, VCH failed to install - see documentation for troubleshooting.
ERRO[0201] vic/cmd/vic-machine/create.(*Create).Run.func3: Create error: context deadline exceeded
vic/cmd/vic-machine/create.(*Create).Run:741 Create
vic/cmd/vic-machine/common.NewOperation:27 vic-machine-linux
ERRO[0201] --------------------
ERRO[0201] vic-machine-linux create failed: Creating VCH exceeded time limit of 3m0s. Please increase the timeout using --timeout to accommodate for a busy vSphere target


Environment

VMware vSphere Integrated Containers 1.x

Cause

If the DHCP configuration of the network range is wrong, the deployment of the VCH fails.

Resolution

Ensure that the configuration of the DHCP server for this range has correct information :
  •  Network Range
  •  Netmask
  •  Gateway in that Network Range

Then, delete the failed deployed VCH using  vic-machine delete CLI, and attempts a new deployment, using CLI or GUI.