docker / machine

Machine management for a container-centric world
https://docs.docker.com/machine/
Apache License 2.0
6.62k stars 1.97k forks source link

Unable to provision with generic driver (exit status 1) #3723

Open prithulagta opened 8 years ago

prithulagta commented 8 years ago

I have a Centos 7 vm and I am trying to run docker-machine from a remote host to install docker deamon on this centos7 vm. However the docker-machine create is failing with below:

Error creating machine: Error running provisioning: exit status 1 open : no such file or directory notifying bugsnag: [Error creating machine: Error running provisioning: exit status 1]

Command: docker-machine --debug create --driver generic --generic-ip-address xx.xxx.xx.xx --generic-ssh-user user --generic-ssh-key /home/user/.ssh/id_rsa docker-node-1

_Docker Machine Version: 0.7.0, build a650a40 Found binary path at /usr/local/bin/docker-machine Launching plugin server for driver generic Plugin server listening at address 127.0.0.1:39667 () Calling .GetVersion Using API Version 1 () Calling .SetConfigRaw () Calling .GetMachineName (flag-lookup) Calling .GetMachineName (flag-lookup) Calling .DriverName (flag-lookup) Calling .GetCreateFlags Found binary path at /usr/local/bin/docker-machine Launching plugin server for driver generic Plugin server listening at address 127.0.0.1:34260 () Calling .GetVersion Using API Version 1 () Calling .SetConfigRaw () Calling .GetMachineName (docker-node-1) Calling .GetMachineName (docker-node-1) Calling .DriverName (docker-node-1) Calling .GetCreateFlags (docker-node-1) Calling .SetConfigFromFlags Running pre-create checks... (docker-node-1) Calling .PreCreateCheck (docker-node-1) Calling .GetConfigRaw Creating machine... (docker-node-1) Calling .Create (docker-node-1) Importing SSH key... (docker-node-1) Calling .GetConfigRaw (docker-node-1) DBG | IP: xx.xxx.xx.xx (docker-node-1) Calling .DriverName (docker-node-1) Calling .DriverName Waiting for machine to be running, this may take a few minutes... (docker-node-1) Calling .GetState Detecting operating system of created instance... Waiting for SSH to be available... Getting to WaitForSSH function... (docker-node-1) Calling .GetSSHHostname (docker-node-1) Calling .GetSSHPort (docker-node-1) Calling .GetSSHKeyPath (docker-node-1) Calling .GetSSHKeyPath (docker-node-1) Calling .GetSSHUsername Using SSH client type: external Using SSH private key: /home/user/.docker/machine/machines/docker-node-1/id_rsa (-rw-------) &{[-F /dev/null -o BatchMode=yes -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none user@xx.xxx.xx.xx -o IdentitiesOnly=yes -i /home/user/.docker/machine/machines/docker-node-1/id_rsa -p 22] /usr/bin/ssh } About to run SSH command: exit 0 SSH cmd err, output: : Detecting the provisioner... (docker-node-1) Calling .GetSSHHostname (docker-node-1) Calling .GetSSHPort (docker-node-1) Calling .GetSSHKeyPath (docker-node-1) Calling .GetSSHKeyPath (docker-node-1) Calling .GetSSHUsername Using SSH client type: external Using SSH private key: /home/user/.docker/machine/machines/docker-node-1/id_rsa (-rw-------) &{[-F /dev/null -o BatchMode=yes -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none user@xx.xxx.xxx.xx -o IdentitiesOnly=yes -i /home/user/.docker/machine/machines/docker-node-1/id_rsa -p 22] /usr/bin/ssh } About to run SSH command: cat /etc/os-release SSH cmd err, output: : NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"

Couldn't set key CPE_NAME, no corresponding struct field found Couldn't set key , no corresponding struct field found Couldn't set key CENTOS_MANTISBT_PROJECT, no corresponding struct field found Couldn't set key CENTOS_MANTISBT_PROJECT_VERSION, no corresponding struct field found Couldn't set key REDHAT_SUPPORT_PRODUCT, no corresponding struct field found Couldn't set key REDHAT_SUPPORT_PRODUCT_VERSION, no corresponding struct field found Couldn't set key , no corresponding struct field found found compatible host: centos Provisioning with centos... No storagedriver specified, using devicemapper

(docker-node-1) Calling .GetMachineName (docker-node-1) Calling .GetSSHHostname (docker-node-1) Calling .GetSSHPort (docker-node-1) Calling .GetSSHKeyPath (docker-node-1) Calling .GetSSHKeyPath (docker-node-1) Calling .GetSSHUsername Using SSH client type: external Using SSH private key: /home/user/.docker/machine/machines/docker-node-1/id_rsa (-rw-------) &{[-F /dev/null -o BatchMode=yes -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none user@xx.xxx.xxx.xxx -o IdentitiesOnly=yes -i /home/user/.docker/machine/machines/docker-node-1/id_rsa -p 22] /usr/bin/ssh } (docker-node-1) Calling .GetSSHHostname (docker-node-1) Calling .GetSSHPort (docker-node-1) Calling .GetSSHKeyPath (docker-node-1) Calling .GetSSHKeyPath (docker-node-1) Calling .GetSSHUsername Using SSH client type: external Using SSH private key: /home/user/.docker/machine/machines/docker-node-1/id_rsa (-rw-------) &{[-F /dev/null -o BatchMode=yes -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none user@xx.xxx.xxx.xx -o IdentitiesOnly=yes -i /home/user/.docker/machine/machines/docker-node-1/id_rsa -p 22] /usr/bin/ssh } installing base package: name=curl (docker-node-1) Calling .GetSSHHostname (docker-node-1) Calling .GetSSHPort (docker-node-1) Calling .GetSSHKeyPath (docker-node-1) Calling .GetSSHKeyPath (docker-node-1) Calling .GetSSHUsername Using SSH client type: external Using SSH private key: /home/user/.docker/machine/machines/docker-node-1/id_rsa (-rw-------) &{[-F /dev/null -o BatchMode=yes -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none user@xx.xxx.xxx.xxx -o IdentitiesOnly=yes -i /home/user/.docker/machine/machines/docker-node-1/id_rsa -p 22] /usr/bin/ssh } (docker-node-1) Calling .GetSSHHostname (docker-node-1) Calling .GetSSHPort (docker-node-1) Calling .GetSSHKeyPath (docker-node-1) Calling .GetSSHKeyPath (docker-node-1) Calling .GetSSHUsername Using SSH client type: external Using SSH private key: /home/user/.docker/machine/machines/docker-node-1/id_rsa (-rw-------) &{[-F /dev/null -o BatchMode=yes -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none user@xx.xxx.xxx.xxx -o IdentitiesOnly=yes -i /home/user/.docker/machine/machines/docker-node-1/idrsa -p 22] /usr/bin/ssh } Error creating machine: Error running provisioning: exit status 1 open : no such file or directory notifying bugsnag: [Error creating machine: Error running provisioning: exit status 1]

cat /etc/os-release NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"

Can anyone suggest what is the cause of the issue and has it been addressed?

schmunk42 commented 8 years ago

Do you have a file in /home/user/.ssh/id_rsa docker-node-1, since it says open : no such file or directory? Can you try 0.8.1?