Closed hferentschik closed 8 years ago
With @praveenkumar I pushed an update to this pull request, moving us past the ssh "issue". The ssh keys are not extracted from the tarball and moved into the right place. This means provisioning can continue. For @praveenkumar it even seems to complete, creating a basic docker-machine setup (ignoring that we are not yet using the 20GB drive). I myself see some other warnings which seem to prevent the provisioning to complete.
Either way, it might be a good idea to merge this as an initial step into the right direction.
Tested with kvm
driver and it was able to pass required ssh steps.
Getting to WaitForSSH function...
(centos) Calling .GetSSHHostname
(centos) DBG | GetIP called for centos
(centos) DBG | Failed to retrieve dnsmasq leases from /var/lib/libvirt/dnsmasq/docker-machines.leases
(centos) DBG | IP address: 192.168.42.110
(centos) DBG | Unable to locate IP address for MAC 52:54:00:4f:6b:39
(centos) Calling .GetSSHPort
(centos) Calling .GetSSHKeyPath
(centos) Calling .GetSSHKeyPath
(centos) DBG | AK: resolvestorepath: /home/prkumar/.docker/machine
(centos) Calling .GetSSHUsername
(centos) DBG | AK: resolvestorepath: /home/prkumar/.docker/machine
Using SSH client type: external
Using SSH private key: /home/prkumar/.docker/machine/machines/centos/id_rsa (-rw-------)
&{[-F /dev/null -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 docker@192.168.42.110 -o IdentitiesOnly=yes -i /home/prkumar/.docker/machine/machines/centos/id_rsa -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
exit 0
SSH cmd err, output: <nil>:
Detecting the provisioner...
(centos) Calling .GetSSHHostname
(centos) DBG | GetIP called for centos
(centos) DBG | Failed to retrieve dnsmasq leases from /var/lib/libvirt/dnsmasq/docker-machines.leases
(centos) DBG | IP address: 192.168.42.110
(centos) DBG | Unable to locate IP address for MAC 52:54:00:4f:6b:39
(centos) Calling .GetSSHPort
(centos) Calling .GetSSHKeyPath
(centos) DBG | AK: resolvestorepath: /home/prkumar/.docker/machine
(centos) Calling .GetSSHKeyPath
(centos) Calling .GetSSHUsername
(centos) DBG | AK: resolvestorepath: /home/prkumar/.docker/machine
Using SSH client type: external
Using SSH private key: /home/prkumar/.docker/machine/machines/centos/id_rsa (-rw-------)
&{[-F /dev/null -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 docker@192.168.42.110 -o IdentitiesOnly=yes -i /home/prkumar/.docker/machine/machines/centos/id_rsa -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
cat /etc/os-release
SSH cmd err, output: <nil>: 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
(centos) Calling .GetMachineName
(centos) Calling .GetSSHHostname
(centos) DBG | GetIP called for centos
(centos) DBG | Failed to retrieve dnsmasq leases from /var/lib/libvirt/dnsmasq/docker-machines.leases
(centos) DBG | IP address: 192.168.42.110
(centos) DBG | Unable to locate IP address for MAC 52:54:00:4f:6b:39
(centos) Calling .GetSSHPort
(centos) Calling .GetSSHKeyPath
(centos) Calling .GetSSHKeyPath
(centos) DBG | AK: resolvestorepath: /home/prkumar/.docker/machine
(centos) Calling .GetSSHUsername
(centos) DBG | AK: resolvestorepath: /home/prkumar/.docker/machine
Using SSH client type: external
Using SSH private key: /home/prkumar/.docker/machine/machines/centos/id_rsa (-rw-------)
&{[-F /dev/null -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 docker@192.168.42.110 -o IdentitiesOnly=yes -i /home/prkumar/.docker/machine/machines/centos/id_rsa -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
sudo hostname centos && echo "centos" | sudo tee /etc/hostname
SSH cmd err, output: <nil>: centos
(centos) Calling .GetSSHHostname
(centos) DBG | GetIP called for centos
(centos) DBG | Failed to retrieve dnsmasq leases from /var/lib/libvirt/dnsmasq/docker-machines.leases
(centos) DBG | IP address: 192.168.42.110
(centos) DBG | Unable to locate IP address for MAC 52:54:00:4f:6b:39
(centos) Calling .GetSSHPort
(centos) Calling .GetSSHKeyPath
(centos) DBG | AK: resolvestorepath: /home/prkumar/.docker/machine
(centos) Calling .GetSSHKeyPath
(centos) Calling .GetSSHUsername
(centos) DBG | AK: resolvestorepath: /home/prkumar/.docker/machine
Using SSH client type: external
Using SSH private key: /home/prkumar/.docker/machine/machines/centos/id_rsa (-rw-------)
&{[-F /dev/null -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 docker@192.168.42.110 -o IdentitiesOnly=yes -i /home/prkumar/.docker/machine/machines/centos/id_rsa -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
if grep -xq 127.0.1.1.* /etc/hosts; then sudo sed -i 's/^127.0.1.1.*/127.0.1.1 centos/g' /etc/hosts; else echo '127.0.1.1 centos' | sudo tee -a /etc/hosts; fi
SSH cmd err, output: <nil>: 127.0.1.1 centos
installing base package: name=curl
(centos) Calling .GetSSHHostname
(centos) DBG | GetIP called for centos
(centos) DBG | Failed to retrieve dnsmasq leases from /var/lib/libvirt/dnsmasq/docker-machines.leases
(centos) DBG | IP address: 192.168.42.110
(centos) DBG | Unable to locate IP address for MAC 52:54:00:4f:6b:39
(centos) Calling .GetSSHPort
(centos) Calling .GetSSHKeyPath
(centos) Calling .GetSSHKeyPath
(centos) DBG | AK: resolvestorepath: /home/prkumar/.docker/machine
(centos) DBG | AK: resolvestorepath: /home/prkumar/.docker/machine
(centos) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /home/prkumar/.docker/machine/machines/centos/id_rsa (-rw-------)
&{[-F /dev/null -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 docker@192.168.42.110 -o IdentitiesOnly=yes -i /home/prkumar/.docker/machine/machines/centos/id_rsa -p 22] /usr/bin/ssh <nil>}
thanks. working on the partitioning and formatting. I think I got most sorted out
@LalatenduMohanty Not quite working yet, just a preview of what I meant with that we can take things step by step. Might be worth to be merged as a small stepping stone.