Closed kuzmanzs closed 4 years ago
I have allowed on firewall 80, 8443 tcp has no any effect I have already stopped apache other services..
me@me-NANUC8:~/dev/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit$ oc cluster up -v 2
Getting a Docker client ...
Checking if image openshift/origin-control-plane:v3.11 is available ...
Pulling image openshift/origin-control-plane:v3.11
E0322 17:15:00.539621 8494 helper.go:179] Reading docker config from /home/me/.docker/config.json failed: open /home/me/.docker/config.json: no such file or directory, will attempt to pull image docker.io/openshift/origin-control-plane:v3.11 anonymously
Image pull complete
Pulling image openshift/origin-cli:v3.11
E0322 17:15:03.084421 8494 helper.go:179] Reading docker config from /home/me/.docker/config.json failed: open /home/me/.docker/config.json: no such file or directory, will attempt to pull image docker.io/openshift/origin-cli:v3.11 anonymously
Image pull complete
Creating shared mount directory on the remote host ...
Determining server IP ...
I0322 17:15:08.493165 8494 up.go:1009] Cannot use the Docker host IP():
On freash new Ubuntu OC works fine.. but on existing server I can't make it runnable. Some port is blocked or?
/.occluster/openshift-controller-manager$ oc cluster up --base-dir="$HOME/.occluster" Getting a Docker client ... Checking if image openshift/origin-control-plane:v3.11 is available ... Creating shared mount directory on the remote host ... Determining server IP ... Checking if OpenShift is already running ... Checking for supported Docker version (=>1.22) ... Checking if insecured registry is configured properly in Docker ... Checking if required ports are available ... Checking if OpenShift client is configured properly ... Checking if image openshift/origin-control-plane:v3.11 is available ... Starting OpenShift using openshift/origin-control-plane:v3.11 ... I0322 19:30:22.932740 28772 flags.go:30] Running "create-kubelet-flags" I0322 19:30:23.952455 28772 run_kubelet.go:49] Running "start-kubelet" I0322 19:30:24.227648 28772 run_self_hosted.go:181] Waiting for the kube-apiserver to be ready ... I0322 19:30:38.237907 28772 interface.go:26] Installing "kube-proxy" ... I0322 19:30:38.237928 28772 interface.go:26] Installing "kube-dns" ... I0322 19:30:38.237941 28772 interface.go:26] Installing "openshift-service-cert-signer-operator" ... I0322 19:30:38.237950 28772 interface.go:26] Installing "openshift-apiserver" ... I0322 19:30:38.237975 28772 apply_template.go:81] Installing "openshift-apiserver" I0322 19:30:38.238123 28772 apply_template.go:81] Installing "kube-proxy" I0322 19:30:38.238283 28772 apply_template.go:81] Installing "kube-dns" I0322 19:30:38.238405 28772 apply_template.go:81] Installing "openshift-service-cert-signer-operator" I0322 19:30:47.889475 28772 interface.go:41] Finished installing "kube-proxy" "kube-dns" "openshift-service-cert-signer-operator" "openshift-apiserver" I0322 19:31:21.915912 28772 run_self_hosted.go:242] openshift-apiserver available I0322 19:31:21.915941 28772 interface.go:26] Installing "openshift-controller-manager" ... I0322 19:31:21.915962 28772 apply_template.go:81] Installing "openshift-controller-manager" I0322 19:31:23.592453 28772 interface.go:41] Finished installing "openshift-controller-manager" Adding default OAuthClient redirect URIs ... Adding router ... Adding persistent-volumes ... Adding centos-imagestreams ... Adding sample-templates ... Adding web-console ... Adding registry ... I0322 19:31:23.607773 28772 interface.go:26] Installing "openshift-router" ... I0322 19:31:23.607797 28772 interface.go:26] Installing "persistent-volumes" ... I0322 19:31:23.607809 28772 interface.go:26] Installing "centos-imagestreams" ... I0322 19:31:23.607816 28772 interface.go:26] Installing "sample-templates" ... I0322 19:31:23.607823 28772 interface.go:26] Installing "openshift-web-console-operator" ... I0322 19:31:23.607832 28772 interface.go:26] Installing "openshift-image-registry" ... I0322 19:31:23.607927 28772 apply_list.go:67] Installing "centos-imagestreams" I0322 19:31:23.608526 28772 interface.go:26] Installing "sample-templates/jenkins pipeline ephemeral" ... I0322 19:31:23.608541 28772 interface.go:26] Installing "sample-templates/sample pipeline" ... I0322 19:31:23.608552 28772 interface.go:26] Installing "sample-templates/postgresql" ... I0322 19:31:23.608560 28772 interface.go:26] Installing "sample-templates/cakephp quickstart" ... I0322 19:31:23.608570 28772 interface.go:26] Installing "sample-templates/django quickstart" ... I0322 19:31:23.608580 28772 interface.go:26] Installing "sample-templates/nodejs quickstart" ... I0322 19:31:23.608588 28772 interface.go:26] Installing "sample-templates/rails quickstart" ... I0322 19:31:23.608596 28772 interface.go:26] Installing "sample-templates/mongodb" ... I0322 19:31:23.608606 28772 interface.go:26] Installing "sample-templates/mariadb" ... I0322 19:31:23.608620 28772 interface.go:26] Installing "sample-templates/mysql" ... I0322 19:31:23.608629 28772 interface.go:26] Installing "sample-templates/dancer quickstart" ... I0322 19:31:23.608686 28772 apply_list.go:67] Installing "sample-templates/dancer quickstart" I0322 19:31:23.608855 28772 apply_list.go:67] Installing "sample-templates/jenkins pipeline ephemeral" I0322 19:31:23.608980 28772 apply_list.go:67] Installing "sample-templates/sample pipeline" I0322 19:31:23.609097 28772 apply_list.go:67] Installing "sample-templates/postgresql" I0322 19:31:23.609223 28772 apply_list.go:67] Installing "sample-templates/cakephp quickstart" I0322 19:31:23.609338 28772 apply_list.go:67] Installing "sample-templates/django quickstart" I0322 19:31:23.609452 28772 apply_list.go:67] Installing "sample-templates/nodejs quickstart" I0322 19:31:23.609564 28772 apply_list.go:67] Installing "sample-templates/rails quickstart" I0322 19:31:23.609820 28772 apply_list.go:67] Installing "sample-templates/mongodb" I0322 19:31:23.609952 28772 apply_list.go:67] Installing "sample-templates/mariadb" I0322 19:31:23.610014 28772 apply_template.go:81] Installing "openshift-web-console-operator" I0322 19:31:23.610063 28772 apply_list.go:67] Installing "sample-templates/mysql" I0322 19:31:28.430161 28772 interface.go:41] Finished installing "sample-templates/jenkins pipeline ephemeral" "sample-templates/sample pipeline" "sample-templates/postgresql" "sample-templates/cakephp quickstart" "sample-templates/django quickstart" "sample-templates/nodejs quickstart" "sample-templates/rails quickstart" "sample-templates/mongodb" "sample-templates/mariadb" "sample-templates/mysql" "sample-templates/dancer quickstart"
is running but it is going still to timeout
oc adm diagnostics [Note] Determining if client configuration exists for client/cluster diagnostics Info: Successfully read a client config file at '/home/me/.kube/config' [Note] Could not configure a client with cluster-admin permissions for the current server, so cluster diagnostics will be skipped
[Note] Running diagnostic: ConfigContexts[me/localhost:8443/developer] Description: Validate client config context is complete and has connectivity
Info: The current client config context is 'me/localhost:8443/developer': The server URL is 'https://localhost:8443' The user authentication is 'developer/localhost:8443' The current project is 'me' Successfully requested project list; has access to project(s): [testing]
[Note] Running diagnostic: DiagnosticPod Description: Create a pod to run diagnostics from the application standpoint
ERROR: [DCli2001 from diagnostic DiagnosticPod@openshift/origin/pkg/oc/cli/admin/diagnostics/diagnostics/client/pod/run_diagnostics_pod.go:109] Creating diagnostic pod with image openshift/origin-deployer:v3.11.0 failed. Error: (*errors.StatusError) pods "pod-diagnostic-test-" is forbidden: no providers available to validate pod request
[Note] Summary of diagnostics execution (version v3.11.0+0cbc58b): [Note] Errors seen: 1
Lot features are not running marked with STAR (compared to anyther working PC): openshift/origin-node v3.11 a53faf391d8d 3 days ago 1.19GB openshift/origin-control-plane v3.11 d83ae8f5bdc0 3 days ago 835MB openshift/origin-haproxy-router v3.11 da794326a100 3 days ago 415MB openshift/origin-deployer v3.11 9e56cff1ffab 3 days ago 388MB openshift/origin-cli v3.11 886f97117fdd 3 days ago 388MB openshift/origin-hyperkube v3.11 1bd6718db234 3 days ago 513MB openshift/origin-hypershift v3.11 bb2a4b797105 3 days ago 554MB openshift/origin-pod v3.11 91fe4a93eb19 3 days ago 265MB openshift/origin-docker-registry v3.11 9dffb2abf1dd 13 months ago 310MB hello-world latest fce289e99eb9 14 months ago 1.84kB openshift/origin-web-console v3.11 be30b6cce5fa 17 months ago 339MB openshift/origin-service-serving-cert-signer v3.11 47dadf9d43b6 17 months ago 276MB
Hello Everyone,
After trying to fix all possible issues like timeouts, EOF, errors, panic and other random problems (I had all of them around 300 fails during oc cluster up) I revert my vm to state before installing of below things and I've done it in correct way I guess because now it works like it should from the beginning (+ I can do oc cluster up/down without stress) :)
PS. It can be also limit 100 pulls of Docker image from Openshift (try docker run hello-world).
sudo apt update && sudo apt upgrade (the most important step !!!)
sudo apt install curl curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update && sudo apt -y install docker-ce
sudo usermod -aG docker XXXX
groups XXXX
cat << EOF | sudo tee /etc/docker/daemon.json { "insecure-registries" : [ "172.30.0.0/16" ] } EOF
sudo systemctl daemon-reload sudo systemctl restart docker
sudo systemctl is-enabled docker sudo systemctl is-active docker
Regards, Artur
History: wget https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz tar xvzf openshift.tar.gz cd openshift-origin-client-tools/ sudo mv oc kubectl /usr/local/bin/ cat << EOF | sudo tee /etc/docker/daemon.json
{ "insecure-registries" : [ "172.30.0.0/16" ] } EOF
sudo systemctl restart docker
oc version oc v3.11.0+0cbc58b kubernetes v1.11.0+d4cacc0 features: Basic-Auth GSSAPI Kerberos SPNEGO
HERE was not listed "Server https://127.0.0.1:8443" like by other users ??
Distributor ID: Ubuntu Description: Ubuntu 18.04.2 LTS Release: 18.04 Codename: bionic
docker version Client: Docker Engine - Community Version: 19.03.8 API version: 1.40 Go version: go1.12.17 Git commit: afacb8b7f0 Built: Wed Mar 11 01:25:46 2020 OS/Arch: linux/amd64 Experimental: false
Server: Docker Engine - Community Engine: Version: 19.03.8 API version: 1.40 (minimum version 1.12) Go version: go1.12.17 Git commit: afacb8b7f0 Built: Wed Mar 11 01:24:19 2020 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.2.13 GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429 runc: Version: 1.0.0-rc10 GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd docker-init: Version: 0.18.0 GitCommit: fec3683
docker images REPOSITORY TAG IMAGE ID CREATED SIZE openshift/origin-node v3.11 a53faf391d8d 43 hours ago 1.19GB openshift/origin-pod v3.11 91fe4a93eb19 43 hours ago 265MB
oc cluster up Getting a Docker client ... Checking if image openshift/origin-control-plane:v3.11 is available ... Pulling image openshift/origin-cli:v3.11 Image pull complete Creating shared mount directory on the remote host ... Determining server IP ... Checking if OpenShift is already running ... Checking for supported Docker version (=>1.22) ... Checking if insecured registry is configured properly in Docker ... Checking if required ports are available ... Checking if OpenShift client is configured properly ... Checking if image openshift/origin-control-plane:v3.11 is available ... Starting OpenShift using openshift/origin-control-plane:v3.11 ... I0321 12:52:42.043361 11990 flags.go:30] Running "create-kubelet-flags" I0321 12:52:43.156436 11990 run_kubelet.go:49] Running "start-kubelet" I0321 12:52:43.442114 11990 run_self_hosted.go:181] Waiting for the kube-apiserver to be ready ... I0321 12:53:18.474969 11990 interface.go:26] Installing "kube-proxy" ... I0321 12:53:18.474989 11990 interface.go:26] Installing "kube-dns" ... I0321 12:53:18.474999 11990 interface.go:26] Installing "openshift-service-cert-signer-operator" ... I0321 12:53:18.475008 11990 interface.go:26] Installing "openshift-apiserver" ... I0321 12:53:18.475033 11990 apply_template.go:81] Installing "openshift-apiserver" I0321 12:53:18.475248 11990 apply_template.go:81] Installing "kube-proxy" I0321 12:53:18.475444 11990 apply_template.go:81] Installing "kube-dns" I0321 12:53:18.475602 11990 apply_template.go:81] Installing "openshift-service-cert-signer-operator" I0321 12:53:21.714593 11990 interface.go:41] Finished installing "kube-proxy" "kube-dns" "openshift-service-cert-signer-operator" "openshift-apiserver" Error: Get https://127.0.0.1:8443/apis/apiregistration.k8s.io/v1beta1/apiservices: dial tcp 127.0.0.1:8443: connect: connection refused
expected: up and running
I have tested with enabled and disabled ufw no difference.