-
Notifications
You must be signed in to change notification settings - Fork 2k
Docker Machine Fails to deploy Ubuntu 14.04 & 16.04 images to Openstack #4197
Comments
Try running with This will provide the details above in addition to the details that Docker echo's |
docker-machine create is having issues in general - fails upon creation, leaving you able to ssh to server ... however, users cannot upgrade or provision server and there are issues on the actual server itself. For instance, when attempting to resize a digital ocean machine, the re-size fails and Digitalocean support is blaming the docker-machine create command that left something in a broken state. |
I am using a openstack environment and only Ubuntu images are doing this I Ran with -D and I get allot of detail but no errors other than cannot connect to ssh seems to be trying 0.0.0.0:22 not sure why? `Using SSH client type: external (Hostname) Calling .GetSSHHostname (Hostname) Calling .GetSSHHostname (Hostname) Calling .GetSSHHostname (Hostname) Calling .GetSSHHostname (Hostname) Calling .GetSSHHostname Error creating machine: Error running provisioning: Unable to verify the Docker daemon is listening: Maximum number of retries (10) exceeded |
I believe this is related to
|
You are able to get in, however, if you try docker-machine upgrade or docker-machine provision or docker-machine regenerate-certs OR if you try to resize your instance via AWS - I bet you receive errors :)
|
I agree with brandontamm Docker-machine upgrade, regenerate-certs .... all fail... this is only occurring with Ubuntu images just deployed a Centos 7 image no issues at all |
@shin- I can confirm that these issues still occur in docker-machine v0.12.2 |
For the 14.04 image, the kernel is too old to use the overlay storage driver (3.18 is the minimum required). You can provision using a custom The problem with your 16.04 image is similar, the default storage driver there is |
Ok I will look into our images we can update them to new images to allow our environment to work for our users, but I believe we are using standard ubuntu images and the Kernels are current LTS supported. I am running docker-machine v0.12.2 so this is definitely happening on the current most recent build. |
BTW I appreciate all the details and help! I will post any fixes we find work. |
Setting up both our images for ubuntu 14.04 and 16.04 with aufs has resolved this issue. testing has confirmed all is working perfectly now. Thanks for the guidance! |
@dmccullo Glad to hear that - thank you for reporting back! |
I am running docker-machine version:
docker-machine version 0.12.2, build 9371605
I had already opened a Moby ticket number:
moby/moby#34095
They told me there was a bug fixed in this version of Docker-machine.
I have deployed many instances with Docker machine in openstack without issues.
Since upgrading to Docker CE I have had these issues.
Ubuntu 14.04 Kernel version:
3.13.0-37-generic
the Docker Command:
docker-machine create --openstack-flavor-name s1.small --openstack-image-id 97527772-e68c-415d-a498-3ca1942788b0 --openstack-nova-network -d openstack Hostname
the response I get:
Running pre-create checks... Creating machine... (Hostname) Creating machine... Waiting for machine to be running, this may take a few minutes... Detecting operating system of created instance... Waiting for SSH to be available... Detecting the provisioner... Provisioning with ubuntu(upstart)... Installing Docker... Copying certs to the local machine directory... Copying certs to the remote machine... Setting Docker configuration on the remote daemon... Error creating machine: Error running provisioning: Unable to verify the Docker daemon is listening: Maximum number of retries (10) exceeded
Docker-machine ssh hostname logs me into the instance.
here is the docker.log:
Waiting for /var/run/docker.sock time="2017-07-14T15:18:42.559578431Z" level=info msg="libcontainerd: new containerd process, pid: 9657" time="2017-07-14T15:18:42.581118102Z" level=warning msg="failed to rename /var/lib/docker/tmp for background deletion: rename /var/lib/docker/tmp /var/lib/docker/tmp-old: no such file or directory. Deleting synchronously" /var/run/docker.sock is up time="2017-07-14T15:18:42.701328292Z" level=error msg="'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded." time="2017-07-14T15:18:42.702563545Z" level=error msg="'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded." time="2017-07-14T15:18:42.863149814Z" level=warning msg="devmapper: Usage of loopback devices is strongly discouraged for production use. Please use
--storage-opt dm.thinpooldevor use
man dockerto refer to dm.thinpooldev section." time="2017-07-14T15:18:42.897423971Z" level=warning msg="devmapper: XFS is not supported in your system. Either the kernel doesn't support it or mkfs.xfs is not in your PATH. Defaulting to ext4 filesystem" time="2017-07-14T15:18:42.899998053Z" level=info msg="devmapper: Creating filesystem ext4 on device docker-253:1-131817-base" time="2017-07-14T15:18:44.685079941Z" level=info msg="devmapper: Successfully created filesystem ext4 on device docker-253:1-131817-base" time="2017-07-14T15:18:44.794347870Z" level=info msg="Graph migration to content-addressability took 0.00 seconds" time="2017-07-14T15:18:44.794708590Z" level=warning msg="Your kernel does not support swap memory limit" time="2017-07-14T15:18:44.794870983Z" level=warning msg="Your kernel does not support cgroup rt period" time="2017-07-14T15:18:44.794989573Z" level=warning msg="Your kernel does not support cgroup rt runtime" time="2017-07-14T15:18:44.795219186Z" level=warning msg="mountpoint for pids not found" time="2017-07-14T15:18:44.795569953Z" level=info msg="Loading containers: start." time="2017-07-14T15:18:44.844080545Z" level=warning msg="Running modprobe bridge br_netfilter failed with message: modprobe: WARNING: Module br_netfilter not found.\ninsmod /lib/modules/3.13.0-37-generic/kernel/net/llc/llc.ko \ninsmod /lib/modules/3.13.0-37-generic/kernel/net/802/stp.ko \ninsmod /lib/modules/3.13.0-37-generic/kernel/net/bridge/bridge.ko \n, error: exit status 1" time="2017-07-14T15:18:45.162298392Z" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address" time="2017-07-14T15:18:45.261610718Z" level=info msg="Loading containers: done." time="2017-07-14T15:18:45.273164262Z" level=info msg="Daemon has completed initialization" time="2017-07-14T15:18:45.273318653Z" level=info msg="Docker daemon" commit=02c1d87 graphdriver=devicemapper version=17.06.0-ce time="2017-07-14T15:18:45.286939464Z" level=info msg="API listen on /var/run/docker.sock" time="2017-07-14T15:18:48.084048663Z" level=info msg="Processing signal 'terminated'" INFO[0005] stopping containerd after receiving terminated Waiting for /var/run/docker.sock time="2017-07-14T15:18:53.676763888Z" level=info msg="libcontainerd: new containerd process, pid: 10403" Error starting daemon: error initializing graphdriver: driver not supported /var/run/docker.sock is up /var/run/docker.sock is up time="2017-07-14T15:18:53.811297250Z" level=info msg="libcontainerd: new containerd process, pid: 10451" Error starting daemon: error initializing graphdriver: driver not supported /var/run/docker.sock is up time="2017-07-14T15:18:53.881343863Z" level=info msg="libcontainerd: new containerd process, pid: 10499" Error starting daemon: error initializing graphdriver: driver not supported /var/run/docker.sock is up time="2017-07-14T15:18:53.958452230Z" level=info msg="libcontainerd: new containerd process, pid: 10549" Error starting daemon: error initializing graphdriver: driver not supported /var/run/docker.sock is up time="2017-07-14T15:18:54.035050017Z" level=info msg="libcontainerd: new containerd process, pid: 10597" Error starting daemon: error initializing graphdriver: driver not supported /var/run/docker.sock is up time="2017-07-14T15:18:54.107651301Z" level=info msg="libcontainerd: new containerd process, pid: 10644" Error starting daemon: error initializing graphdriver: driver not supported /var/run/docker.sock is up time="2017-07-14T15:18:54.179747934Z" level=info msg="libcontainerd: new containerd process, pid: 10693" Error starting daemon: error initializing graphdriver: driver not supported /var/run/docker.sock is up time="2017-07-14T15:18:54.251748931Z" level=info msg="libcontainerd: new containerd process, pid: 10741" Error starting daemon: error initializing graphdriver: driver not supported /var/run/docker.sock is up time="2017-07-14T15:18:54.320027273Z" level=info msg="libcontainerd: new containerd process, pid: 10789" Error starting daemon: error initializing graphdriver: driver not supported /var/run/docker.sock is up time="2017-07-14T15:18:54.421297653Z" level=info msg="libcontainerd: new containerd process, pid: 10868" Error starting daemon: error initializing graphdriver: driver not supported /var/run/docker.sock is up time="2017-07-14T15:18:54.516045108Z" level=info msg="libcontainerd: new containerd process, pid: 10915" Error starting daemon: error initializing graphdriver: driver not supported
Ubuntu 16.04 Kernel version:
4.4.0-53-generic
Command I run:
docker-machine create --openstack-flavor-name s1.small --openstack-image-id 9d018c75-c18d-40bf-853f-6266d1267d0d --openstack-nova-network -d openstack HostnameUB16
Result I get:
Creating machine... (HostnameUB16) Creating machine... Waiting for machine to be running, this may take a few minutes... Detecting operating system of created instance... Waiting for SSH to be available... Detecting the provisioner... Provisioning with ubuntu(systemd)... Installing Docker... Copying certs to the local machine directory... Copying certs to the remote machine... Setting Docker configuration on the remote daemon... Error creating machine: Error running provisioning: ssh command error: command : sudo systemctl -f start docker err : exit status 1 output : Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
$ systemctl status docker.service
$ journalctl | grep docker
Any insight on what is causing this would be appreciated!
I am running docker-machine commands from OSX and have deployed Centos containers with the exact same environment variables and command other than changing the image ID without issues..
Just ubuntu images are causing these issues.
The text was updated successfully, but these errors were encountered: