Cloud Pak for Data

 View Only
  • 1.  Problem in accessing URL

    Posted Tue June 11, 2019 02:26 AM
    ​Hi All,

    For three node cluster ICP4D , while accessing url I am getting error like something went wrong , for which i also attached snapshot.
    All docker services, kubelet services, haproxy services are running.


    Please have a look on this , and if any idea please share.

    Thanks

    ------------------------------
    Abu Hassam
    ------------------------------

    #CloudPakforDataGroup


  • 2.  RE: Problem in accessing URL

    Posted Mon June 17, 2019 08:48 AM
    If you experience error something went wrong, please check:
    Go to each node (masters and workers) to check if docker command works (docker ps). It's possible docker link broke after reboot. If this happens run the following command:  

    mount --rbind /ibm/docker_link /var/lib/docker
    systemctl restart docker
    Make sure docker is up in all the nodes then use kubectl command to check pods status.

    kubectl config set-cluster mycluster --server=https://127.0.0.1:8001 --insecure-skip-tls-verify=true
    kubectl config set-context mycluster --cluster=mycluster
    kubectl config set-credentials mycluster --client-certificate=/ibm/InstallPackage/ibm-cp-app/cluster/cfc-certs/kubecfg.crt --client-key=/ibm/InstallPackage/ibm-cp-app/cluster/cfc-certs/kubecfg.key
    kubectl config set-context mycluster --user=mycluster
    kubectl config use-context mycluster
    systemctl restart kubelet
                ---- Similar activities as above can be done using following script. This scripts generates commands that you can copy paste and run ----

    # cat fix.sh
    nodelist=`cat /etc/hosts | cut -d" " -f2 |grep fyre|egrep "master|worker" | sort |uniq`
    rm -f m1.out d1.out k1.out
    for i in $nodelist
    do
    echo ssh root@${i} \"mount --rbind /ibm/docker_link /var/lib/docker\" >>m1.out
    echo ssh root@${i} \"systemctl restart docker\" >> d1.out
    echo ssh root@${i} \"systemctl restart kubelet\" >> k1.out
    done
    cat m1.out d1.out k1.out
                ---- End of script ----

    ------------------------------
    ADAM NOWOTARSKI
    ------------------------------