Closed aledsage closed 8 years ago
Clocker install failed on CentOS 6.4 in a vcloud-director private environment. The fundamental error appears to be when running yum install docker-io:
yum install docker-io
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Below are snippets from the log:
2014-11-28 21:32:00,450 DEBUG brooklyn.SSH [brooklyn-execmanager-vkWlpua0-1430]: installing DockerHostImpl{id=Czuc5GlD}, initiating ssh on machine SshMachineLocation[vm-612125784:172.16.120.48/172.16.120.48@IcL6tlN0]: #!/bin/bash -e ; export INSTALL_DIR="/home/users/amp/brooklyn-managed-processes/installs/DockerHost_1.2" ; mkdir -p $INSTALL_DIR ; cd $INSTALL_DIR ; test -f BROOKLYN && exit 0 ; { { test -z `which yum` && true ; } || { { which wget || ( { which zypper && { echo zypper exists, doing refresh && (( if test "$UID" -eq 0; then ( zypper --non-interactive --no-gpg-checks refresh ); else sudo -E -n -S -- zypper --non-interactive --no-gpg-checks refresh; fi ) || true) && ( if test "$UID" -eq 0; then ( zypper --non-interactive --no-gpg-checks install wget ); else sudo -E -n -S -- zypper --non-interactive --no-gpg-checks install wget; fi ) ; } ; } || { which apt-get && { echo apt-get exists, doing update && export DEBIAN_FRONTEND=noninteractive && (( if test "$UID" -eq 0; then ( apt-get update ); else sudo -E -n -S -- apt-get update; fi ) || true) && ( if test "$UID" -eq 0; then ( apt-get install -y --allow-unauthenticated wget ); else sudo -E -n -S -- apt-get install -y --allow-unauthenticated wget; fi ) ; } ; } || { which yum && { echo yum exists, doing update && (( if test "$UID" -eq 0; then ( yum check-update ); else sudo -E -n -S -- yum check-update; fi ) || true) && ( if test "$UID" -eq 0; then ( yum -y --nogpgcheck install wget ); else sudo -E -n -S -- yum -y --nogpgcheck install wget; fi ) ; } ; } || { which brew && brew install wget ; } || { which port && ( if test "$UID" -eq 0; then ( port install wget ); else sudo -E -n -S -- port install wget; fi ) ; } || (( echo "WARNING: no known/successful package manager to install wget, may fail subsequently" | tee /dev/stderr ) || true) ) ; } && ( ( if test "$UID" -eq 0; then ( rpm -qa | grep epel-release ); else sudo -E -n -S -- rpm -qa | grep epel-release; fi ) || ( if test "$UID" -eq 0; then ( rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm ); else sudo -E -n -S -- rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm; fi ) ) ; } ; } ; ( { which yum && { echo yum exists, doing update && (( if test "$UID" -eq 0; then ( yum check-update ); else sudo -E -n -S -- yum check-update; fi ) || true) && ( if test "$UID" -eq 0; then ( yum -y --nogpgcheck install docker-io ); else sudo -E -n -S -- yum -y --nogpgcheck install docker-io; fi ) ; } ; } || (( echo "WARNING: no known/successful package manager to install {yum=docker-io}, may fail subsequently" | tee /dev/stderr ) || true) ) ; date > $INSTALL_DIR/BROOKLYN 2014-11-28 21:32:01,451 DEBUG brooklyn.SSH [Thread-44981]: [Czuc5GlD@vm-612125784:stdout] /usr/bin/wget 2014-11-28 21:32:05,452 DEBUG brooklyn.SSH [Thread-44981]: [Czuc5GlD@vm-612125784:stdout] Retrieving http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm 2014-11-28 21:32:05,452 DEBUG brooklyn.SSH [Thread-44981]: [Czuc5GlD@vm-612125784:stdout] Preparing... ################################################## 2014-11-28 21:32:05,452 DEBUG brooklyn.SSH [Thread-44981]: [Czuc5GlD@vm-612125784:stdout] epel-release ################################################## 2014-11-28 21:32:05,455 DEBUG brooklyn.SSH [Thread-44982]: [Czuc5GlD@vm-612125784:stderr] warning: /var/tmp/rpm-tmp.hXLTmx: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY 2014-11-28 21:32:06,452 DEBUG brooklyn.SSH [Thread-44981]: [Czuc5GlD@vm-612125784:stdout] /usr/bin/yum 2014-11-28 21:32:06,452 DEBUG brooklyn.SSH [Thread-44981]: [Czuc5GlD@vm-612125784:stdout] yum exists, doing update 2014-11-28 21:32:09,453 DEBUG brooklyn.SSH [Thread-44981]: [Czuc5GlD@vm-612125784:stdout] Loaded plugins: fastestmirror, security 2014-11-28 21:32:09,453 DEBUG brooklyn.SSH [Thread-44981]: [Czuc5GlD@vm-612125784:stdout] Loading mirror speeds from cached hostfile 2014-11-28 21:32:09,456 DEBUG brooklyn.SSH [Thread-44982]: [Czuc5GlD@vm-612125784:stderr] Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again 2014-11-28 21:32:10,178 DEBUG brooklyn.SSH [Thread-44982]: [Czuc5GlD@vm-612125784:stderr] Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again 2014-11-28 21:32:10,178 DEBUG brooklyn.SSH [Thread-44982]: [Czuc5GlD@vm-612125784:stderr] WARNING: no known/successful package manager to install {yum=docker-io}, may fail subsequently 2014-11-28 21:32:10,179 DEBUG brooklyn.SSH [Thread-44981]: [Czuc5GlD@vm-612125784:stdout] Loaded plugins: fastestmirror, security 2014-11-28 21:32:10,179 DEBUG brooklyn.SSH [Thread-44981]: [Czuc5GlD@vm-612125784:stdout] Loading mirror speeds from cached hostfile 2014-11-28 21:32:10,179 DEBUG brooklyn.SSH [Thread-44981]: [Czuc5GlD@vm-612125784:stdout] WARNING: no known/successful package manager to install {yum=docker-io}, may fail subsequently 2014-11-28 21:32:10,179 DEBUG brooklyn.SSH [Thread-44981]: [Czuc5GlD@vm-612125784:stdout] Executed /tmp/brooklyn-20141128-213200652-nEQ6-installing_DockerHostImpl_id_C.sh, result 0 2014-11-28 21:32:10,179 DEBUG brooklyn.SSH [brooklyn-execmanager-vkWlpua0-1430]: installing DockerHostImpl{id=Czuc5GlD}, on machine SshMachineLocation[vm-612125784:172.16.120.48/172.16.120.48@IcL6tlN0], completed: return status 0 ... 2014-11-28 21:32:10,184 DEBUG brooklyn.SSH [brooklyn-execmanager-vkWlpua0-1342]: stopping DockerHostImpl{id=Czuc5GlD}, initiating ssh on machine SshMachineLocation[vm-612125784:172.16.120.48/172.16.120.48@IcL6tlN0]: #!/bin/bash -e ; export RUN_DIR="/home/users/amp/brooklyn-managed-processes/apps/C7EFsQD6/entities/DockerHost_Czuc5GlD" ; mkdir -p $RUN_DIR ; cd $RUN_DIR ; ( { which boot2docker && boot2docker down ; } || { which service && ( if test "$UID" -eq 0; then ( service docker stop ); else sudo -E -n -S -- service docker stop; fi ) ; } ) 2014-11-28 21:32:10,339 DEBUG brooklyn.SSH [Thread-45234]: [Czuc5GlD@vm-612125784:stdout] /sbin/service 2014-11-28 21:32:10,339 DEBUG brooklyn.SSH [Thread-45234]: [Czuc5GlD@vm-612125784:stdout] Executed /tmp/brooklyn-20141128-213210219-gkDi-stopping_DockerHostImpl_id_Czu.sh, result 1 2014-11-28 21:32:10,339 DEBUG brooklyn.SSH [Thread-45235]: [Czuc5GlD@vm-612125784:stderr] which: no boot2docker in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/root/jdk1.7.0_25/bin:/home/users/amp/bin) 2014-11-28 21:32:10,339 DEBUG brooklyn.SSH [Thread-45235]: [Czuc5GlD@vm-612125784:stderr] docker: unrecognized service 2014-11-28 21:32:10,339 DEBUG brooklyn.SSH [brooklyn-execmanager-vkWlpua0-1342]: stopping DockerHostImpl{id=Czuc5GlD}, on machine SshMachineLocation[vm-612125784:172.16.120.48/172.16.120.48@IcL6tlN0], completed: return status 1 2014-11-28 21:32:10,340 WARN b.e.b.lifecycle.ScriptHelper [brooklyn-execmanager-vkWlpua0-1342]: Execution failed, invalid result 1 for stopping DockerHostImpl{id=Czuc5GlD} (throwing) 2014-11-28 21:32:10,340 INFO b.e.b.lifecycle.ScriptHelper [brooklyn-execmanager-vkWlpua0-1342]: STDERR of problem in Task[ssh: stopping DockerHostImpl{id=Czuc5GlD}:XjR8cZV8]: 2014-11-28 21:32:10,340 INFO b.e.b.lifecycle.ScriptHelper [brooklyn-execmanager-vkWlpua0-1342]: STDOUT of problem in Task[ssh: stopping DockerHostImpl{id=Czuc5GlD}:XjR8cZV8]: 2014-11-28 21:32:10,340 INFO b.e.b.lifecycle.ScriptHelper [brooklyn-execmanager-vkWlpua0-1342]: STDIN of problem in Task[ssh: stopping DockerHostImpl{id=Czuc5GlD}:XjR8cZV8]: export RUN_DIR="/home/users/amp/brooklyn-managed-processes/apps/C7EFsQD6/entities/DockerHost_Czuc5GlD"
I then tried running the commands manually on the VM that install had failed on:
[amp@Centos64x64 ~]$ sudo rpm -qa | grep epel-release epel-release-6-8.noarch [amp@Centos64x64 ~]$ curl -O http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 14540 100 14540 0 0 27847 0 --:--:-- --:--:-- --:--:-- 48791 [amp@Centos64x64 ~]$ sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm Retrieving http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm warning: /var/tmp/rpm-tmp.IAux1P: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY Preparing... ########################################### [100%] package epel-release-6-8.noarch is already installed [amp@Centos64x64 ~]$ sudo yum -y --nogpgcheck install docker-io Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Fixed by #218
Clocker install failed on CentOS 6.4 in a vcloud-director private environment. The fundamental error appears to be when running
yum install docker-io
:Below are snippets from the log:
I then tried running the commands manually on the VM that install had failed on: