solo-io / unik

The Unikernel & MicroVM Compilation and Deployment Platform
Apache License 2.0
2.72k stars 191 forks source link

vSphereUnikInstanceListener error on startup #92

Closed getstek closed 8 years ago

getstek commented 8 years ago

I am deploying Unik to a vSphere 6 installation (vCenter v6.0.0 build 3634794 & ESXi 6.0.0 build 4192238) and when the InstanceListener VM comes up it hangs with an error in the console.

screen shot 2016-10-05 at 10 21 06 am

The Unik daemon finally bails and cleans up after itself, leaving this error message behind:

WARN[0213] error encountered, ensuring vm and disks are destroyed  error=[vsphere/deploy_instance_listener.go:150] failed to retrieve instance listener ip. is unik instance listener running?: {[common/get_instance_listener_ip.go:20] getting instance listener ip timed out after 1m0s}
INFO[0213] Build cmd for container projectunik/vsphere-client:a9538c7c242acbef  args=[run --rm --name=1117e821-089e-46fd-ade0-9b20659c9c70 projectunik/vsphere-client:a9538c7c242acbef govc vm.power --off=true -k -u https://userxxx%40domain.local:*************@192.168.120.20/sdk VsphereUnikInstanceListener]
DEBU[0213] running command                               command=[docker run --rm --name=1117e821-089e-46fd-ade0-9b20659c9c70 projectunik/vsphere-client:a9538c7c242acbef govc vm.power --off=true -k -u https://userxxx%40domain.local:*************@192.168.120.20/sdk VsphereUnikInstanceListener]
DEBU[0218] Powering off VirtualMachine:vm-1047... OK
INFO[0219] Build cmd for container projectunik/vsphere-client:a9538c7c242acbef  args=[run --rm --name=a5395dbb-ae3d-43bb-9907-482528e2f9ec projectunik/vsphere-client:a9538c7c242acbef govc vm.destroy -k -u https://userxxx%40domain.local:*************@192.168.120.20/sdk VsphereUnikInstanceListener]
DEBU[0219] running command                               command=[docker run --rm --name=a5395dbb-ae3d-43bb-9907-482528e2f9ec projectunik/vsphere-client:a9538c7c242acbef govc vm.destroy -k -u https://userxxx%40domain.local:*************@192.168.120.20/sdk VsphereUnikInstanceListener]
INFO[0225] Build cmd for container projectunik/vsphere-client:a9538c7c242acbef  args=[run --rm --name=841c3eca-bb83-4e17-b344-47e23ed2449d projectunik/vsphere-client:a9538c7c242acbef govc datastore.rm -ds SCALEIO_stkn -k -u https://userxxx%40domain.local:*************@192.168.120.20/sdk VsphereUnikInstanceListener]
DEBU[0225] running command                               command=[docker run --rm --name=841c3eca-bb83-4e17-b344-47e23ed2449d projectunik/vsphere-client:a9538c7c242acbef govc datastore.rm -ds SCALEIO_stkn -k -u https://userxxx%40domain.local:*************@192.168.120.20/sdk VsphereUnikInstanceListener]
DEBU[0227] govc: File [SCALEIO_stkn] VsphereUnikInstanceListener was not found
INFO[0229] Build cmd for container projectunik/vsphere-client:a9538c7c242acbef  args=[run --rm --name=66b6a57f-166f-413c-ad73-497bf4b0c35a projectunik/vsphere-client:a9538c7c242acbef govc datastore.rm -ds SCALEIO_stkn -k -u https://userxxx%40domain.local:*************@192.168.120.20/sdk unik/vsphere/volumes/InstanceListenerData/data.vmdk]
DEBU[0229] running command                               command=[docker run --rm --name=66b6a57f-166f-413c-ad73-497bf4b0c35a projectunik/vsphere-client:a9538c7c242acbef govc datastore.rm -ds SCALEIO_stkn -k -u https://userxxx%40domain.local:*************@192.168.120.20/sdk unik/vsphere/volumes/InstanceListenerData/data.vmdk]
DEBU[0231] govc: File [SCALEIO_stkn] unik/vsphere/volumes/InstanceListenerData/data.vmdk was not found
INFO[0233] deleting image file at unik/vsphere/images/VsphereUnikInstanceListener
INFO[0233] Build cmd for container projectunik/vsphere-client:a9538c7c242acbef  args=[run --rm --name=488f9b80-8bf4-4c31-ad6d-87784dd05804 projectunik/vsphere-client:a9538c7c242acbef govc datastore.rm -ds SCALEIO_stkn -k -u https://userxxx%40domain.local:*************@192.168.120.20/sdk unik/vsphere/images/VsphereUnikInstanceListener]
DEBU[0233] running command                               command=[docker run --rm --name=488f9b80-8bf4-4c31-ad6d-87784dd05804 projectunik/vsphere-client:a9538c7c242acbef govc datastore.rm -ds SCALEIO_stkn -k -u https://userxxx%40domain.local:*************@192.168.120.20/sdk unik/vsphere/images/VsphereUnikInstanceListener]
ERRO[0236] running daemon failed: [cmd/daemon.go:86] daemon failed to initialize: {[daemon/daemon.go:89] initializing vsphere provider: {[vsphere/vsphere_provider.go:53] deploying virtualbox instance listener: {[vsphere/deploy_instance_listener.go:59] launching instance of instance listener: {[vsphere/deploy_instance_listener.go:150] failed to retrieve instance listener ip. is unik instance listener running?: {[common/get_instance_listener_ip.go:20] getting instance listener ip timed out after 1m0s}}}}}

Which version of vSphere is Unik known to be tested with?

ilackarms commented 8 years ago

@djannot reported having the same issue with vsphere. We will look into fixing it today. He reported that commit a2e37c8ed07ccaba10122ed4024587c4b36aed2c was working for him, but afterwards things broke. I will keep you updated here with our progress. Adding @uvgroovy to this thread

yuval-k commented 8 years ago

Fixed by adding more space to boot file-systems.