-
Story
-
Resolution: Done
-
Medium
-
None
results
[root@localhost ~]# ./oom_rancher_setup.sh -b master -s 192.168.72.129 -e onap -l root prep for RHEL 7.6 enable ipv4 forwarding - add to /etc/sysctl.conf - net.ipv4.ip_forward = 1 yum groupinstall Development Tools - last 2 in single quotes disable the firewall - systemctl disable firewalld verify networking is boot enabled - sudo vi /etc/sysconfig/network-scripts/ifcfg-ens33 with ONBOOT=yes Installing on 192.168.72.129 for master: Rancher: 1.6.25 Kubectl: 1.11.5 Helm: 2.9.1 Docker: 17.03 username: root 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 31850 0 --:--:-- --:--:-- --:--:-- 31835 + '[' redhat = redhat ']' + for rhel_repo in '$rhel_repos' + sh -c 'yum-config-manager --enable rhel-7-server-extras-rpms' Loaded plugins: langpacks, product-id, subscription-manager ============================================================================== repo: rhel-7-server-extras-rpms ============================================================================== [rhel-7-server-extras-rpms] async = True bandwidth = 0 base_persistdir = /var/lib/yum/repos/x86_64/7Server baseurl = https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/extras/os cache = 0 cachedir = /var/cache/yum/x86_64/7Server/rhel-7-server-extras-rpms check_config_file_age = True compare_providers_priority = 80 cost = 1000 deltarpm_metadata_percentage = 100 deltarpm_percentage = enabled = 1 enablegroups = True exclude = failovermethod = priority ftp_disable_epsv = False gpgcadir = /var/lib/yum/repos/x86_64/7Server/rhel-7-server-extras-rpms/gpgcadir gpgcakey = gpgcheck = True gpgdir = /var/lib/yum/repos/x86_64/7Server/rhel-7-server-extras-rpms/gpgdir gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release hdrdir = /var/cache/yum/x86_64/7Server/rhel-7-server-extras-rpms/headers http_caching = all includepkgs = ip_resolve = keepalive = True keepcache = False mddownloadpolicy = sqlite mdpolicy = group:small mediaid = metadata_expire = 86400 metadata_expire_filter = read-only:present metalink = minrate = 0 mirrorlist = mirrorlist_expire = 86400 name = Red Hat Enterprise Linux 7 Server - Extras (RPMs) old_base_cache_dir = password = persistdir = /var/lib/yum/repos/x86_64/7Server/rhel-7-server-extras-rpms pkgdir = /var/cache/yum/x86_64/7Server/rhel-7-server-extras-rpms/packages proxy = False proxy_dict = proxy_password = proxy_username = repo_gpgcheck = False retries = 10 skip_if_unavailable = False ssl_check_cert_permissions = True sslcacert = /etc/rhsm/ca/redhat-uep.pem sslclientcert = /etc/pki/entitlement/2374911766721513673.pem sslclientkey = /etc/pki/entitlement/2374911766721513673-key.pem sslverify = True throttle = 0 timeout = 30.0 ui_id = rhel-7-server-extras-rpms/x86_64 ui_repoid_vars = basearch username = + for rhel_repo in '$rhel_repos' + sh -c 'yum-config-manager --enable rhui-REGION-rhel-server-extras' Loaded plugins: langpacks, product-id, subscription-manager + for rhel_repo in '$rhel_repos' + sh -c 'yum-config-manager --enable rhui-rhel-7-server-rhui-extras-rpms' Loaded plugins: langpacks, product-id, subscription-manager + sh -c 'yum install -y -q yum-utils' Package yum-utils-1.1.31-50.el7.noarch already installed and latest version + sh -c 'yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo' Loaded plugins: langpacks, product-id, subscription-manager adding repo from: https://download.docker.com/linux/centos/docker-ce.repo grabbing file https://download.docker.com/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo repo saved to /etc/yum.repos.d/docker-ce.repo + '[' stable '!=' stable ']' + sh -c 'yum makecache fast' Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager Existing lock /var/run/yum.pid: another copy is running as pid 16552. Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 210 M RSS (662 MB VSZ) Started: Tue Feb 5 07:22:32 2019 - 00:17 ago State : Running, pid: 16552 Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 210 M RSS (662 MB VSZ) Started: Tue Feb 5 07:22:32 2019 - 00:19 ago State : Sleeping, pid: 16552 Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 210 M RSS (662 MB VSZ) Started: Tue Feb 5 07:22:32 2019 - 00:21 ago State : Sleeping, pid: 16552 Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 210 M RSS (662 MB VSZ) Started: Tue Feb 5 07:22:32 2019 - 00:23 ago State : Sleeping, pid: 16552 docker-ce-stable | 3.5 kB 00:00:00 rhel-7-server-extras-rpms | 3.5 kB 00:00:00 rhel-7-server-rpms | 3.5 kB 00:00:00 (1/2): docker-ce-stable/x86_64/updateinfo | 55 B 00:00:00 (2/2): docker-ce-stable/x86_64/primary_db | 20 kB 00:00:00 Metadata Cache Created + sh -c 'yum install -y -q --setopt=obsoletes=0 docker-ce-17.03.2.ce' warning: /var/cache/yum/x86_64/7Server/docker-ce-stable/packages/docker-ce-selinux-17.03.3.ce-1.el7.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY Public key for docker-ce-selinux-17.03.3.ce-1.el7.noarch.rpm is not installed Importing GPG key 0x621E9F35: Userid : "Docker Release (CE rpm) <docker@docker.com>" Fingerprint: 060a 61c5 1b55 8a7f 742b 77aa c52f eb6b 621e 9f35 From : https://download.docker.com/linux/centos/gpg Re-declaration of type docker_t Failed to create node Bad type declaration at /etc/selinux/targeted/tmp/modules/400/docker/cil:1 /usr/sbin/semodule: Failed! restorecon: lstat(/var/lib/docker) failed: No such file or directory warning: %post(docker-ce-selinux-17.03.3.ce-1.el7.noarch) scriptlet failed, exit status 255 Non-fatal POSTIN scriptlet failure in rpm package docker-ce-selinux-17.03.3.ce-1.el7.noarch + '[' -d /run/systemd/system ']' + sh -c 'service docker start' Redirecting to /bin/systemctl start docker.service + 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 02:21:36 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 02:21:36 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+ - installed via yum groupinstall Development Tools in RHEL sudo: apt-get: command not found Unable to find image 'rancher/server:v1.6.25' locally v1.6.25: 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 5fcbc451800b: Pull complete 094c3159b185: Pull complete f6669153eae6: Pull complete f9ba122a9280: Pull complete acd60d8e48e4: Pull complete 355731006513: Pull complete 3612226daf75: Pull complete 7db269b92340: Pull complete 9b6aad2b3798: Pull complete Digest: sha256:7cec47e198334214ac70bab960288bd0b300a965e83efde57d8a1efafdd6f2a4 Status: Downloaded newer image for rancher/server:v1.6.25 d824b01dc15671663a0ded4175da6a53b14b9766912baf78e2cf251e33032d1f % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 52.8M 100 52.8M 0 0 35.2M 0 0:00:01 0:00:01 --:--:-- 35.2M --2019-02-05 07:24:02-- http://storage.googleapis.com/kubernetes-helm/helm-v2.9.1-linux-amd64.tar.gz Resolving storage.googleapis.com (storage.googleapis.com)... 172.217.1.176, 2607:f8b0:400b:808::2010 Connecting to storage.googleapis.com (storage.googleapis.com)|172.217.1.176|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 9160761 (8.7M) [application/x-tar] Saving to: ‘helm-v2.9.1-linux-amd64.tar.gz’ 100%[===================================================================================================================================================>] 9,160,761 31.1MB/s in 0.3s 2019-02-05 07:24:03 (31.1 MB/s) - ‘helm-v2.9.1-linux-amd64.tar.gz’ saved [9160761/9160761] linux-amd64/ linux-amd64/README.md linux-amd64/helm linux-amd64/LICENSE --2019-02-05 07:24:03-- 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.16.51, 104.24.17.51, 2606:4700:20::6818:1033, ... Connecting to releases.rancher.com (releases.rancher.com)|104.24.16.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’ 100%[===================================================================================================================================================>] 3,736,787 15.3MB/s in 0.2s 2019-02-05 07:24:04 (15.3 MB/s) - ‘rancher-linux-amd64-v0.6.7.tar.gz’ saved [3736787/3736787] ./ ./rancher-v0.6.7/ ./rancher-v0.6.7/rancher install jq for json parsing --2019-02-05 07:24:04-- https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112 Connecting to github.com (github.com)|192.30.253.113|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/5101141/65ac1c64-43ac-11e5-9195-46846013b9a3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190205%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190205T122404Z&X-Amz-Expires=300&X-Amz-Signature=0b1eab2c93b15966557479017756e99b0b560153dd61d8035f2f004c164f8b58&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Djq-linux64&response-content-type=application%2Foctet-stream [following] --2019-02-05 07:24:05-- https://github-production-release-asset-2e65be.s3.amazonaws.com/5101141/65ac1c64-43ac-11e5-9195-46846013b9a3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190205%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190205T122404Z&X-Amz-Expires=300&X-Amz-Signature=0b1eab2c93b15966557479017756e99b0b560153dd61d8035f2f004c164f8b58&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Djq-linux64&response-content-type=application%2Foctet-stream Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.236.211 Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.236.211|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 3027945 (2.9M) [application/octet-stream] Saving to: ‘jq’ 100%[===================================================================================================================================================>] 3,027,945 2.31MB/s in 1.2s 2019-02-05 07:24:06 (2.31 MB/s) - ‘jq’ saved [3027945/3027945] wait for rancher server container to finish - 3 min if you are planning on running a co-located host to bring up more than 110 pods on a single vm - you have 3 min to add --max-pods=900 in additional kublet flags - in the k8s template 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":"2019-02-05T12:27:06Z","createdTS":1549369626000,"data":{},"description":null,"kind":"apiKey","publicValue":"785B0067A58609A95054","removeTime":null,"removed":null,"secretValue":"L2FTfqPQfLZ1SYuWjEMjKxCWZr5zbGgnDRALLFz4","transitioning":"yes","transitioningMessage":"In Progress","transitioningProgress":null,"uuid":"733b632c-9411-4a72-be75-5b444949defb"} publicValue: 785B0067A58609A95054 secretValue: L2FTfqPQfLZ1SYuWjEMjKxCWZr5zbGgnDRALLFz4 ID NAME ORCHESTRATION STATE CREATED 1a5 Default cattle active 2019-02-05T12:24:19Z wait 60 sec for rancher environments to 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 2019-02-05T12:24:19Z 1a7 onap kubernetes active 2019-02-05T12:28:06Z sleep 90 to wait for REG to ACTIVE ID NAME ORCHESTRATION STATE CREATED 1a5 Default cattle active 2019-02-05T12:24:19Z 1a7 onap kubernetes active 2019-02-05T12:28:06Z check on environments again before registering the URL response ID NAME ORCHESTRATION STATE CREATED 1a5 Default cattle active 2019-02-05T12:24:19Z 1a7 onap kubernetes active 2019-02-05T12:28:06Z ID NAME ORCHESTRATION STATE CREATED 1a5 Default cattle active 2019-02-05T12:24:19Z 1a7 onap kubernetes active 2019-02-05T12:28:06Z 60 more sec % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1151 100 1133 100 18 35159 558 --:--:-- --:--:-- --:--:-- 36548 REG_URL_RESPONSE: {"id":"1c3","type":"registrationToken","links":{"self":"http:\/\/192.168.72.129:8880\/v1\/projects\/1a7\/registrationtokens\/1c3","account":"http:\/\/192.168.72.129:8880\/v1\/projects\/1a7\/registrationtokens\/1c3\/account","images":"http:\/\/192.168.72.129:8880\/v1\/projects\/1a7\/registrationtokens\/1c3\/images","instances":"http:\/\/192.168.72.129:8880\/v1\/projects\/1a7\/registrationtokens\/1c3\/instances"},"actions":{"activate":"http:\/\/192.168.72.129:8880\/v1\/projects\/1a7\/registrationtokens\/1c3\/?action=activate","remove":"http:\/\/192.168.72.129:8880\/v1\/projects\/1a7\/registrationtokens\/1c3\/?action=remove","deactivate":"http:\/\/192.168.72.129:8880\/v1\/projects\/1a7\/registrationtokens\/1c3\/?action=deactivate"},"baseType":"credential","name":null,"state":"registering","accountId":"1a7","command":null,"created":"2019-02-05T12:30:07Z","createdTS":1549369807000,"description":null,"image":null,"kind":"registrationToken","registrationUrl":null,"removed":null,"token":null,"transitioning":"yes","transitioningMessage":"In Progress","transitioningProgress":null,"uuid":"37062458-5711-4c3f-b9ba-d47390e0ea6c"} 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 3185 0 3185 0 0 273k 0 --:--:-- --:--:-- --:--:-- 282k 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\/00D7BC952009E1FAB1DD:1546214400000:3jdgrjIjCisBnUA6vBo4jmzOCn8"},"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.11 http:\/\/127.0.0.1:8880\/v2-beta\/scripts\/00D7BC952009E1FAB1DD:1546214400000:3jdgrjIjCisBnUA6vBo4jmzOCn8","created":"2019-02-05T12:30:07Z","createdTS":1549369807000,"data":{},"description":null,"image":"rancher\/agent:v1.2.11","kind":"registrationToken","registrationUrl":"http:\/\/127.0.0.1:8880\/v2-beta\/scripts\/00D7BC952009E1FAB1DD:1546214400000:3jdgrjIjCisBnUA6vBo4jmzOCn8","removeTime":null,"removed":null,"token":"00D7BC952009E1FAB1DD:1546214400000:3jdgrjIjCisBnUA6vBo4jmzOCn8","transitioning":"no","transitioningMessage":null,"transitioningProgress":null,"uuid":"37062458-5711-4c3f-b9ba-d47390e0ea6c","windowsCommand":"docker run --rm -v \"C:\\Program Files\\rancher:C:\\Program Files\\rancher\" rancher\/agent-windows:v0.2.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.11 url: http://127.0.0.1:8880/v2-beta/scripts/00D7BC952009E1FAB1DD:1546214400000:3jdgrjIjCisBnUA6vBo4jmzOCn8 registrationToken: 00D7BC952009E1FAB1DD:1546214400000:3jdgrjIjCisBnUA6vBo4jmzOCn8 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.11 http://192.168.72.129:8880/v1/scripts/00D7BC952009E1FAB1DD:1546214400000:3jdgrjIjCisBnUA6vBo4jmzOCn8 Unable to find image 'rancher/agent:v1.2.11' locally v1.2.11: 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 bbad862633b9: Pull complete 3cf9849d7f3c: Pull complete Digest: sha256:0fba3fb10108f7821596dc5ad4bfa30e93426d034cd3471f6ccd3afb5f87a963 Status: Downloaded newer image for rancher/agent:v1.2.11 INFO: Running Agent Registration Process, CATTLE_URL=http://192.168.72.129:8880/v1 INFO: Attempting to connect to: http://192.168.72.129:8880/v1 INFO: http://192.168.72.129:8880/v1 is accessible INFO: Configured Host Registration URL info: CATTLE_URL=http://192.168.72.129:8880/v1 ENV_URL=http://192.168.72.129:8880/v1 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=72CA2CFE271DDB7F34BD 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.72.129:8880/v1 INFO: ENV: DETECTED_CATTLE_AGENT_IP=172.17.0.1 INFO: ENV: RANCHER_AGENT_IMAGE=rancher/agent:v1.2.11 INFO: Launched Rancher Agent: a0f0958cda5d3025e5d44908c905872b1a6b34e07b730523d12a5ea706a58309 waiting 8 min for host registration to finish 1 more min KUBECTL_TOKEN base64 encoded: QmFzaWMgTnpnMVFqQXdOamRCTlRnMk1EbEJPVFV3TlRRNlRESkdWR1p4VUZGbVRGb3hVMWwxVjJwRlRXcExlRU5YV25JMWVtSkhaMjVFVWtGTVRFWjZOQT09 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-7b48b696fc-4mzrm 1/1 Running 0 6m kube-system kube-dns-6655f78c68-ss7rb 3/3 Running 0 6m kube-system kubernetes-dashboard-6f54f7c4b-dkfrc 1/1 Running 0 6m kube-system monitoring-grafana-7877679464-f8h9h 1/1 Running 0 6m kube-system monitoring-influxdb-64664c6cf5-wwnrj 1/1 Running 0 6m kube-system tiller-deploy-6f4745cbcf-k8qqd 1/1 Running 0 6m upgrade server side of helm in kubernetes Client: &version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"} Server: &version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"} sleep 90 Creating /root/.helm Creating /root/.helm/repository Creating /root/.helm/repository/cache Creating /root/.helm/repository/local Creating /root/.helm/plugins Creating /root/.helm/starters Creating /root/.helm/cache/archive Creating /root/.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 /root/.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.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"} Server: &version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", 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-7b48b696fc-4mzrm 1/1 Running 0 10m kube-system kube-dns-6655f78c68-ss7rb 3/3 Running 0 10m kube-system kubernetes-dashboard-6f54f7c4b-dkfrc 1/1 Running 0 10m kube-system monitoring-grafana-7877679464-f8h9h 1/1 Running 0 10m kube-system monitoring-influxdb-64664c6cf5-wwnrj 1/1 Running 0 10m kube-system tiller-deploy-78db58d887-6jmkg 1/1 Running 0 2m finished! [root@localhost ~]# helm list [root@localhost ~]# kubectl version Client Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.5", GitCommit:"753b2dbc622f5cc417845f0ff8a77f539a4213ea", GitTreeState:"clean", BuildDate:"2018-11-26T14:41:50Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"11+", GitVersion:"v1.11.5-rancher1", GitCommit:"44636ddf318af0483af806e255d0be4bb6a2e3d4", GitTreeState:"clean", BuildDate:"2018-12-04T04:28:34Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"} [root@localhost ~]# kubectl get pods --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE kube-system heapster-7b48b696fc-4mzrm 1/1 Running 0 13m kube-system kube-dns-6655f78c68-ss7rb 3/3 Running 0 13m kube-system kubernetes-dashboard-6f54f7c4b-dkfrc 1/1 Running 0 13m kube-system monitoring-grafana-7877679464-f8h9h 1/1 Running 0 13m kube-system monitoring-influxdb-64664c6cf5-wwnrj 1/1 Running 0 13m kube-system tiller-deploy-78db58d887-6jmkg 1/1 Running 0 5m
1.
|
Helm commands failing on tiller on RHEL 7.6 (VMware 12.5.9) - tiller is up | Closed | michaelobrien |