CD: Kubernetes Automated Provisioning Rancher Script - for Ubuntu 16 VMs

Description

:plus: https://wiki.onap.org/display/DW/ONAP+on+Kubernetes+on+Rancher#ONAPonKubernetesonRancher-AmsterdamBranchInstallation

put the rancher script we are using in the onap on kubernetes page into source control
to be used by developers or the current CD jenkins job
The script will later be used by all the cloud ARM/HEAT/CloudFormation templates as the cloud-init/entrypoint.sh script

http://jenkins.onap.info/job/oom-cd/
https://github.com/obrienlabs/onap-root/blob/master/oom_rancher_setup_1.sh
https://wiki.onap.org/display/DW/ONAP+on+Kubernetes?focusedCommentId=25434827&refresh=1518815927725#comment-25434827

Tested script for amsterdam and master on 2 clean R4-2xlarge VMs - see test results below

:plus: Plan:
Directory structure of

Underclouds:

  • install/rancher

  • install/kubeadm

  • install/cloudify

Cloud Templates:

  • cloud/azure

  • cloud/amazon

  • cloud/google

Installation wrappers (may be deprecated by helm install)

  • install/continuous-deployment

as of 201805 on https://git.onap.org/logging-analytics/tree/deploy/rancher/oom_rancher_setup.sh

Attachments

3
  • 17 Oct 2018, 01:26 AM
  • 26 Jun 2018, 11:01 PM
  • 16 Feb 2018, 11:29 PM

Activity

Show:

Former user January 6, 2019 at 1:43 AM

fix -n onap namespace - put a default value

Former user November 6, 2018 at 5:47 PM
Edited

Aligning with Integration team - Kubernetes 1.11 up from 1.10, Rancher 1.6.22 up from 1.6.18, docker still 17.03, helm still 2.9.1 on the 29th Oct https://gerrit.onap.org/r/#/c/71375/1

Former user October 17, 2018 at 9:18 PM

Former user October 17, 2018 at 3:57 AM

INFO: Running Agent Registration Process, CATTLE_URL=http://192.168.216.134:8880/v1 INFO: Attempting to connect to: http://192.168.216.134:8880/v1 INFO: http://192.168.216.134:8880/v1 is accessible INFO: Inspecting host capabilities INFO: Boot2Docker: false INFO: Host writable: true INFO: Token: xxxxxxxx INFO: Running registration INFO: Printing Environment INFO: ENV: CATTLE_ACCESS_KEY=9349F2F24F75470C01B6 INFO: ENV: CATTLE_HOME=/var/lib/cattle INFO: ENV: CATTLE_REGISTRATION_ACCESS_KEY=registrationToken INFO: ENV: CATTLE_REGISTRATION_SECRET_KEY=xxxxxxx INFO: ENV: CATTLE_SECRET_KEY=xxxxxxx INFO: ENV: CATTLE_URL=http://192.168.216.134:8880/v1 INFO: ENV: DETECTED_CATTLE_AGENT_IP=172.17.0.1 INFO: ENV: RANCHER_AGENT_IMAGE=rancher/agent:v1.2.9 INFO: Launched Rancher Agent: 57eba4015f5a3e1da4a45ef012569b031391d4866305bf2adad3c85539d1043e waiting 8 min for host registration to finish ubuntu@ubuntu:~$ sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 97a318d06a40 gcr.io/google_containers/k8s-dns-dnsmasq-nanny-amd64@sha256:46b933bb70270c8a02fa6b6f87d440f6f1fce1a5a2a719e164f83f7b109f7544 "/dnsmasq-nanny --..." 3 seconds ago Up 2 seconds k8s_dnsmasq_kube-dns-5d7b4487c9-tb668_kube-system_2763dc50-d1b6-11e8-a675-02332670d25b_0 4e18ab8a82b1 gcr.io/google_containers/kubernetes-dashboard-amd64@sha256:71a0de5c6a21cb0c2fbcad71a4fef47acd3e61cd78109822d35e1742f9d8140d "/dashboard --inse..." 11 seconds ago Up 10 seconds k8s_kubernetes-dashboard_kubernetes-dashboard-f9577fffd-6mtpt_kube-system_2763cb08-d1b6-11e8-a675-02332670d25b_0 6b8f1498791b gcr.io/google_containers/heapster-amd64@sha256:b77cebeff2180d03e21cc9f9c6b69a0d9710caa9f6263e675eab7938019631ef "/heapster --sourc..." 19 seconds ago Up 18 seconds k8s_heapster_heapster-76b8cd7b5-vwncc_kube-system_2763db97-d1b6-11e8-a675-02332670d25b_0 51e1fba14050 gcr.io/google_containers/heapster-grafana-amd64@sha256:4a472eb4df03f4f557d80e7c6b903d9c8fe31493108b99fbd6da6540b5448d70 "/run.sh" 26 seconds ago Up 25 seconds k8s_grafana_monitoring-grafana-997796fcf-kkqmg_kube-system_2763de53-d1b6-11e8-a675-02332670d25b_0 79b44bd89687 gcr.io/google_containers/k8s-dns-kube-dns-amd64@sha256:1a3fc069de481ae690188f6f1ba4664b5cc7760af37120f70c86505c79eea61d "/kube-dns --domai..." 37 seconds ago Up 36 seconds k8s_kubedns_kube-dns-5d7b4487c9-tb668_kube-system_2763dc50-d1b6-11e8-a675-02332670d25b_0 c32b6296d06f gcr.io/google_containers/heapster-influxdb-amd64@sha256:f433e331c1865ad87bc5387589965528b78cd6b1b2f61697e589584d690c1edd "influxd --config ..." 43 seconds ago Up 42 seconds k8s_influxdb_monitoring-influxdb-56fdcd96b-4tn5m_kube-system_2779401e-d1b6-11e8-a675-02332670d25b_0 93f0b1b478b6 gcr.io/kubernetes-helm/tiller@sha256:6b561c3bb9fed1b028520cce3852e6c9a6a91161df9b92ca0c3a20ebecc0581a "/tiller --v=2" 49 seconds ago Up 48 seconds k8s_tiller_tiller-deploy-cc96d4f6b-fvvnv_kube-system_27a824ef-d1b6-11e8-a675-02332670d25b_0 6f8e6ee8200a gcr.io/google_containers/pause-amd64:3.0 "/pause" 57 seconds ago Up 55 seconds k8s_POD_heapster-76b8cd7b5-vwncc_kube-system_2763db97-d1b6-11e8-a675-02332670d25b_0 ac1ee88cb765 gcr.io/google_containers/pause-amd64:3.0 "/pause" 57 seconds ago Up 55 seconds k8s_POD_kubernetes-dashboard-f9577fffd-6mtpt_kube-system_2763cb08-d1b6-11e8-a675-02332670d25b_0 1f3d082c2897 gcr.io/google_containers/pause-amd64:3.0 "/pause" 57 seconds ago Up 55 seconds k8s_POD_monitoring-grafana-997796fcf-kkqmg_kube-system_2763de53-d1b6-11e8-a675-02332670d25b_0 4be8201a8aee gcr.io/google_containers/pause-amd64:3.0 "/pause" 57 seconds ago Up 56 seconds k8s_POD_monitoring-influxdb-56fdcd96b-4tn5m_kube-system_2779401e-d1b6-11e8-a675-02332670d25b_0 a37dc644c920 gcr.io/google_containers/pause-amd64:3.0 "/pause" 57 seconds ago Up 56 seconds k8s_POD_tiller-deploy-cc96d4f6b-fvvnv_kube-system_27a824ef-d1b6-11e8-a675-02332670d25b_0 29d185ad3618 gcr.io/google_containers/pause-amd64:3.0 "/pause" 57 seconds ago Up 56 seconds k8s_POD_kube-dns-5d7b4487c9-tb668_kube-system_2763dc50-d1b6-11e8-a675-02332670d25b_0 e8f1d4af60b3 rancher/etc-host-updater:v0.0.3 "/rancher-entrypoi..." About a minute ago Up About a minute r-kubernetes-kubernetes-kube-hostname-updater-1-7c19c7dd 2e83cf71f499 rancher/k8s:v1.8.10-rancher1-1 "/.r/r /usr/bin/en..." About a minute ago Up About a minute r-kubernetes-kubernetes-1-0e0a413d 11f2d77120ca rancher/k8s:v1.8.10-rancher1-1 "/.r/r /usr/bin/en..." About a minute ago Up About a minute r-kubernetes-scheduler-1-4d1f59bf 1cd60e621aa7 rancher/k8s:v1.8.10-rancher1-1 "/usr/bin/entry.sh..." About a minute ago Up About a minute r-kubernetes-kubelet-1-3212e58e fffb4885f428 rancher/k8s:v1.8.10-rancher1-1 "/usr/bin/entry.sh..." About a minute ago Up About a minute r-kubernetes-proxy-1-0330c36e 0653db793c5e rancher/k8s:v1.8.10-rancher1-1 "/.r/r /usr/bin/en..." About a minute ago Up About a minute r-kubernetes-addon-starter-1-33bdba45 dd8d0ddb263c rancher/k8s:v1.8.10-rancher1-1 "/.r/r /usr/bin/en..." About a minute ago Up About a minute r-kubernetes-controller-manager-1-6974e174 053b2b337e4c rancher/dns:v0.15.3 "/rancher-entrypoi..." About a minute ago Up About a minute r-network-services-metadata-dns-1-19a667a1 af1de05cf084 rancher/kubernetes-auth:v0.0.8 "/.r/r /usr/bin/en..." About a minute ago Up About a minute r-kubernetes-rancher-kubernetes-auth-1-55169a7f fce307b46037 rancher/lb-service-rancher:v0.7.17 "/.r/r /usr/bin/en..." About a minute ago Up About a minute r-kubernetes-rancher-ingress-controller-1-c1cd5618 dc542bb6eacd rancher/kubernetes-agent:v0.6.6 "/.r/r /usr/bin/en..." About a minute ago Up About a minute r-kubernetes-rancher-kubernetes-agent-1-5ee98b06 c56bdaeef76f rancher/net:v0.13.7 "/rancher-entrypoi..." About a minute ago Up About a minute r-ipsec-ipsec-router-1-4be53797 7b5ac8e6747b rancher/net:v0.13.7 "/rancher-entrypoi..." About a minute ago Up About a minute r-ipsec-ipsec-connectivity-check-1-ed1d4340 94d2c71f2968 rancher/net:holder "/.r/r /rancher-en..." About a minute ago Up About a minute r-ipsec-ipsec-1-32fcb851 e0390941be4d rancher/kubectld:v0.8.5 "/.r/r /rancher-en..." About a minute ago Up About a minute r-kubernetes-kubectld-1-16fe7370 40ad18dfe0e3 rancher/kubectld:v0.8.5 "/.r/r /rancher-en..." About a minute ago Up About a minute r-kubernetes-kubectl-shell-1-6020ab35 2436cfaedd2f rancher/metadata:v0.9.5 "/rancher-entrypoi..." 2 minutes ago Up 2 minutes r-network-services-metadata-1-0071a40c 3edf21d333e8 rancher/etcd:v2.3.7-13 "/.r/r /opt/ranche..." 2 minutes ago Up 2 minutes r-kubernetes-etcd-1-08c9fdc5 c6d571a84f01 rancher/healthcheck:v0.3.3 "/.r/r /rancher-en..." 2 minutes ago Up 2 minutes r-healthcheck-healthcheck-1-175dd191 797d9056d81d rancher/network-manager:v0.7.19 "/rancher-entrypoi..." 2 minutes ago Up 2 minutes r-network-services-network-manager-1-9495f00b ed3ef854e595 rancher/net:v0.13.7 "/rancher-entrypoi..." 2 minutes ago Up 2 minutes r-ipsec-cni-driver-1-9cdc42f0 57eba4015f5a rancher/agent:v1.2.9 "/run.sh run" 2 minutes ago Up 2 minutes rancher-agent 3e13f04848f1 rancher/server:v1.6.14 "/usr/bin/entry /u..." 14 minutes ago Up 14 minutes 3306/tcp, 0.0.0.0:8880->8080/tcp rancher_server 1 more min KUBECTL_TOKEN base64 encoded: QmFzaWMgTnpBNVJqazFNekJHUWpreVFVSTFOall3T0RnNk9UTllUVmhSVWxSV1VGcGxWME5RVFVWV09WQnlkMVF6YXpFMFRsaEZUbEUyVW1SVlpWWk9OQT09 run the following if you installed a higher kubectl version than the server helm init --upgrade Verify all pods up on the kubernetes system - will return localhost:8080 until a host is added kubectl get pods --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE kube-system heapster-76b8cd7b5-vwncc 1/1 Running 0 6m kube-system kube-dns-5d7b4487c9-tb668 3/3 Running 0 6m kube-system kubernetes-dashboard-f9577fffd-6mtpt 1/1 Running 0 6m kube-system monitoring-grafana-997796fcf-kkqmg 1/1 Running 0 6m kube-system monitoring-influxdb-56fdcd96b-4tn5m 1/1 Running 0 6m kube-system tiller-deploy-cc96d4f6b-fvvnv 1/1 Running 0 6m upgrade server side of helm in kubernetes Client: &version.Version{SemVer:"v2.8.2", GitCommit:"a80231648a1473929271764b920a8e346f6de844", GitTreeState:"clean"} Server: &version.Version{SemVer:"v2.6.1", GitCommit:"bbc1f71dc03afc5f00c6ac84b9308f8ecb4f39ac", GitTreeState:"clean"} sleep 90 Creating /home/ubuntu/.helm Creating /home/ubuntu/.helm/repository Creating /home/ubuntu/.helm/repository/cache Creating /home/ubuntu/.helm/repository/local Creating /home/ubuntu/.helm/plugins Creating /home/ubuntu/.helm/starters Creating /home/ubuntu/.helm/cache/archive Creating /home/ubuntu/.helm/repository/repositories.yaml Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com Adding local repo with URL: http://127.0.0.1:8879/charts $HELM_HOME has been configured at /home/ubuntu/.helm. Tiller (the Helm server-side component) has been upgraded to the current version. Happy Helming! sleep 90 verify both versions are the same below Client: &version.Version{SemVer:"v2.8.2", GitCommit:"a80231648a1473929271764b920a8e346f6de844", GitTreeState:"clean"} Server: &version.Version{SemVer:"v2.8.2", GitCommit:"a80231648a1473929271764b920a8e346f6de844", GitTreeState:"clean"} start helm server sleep 30 Regenerating index. This may take a moment. Now serving you on 127.0.0.1:8879 add local helm repo "local" has been added to your repositories NAME URL stable https://kubernetes-charts.storage.googleapis.com local http://127.0.0.1:8879 To enable grafana dashboard - do this after running cd.sh which brings up onap - or you may get a 302xx port conflict kubectl expose -n kube-system deployment monitoring-grafana --type=LoadBalancer --name monitoring-grafana-client to get the nodeport for a specific VM running grafana kubectl get services --all-namespaces | grep graf NAMESPACE NAME READY STATUS RESTARTS AGE kube-system heapster-76b8cd7b5-vwncc 1/1 Running 0 10m kube-system kube-dns-5d7b4487c9-tb668 3/3 Running 0 10m kube-system kubernetes-dashboard-f9577fffd-6mtpt 1/1 Running 0 10m kube-system monitoring-grafana-997796fcf-kkqmg 1/1 Running 0 10m kube-system monitoring-influxdb-56fdcd96b-4tn5m 1/1 Running 0 10m kube-system tiller-deploy-54bcc55dd5-vs8hx 1/1 Running 0 2m finished! ubuntu@ubuntu:~$

Former user October 16, 2018 at 8:49 PM
Edited

adding beijing section (1.6.14 and helm 2.8.2) note master requires 10.3 kubectl as well
testing

ubuntu@ubuntu:~$ sudo ./oom_rancher_setup.sh -b beijing -s 192.168.216.134 -e onap Installing on 192.168.216.134 for beijing: Rancher: 1.6.14 Kubectl: 1.8.10 Helm: 2.8.2 Docker: 17.03 If you must install as non-root - comment out the docker install below - run it separately, run the user mod, logout/login and continue this script % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 15249 100 15249 0 0 15091 0 0:00:01 0:00:01 --:--:-- 15098 + sh -c apt-get update Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease Hit:2 https://apt.dockerproject.org/repo ubuntu-xenial InRelease Hit:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease Hit:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease Hit:5 http://archive.ubuntu.com/ubuntu xenial-security InRelease Reading package lists... Done + sh -c apt-get install -y -q apt-transport-https ca-certificates curl software-properties-common Reading package lists... Building dependency tree... Reading state information... software-properties-common is already the newest version (0.96.20.7). software-properties-common set to manually installed. The following packages will be upgraded: apt-transport-https ca-certificates curl libcurl3-gnutls 4 upgraded, 0 newly installed, 0 to remove and 540 not upgraded. Need to get 516 kB of archives. After this operation, 56.3 kB disk space will be freed. emoving debian:WoSign.pem done. done. + curl -fsSl https://download.docker.com/linux/ubuntu/gpg + sh -c apt-key add - OK + sh -c add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable" + [ ubuntu = debian ] + sh -c apt-get update Hit:1 https://apt.dockerproject.org/repo ubuntu-xenial InRelease Get:2 https://download.docker.com/linux/ubuntu xenial InRelease [66.2 kB] Hit:3 http://archive.ubuntu.com/ubuntu xenial InRelease Get:4 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages [4,684 B] Hit:5 http://archive.ubuntu.com/ubuntu xenial-updates InRelease Hit:6 http://archive.ubuntu.com/ubuntu xenial-backports InRelease Hit:7 http://archive.ubuntu.com/ubuntu xenial-security InRelease Fetched 70.9 kB in 1s (37.4 kB/s) Reading package lists... Done + apt-cache madison docker-ce + cut -d -f 4 + grep 17.03.2 + head -n 1 + sh -c apt-get install -y -q docker-ce=17.03.2~ce-0~ubuntu-xenial Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: aufs-tools cgroupfs-mount The following NEW packages will be installed: aufs-tools cgroupfs-mount docker-ce 0 upgraded, 3 newly installed, 0 to remove and 540 not upgraded. Need to get 19.3 MB of archives. After this operation, 89.3 MB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu xenial/universe amd64 aufs-tools amd64 1:3.2+20130722-1.1ubuntu1 [92.9 kB] Get:2 http://archive.ubuntu.com/ubuntu xenial/universe amd64 cgroupfs-mount all 1.2 [4,970 B] Get:3 https://download.docker.com/linux/ubuntu xenial/stable amd64 docker-ce amd64 17.03.2~ce-0~ubuntu-xenial [19.2 MB] Fetched 19.3 MB in 8s (2,175 kB/s) Selecting previously unselected package aufs-tools. (Reading database ... 184275 files and directories currently installed.) Preparing to unpack .../aufs-tools_1%3a3.2+20130722-1.1ubuntu1_amd64.deb ... Unpacking aufs-tools (1:3.2+20130722-1.1ubuntu1) ... Selecting previously unselected package cgroupfs-mount. Preparing to unpack .../cgroupfs-mount_1.2_all.deb ... Unpacking cgroupfs-mount (1.2) ... Selecting previously unselected package docker-ce. Preparing to unpack .../docker-ce_17.03.2~ce-0~ubuntu-xenial_amd64.deb ... Unpacking docker-ce (17.03.2~ce-0~ubuntu-xenial) ... Processing triggers for libc-bin (2.23-0ubuntu5) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for ureadahead (0.100.0-19) ... Processing triggers for systemd (229-4ubuntu16) ... Setting up aufs-tools (1:3.2+20130722-1.1ubuntu1) ... Setting up cgroupfs-mount (1.2) ... Setting up docker-ce (17.03.2~ce-0~ubuntu-xenial) ... Processing triggers for libc-bin (2.23-0ubuntu5) ... Processing triggers for systemd (229-4ubuntu16) ... Processing triggers for ureadahead (0.100.0-19) ... + sh -c docker version Client: Version: 17.03.2-ce API version: 1.27 Go version: go1.7.5 Git commit: f5ec1e2 Built: Tue Jun 27 03:35:14 2017 OS/Arch: linux/amd64 Server: Version: 17.03.2-ce API version: 1.27 (minimum version 1.12) Go version: go1.7.5 Git commit: f5ec1e2 Built: Tue Jun 27 03:35:14 2017 OS/Arch: linux/amd64 Experimental: false If you would like to use Docker as a non-root user, you should now consider adding your user to the "docker" group with something like: sudo usermod -aG docker your-user Remember that you will have to log out and back in for this to take effect! WARNING: Adding a user to the "docker" group will grant the ability to run containers which can be used to obtain root privileges on the docker host. Refer to https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface for more information. install make - required for beijing+ Reading package lists... Done Building dependency tree Reading state information... Done make is already the newest version (4.1-6). 0 upgraded, 0 newly installed, 0 to remove and 541 not upgraded. Unable to find image 'rancher/server:v1.6.14' locally v1.6.14: Pulling from rancher/server bae382666908: Pull complete 29ede3c02ff2: Pull complete da4e69f33106: Pull complete 8d43e5f5d27f: Pull complete b0de1abb17d6: Pull complete 422f47db4517: Pull complete 79d37de643ce: Pull complete 69d13e08a4fe: Pull complete 2ddfd3c6a2b7: Pull complete bc433fed3823: Pull complete b82e188df556: Pull complete dae2802428a4: Pull complete a6247572ea3c: Pull complete 884c916ebae4: Pull complete 85517c9c5365: Pull complete 02dded9fe690: Pull complete fd9f433c3bc6: Pull complete 44d91b3fea45: Pull complete 0d463387dfeb: Pull complete 60753c4d26f0: Pull complete a003892966fe: Pull complete Digest: sha256:42441f0128fae4d72d51f92de2049392427d462356282a46f28434332967c7e4 Status: Downloaded newer image for rancher/server:v1.6.14 3e13f04848f12a18125bce6a2650204e912bf83888258517233af3690a8ead4c % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 50.0M 100 50.0M 0 0 9.9M 0 0:00:05 0:00:05 --:--:-- 12.5M mkdir: cannot create directory ‘/home/ubuntu/.kube’: File exists --2018-10-16 19:28:38-- http://storage.googleapis.com/kubernetes-helm/helm-v2.8.2-linux-amd64.tar.gz Resolving storage.googleapis.com (storage.googleapis.com)... 209.85.200.128, 2607:f8b0:4001:c16::80 Connecting to storage.googleapis.com (storage.googleapis.com)|209.85.200.128|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 14973808 (14M) [application/x-tar] Saving to: ‘helm-v2.8.2-linux-amd64.tar.gz.1’ helm-v2.8.2-linux-amd64.tar.gz.1 100%[=================================================================================>] 14.28M 7.36MB/s in 1.9s 2018-10-16 19:28:40 (7.36 MB/s) - ‘helm-v2.8.2-linux-amd64.tar.gz.1’ saved [14973808/14973808] linux-amd64/ linux-amd64/helm linux-amd64/README.md linux-amd64/LICENSE --2018-10-16 19:28:43-- https://releases.rancher.com/cli/v0.6.7/rancher-linux-amd64-v0.6.7.tar.gz Resolving releases.rancher.com (releases.rancher.com)... 104.24.17.51, 104.24.16.51, 2606:4700:20::6818:1133, ... Connecting to releases.rancher.com (releases.rancher.com)|104.24.17.51|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 3736787 (3.6M) [application/x-tar] Saving to: ‘rancher-linux-amd64-v0.6.7.tar.gz.1’ rancher-linux-amd64-v0.6.7.tar.gz.1 100%[=================================================================================>] 3.56M 3.38MB/s in 1.1s 2018-10-16 19:28:45 (3.38 MB/s) - ‘rancher-linux-amd64-v0.6.7.tar.gz.1’ saved [3736787/3736787] ./ ./rancher-v0.6.7/ ./rancher-v0.6.7/rancher install jq Reading package lists... Done Building dependency tree Reading state information... Done jq is already the newest version (1.5+dfsg-1ubuntu0.1). 0 upgraded, 0 newly installed, 0 to remove and 541 not upgraded. wait for rancher server container to finish - 3 min 2 more min 1 min left get public and private tokens back to the rancher server so we can register the client later API_RESPONSE: {"id":"1c2","type":"apiKey","links":{"self":"http:\/\/127.0.0.1:8880\/v2-beta\/apikeys\/1c2","account":"http:\/\/127.0.0.1:8880\/v2-beta\/apikeys\/1c2\/account","images":"http:\/\/127.0.0.1:8880\/v2-beta\/apikeys\/1c2\/images","instances":"http:\/\/127.0.0.1:8880\/v2-beta\/apikeys\/1c2\/instances","certificate":"http:\/\/127.0.0.1:8880\/v2-beta\/apikeys\/1c2\/certificate"},"actions":{"activate":"http:\/\/127.0.0.1:8880\/v2-beta\/apikeys\/1c2\/?action=activate","remove":"http:\/\/127.0.0.1:8880\/v2-beta\/apikeys\/1c2\/?action=remove","deactivate":"http:\/\/127.0.0.1:8880\/v2-beta\/apikeys\/1c2\/?action=deactivate"},"baseType":"credential","name":null,"state":"registering","accountId":"1a1","created":"2018-10-17T02:31:47Z","createdTS":1539743507000,"data":{},"description":null,"kind":"apiKey","publicValue":"709F9530FB92AB566088","removeTime":null,"removed":null,"secretValue":"93XMXQRTVPZeWCPMEV9PrwT3k14NXENQ6RdUeVN4","transitioning":"yes","transitioningMessage":"In Progress","transitioningProgress":null,"uuid":"67e7304b-fd29-4e32-9426-399534ad67dc"} publicValue: 709F9530FB92AB566088 secretValue: 93XMXQRTVPZeWCPMEV9PrwT3k14NXENQ6RdUeVN4 ID NAME ORCHESTRATION STATE CREATED 1a5 Default cattle active 2018-10-17T02:29:09Z wait 60 sec for rancher environments can settle before we create the onap kubernetes one Creating kubernetes environment named onap env id: 1a7 you should see an additional kubernetes environment usually with id 1a7 ID NAME ORCHESTRATION STATE CREATED 1a5 Default cattle active 2018-10-17T02:29:09Z 1a7 onap kubernetes active 2018-10-17T02:32:47Z sleep 90 to wait for REG to ACTIVE ID NAME ORCHESTRATION STATE CREATED 1a5 Default cattle active 2018-10-17T02:29:09Z 1a7 onap kubernetes active 2018-10-17T02:32:47Z ubuntu@ubuntu:~$ sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3e13f04848f1 rancher/server:v1.6.14 "/usr/bin/entry /u..." 4 minutes ago Up 4 minutes 3306/tcp, 0.0.0.0:8880->8080/tcp rancher_server ID NAME ORCHESTRATION STATE CREATED 1a5 Default cattle active 2018-10-17T02:29:09Z 1a7 onap kubernetes active 2018-10-17T02:32:47Z 60 more sec % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1158 100 1140 100 18 29031 458 --:--:-- --:--:-- --:--:-- 30000 REG_URL_RESPONSE: {"id":"1c3","type":"registrationToken","links":{"self":"http:\/\/192.168.216.134:8880\/v1\/projects\/1a7\/registrationtokens\/1c3","account":"http:\/\/192.168.216.134:8880\/v1\/projects\/1a7\/registrationtokens\/1c3\/account","images":"http:\/\/192.168.216.134:8880\/v1\/projects\/1a7\/registrationtokens\/1c3\/images","instances":"http:\/\/192.168.216.134:8880\/v1\/projects\/1a7\/registrationtokens\/1c3\/instances"},"actions":{"activate":"http:\/\/192.168.216.134:8880\/v1\/projects\/1a7\/registrationtokens\/1c3\/?action=activate","remove":"http:\/\/192.168.216.134:8880\/v1\/projects\/1a7\/registrationtokens\/1c3\/?action=remove","deactivate":"http:\/\/192.168.216.134:8880\/v1\/projects\/1a7\/registrationtokens\/1c3\/?action=deactivate"},"baseType":"credential","name":null,"state":"registering","accountId":"1a7","command":null,"created":"2018-10-17T02:34:48Z","createdTS":1539743688000,"description":null,"image":null,"kind":"registrationToken","registrationUrl":null,"removed":null,"token":null,"transitioning":"yes","transitioningMessage":"In Progress","transitioningProgress":null,"uuid":"0ffe84df-6844-4678-8ca2-bdd5ca69b567"} wait for server to finish url configuration - 5 min 60 more sec % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 3179 0 3179 0 0 106k 0 --:--:-- --:--:-- --:--:-- 110k REGISTRATION_TOKENS: {"type":"collection","resourceType":"registrationToken","links":{"self":"http:\/\/127.0.0.1:8880\/v2-beta\/registrationtokens"},"createTypes":{},"actions":{},"data":[{"id":"1c3","type":"registrationToken","links":{"self":"http:\/\/127.0.0.1:8880\/v2-beta\/registrationtokens\/1c3","account":"http:\/\/127.0.0.1:8880\/v2-beta\/registrationtokens\/1c3\/account","images":"http:\/\/127.0.0.1:8880\/v2-beta\/registrationtokens\/1c3\/images","instances":"http:\/\/127.0.0.1:8880\/v2-beta\/registrationtokens\/1c3\/instances","registrationUrl":"http:\/\/127.0.0.1:8880\/v2-beta\/scripts\/3E399BBF85122FAB9918:1514678400000:uteuhmNsmkIjS9VrXC8DwydGmg"},"actions":{"update":"http:\/\/127.0.0.1:8880\/v2-beta\/registrationtokens\/1c3\/?action=update","deactivate":"http:\/\/127.0.0.1:8880\/v2-beta\/registrationtokens\/1c3\/?action=deactivate"},"baseType":"credential","name":null,"state":"active","accountId":"1a7","command":"sudo docker run --rm --privileged -v \/var\/run\/docker.sock:\/var\/run\/docker.sock -v \/var\/lib\/rancher:\/var\/lib\/rancher rancher\/agent:v1.2.9 http:\/\/127.0.0.1:8880\/v2-beta\/scripts\/3E399BBF85122FAB9918:1514678400000:uteuhmNsmkIjS9VrXC8DwydGmg","created":"2018-10-17T02:34:48Z","createdTS":1539743688000,"data":{},"description":null,"image":"rancher\/agent:v1.2.9","kind":"registrationToken","registrationUrl":"http:\/\/127.0.0.1:8880\/v2-beta\/scripts\/3E399BBF85122FAB9918:1514678400000:uteuhmNsmkIjS9VrXC8DwydGmg","removeTime":null,"removed":null,"token":"3E399BBF85122FAB9918:1514678400000:uteuhmNsmkIjS9VrXC8DwydGmg","transitioning":"no","transitioningMessage":null,"transitioningProgress":null,"uuid":"0ffe84df-6844-4678-8ca2-bdd5ca69b567","windowsCommand":"docker run --rm -v \"C:\\Program Files\\rancher:C:\\Program Files\\rancher\" rancher\/agent-windows:v0.1.0"}],"sortLinks":{"accountId":"http:\/\/127.0.0.1:8880\/v2-beta\/registrationtokens?sort=accountId","created":"http:\/\/127.0.0.1:8880\/v2-beta\/registrationtokens?sort=created","description":"http:\/\/127.0.0.1:8880\/v2-beta\/registrationtokens?sort=description","id":"http:\/\/127.0.0.1:8880\/v2-beta\/registrationtokens?sort=id","kind":"http:\/\/127.0.0.1:8880\/v2-beta\/registrationtokens?sort=kind","name":"http:\/\/127.0.0.1:8880\/v2-beta\/registrationtokens?sort=name","publicValue":"http:\/\/127.0.0.1:8880\/v2-beta\/registrationtokens?sort=publicValue","registryId":"http:\/\/127.0.0.1:8880\/v2-beta\/registrationtokens?sort=registryId","removeTime":"http:\/\/127.0.0.1:8880\/v2-beta\/registrationtokens?sort=removeTime","removed":"http:\/\/127.0.0.1:8880\/v2-beta\/registrationtokens?sort=removed","secretValue":"http:\/\/127.0.0.1:8880\/v2-beta\/registrationtokens?sort=secretValue","state":"http:\/\/127.0.0.1:8880\/v2-beta\/registrationtokens?sort=state","uuid":"http:\/\/127.0.0.1:8880\/v2-beta\/registrationtokens?sort=uuid"},"pagination":{"first":null,"previous":null,"next":null,"limit":100,"total":null,"partial":false},"sort":null,"filters":{"accountId":null,"created":null,"description":null,"id":null,"kind":null,"name":null,"publicValue":null,"registryId":null,"removeTime":null,"removed":null,"secretValue":null,"state":null,"uuid":null},"createDefaults":{}} Registering host for image: rancher/agent:v1.2.9 url: http://127.0.0.1:8880/v2-beta/scripts/3E399BBF85122FAB9918:1514678400000:uteuhmNsmkIjS9VrXC8DwydGmg registrationToken: 3E399BBF85122FAB9918:1514678400000:uteuhmNsmkIjS9VrXC8DwydGmg Running agent docker... sudo docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.9 http://192.168.216.134:8880/v1/scripts/3E399BBF85122FAB9918:1514678400000:uteuhmNsmkIjS9VrXC8DwydGmg Unable to find image 'rancher/agent:v1.2.9' locally v1.2.9: Pulling from rancher/agent b3e1c725a85f: Pull complete 6a710864a9fc: Pull complete d0ac3b234321: Pull complete 87f567b5cf58: Pull complete 063e24b217c4: Pull complete d0a3f58caef0: Pull complete 16914729cfd3: Pull complete dc5c21984c5b: Pull complete d7e8f9784b20: Pull complete Digest: sha256:c21255ac4d94ffbc7b523f870f2aea5189b68fa3d642800adb4774aab4748e66 Status: Downloaded newer image for rancher/agent:v1.2.9
Done

Details

Assignee

Reporter

Time tracking

6h logged

Sprint

Fix versions

Priority

Created February 16, 2018 at 11:08 PM
Updated August 12, 2023 at 3:47 AM
Resolved June 24, 2018 at 11:52 PM

Flag notifications