Open TheNotary opened 5 years ago
Steps to take after fresh minimal install completes:
yum update -y
yum install -y git
git clone https://github.com/gshipley/installcentos.git -b 3.10
cd installcentos
./install-openshift.sh
Domain to use: (MYIP.nip.io):
Username: (root):
Password: (password):
OpenShift Version: (3.10):
IP: (192.168.1.129):
API Port: (8443):
I notice some shell script failures:
.
.
.
Package git-1.8.3.1-20.el7.x86_64 already installed and latest version
No package zile available.
Package kexec-tools-2.0.15-21.el7.x86_64 already installed and latest version
Package 1:NetworkManager-1.12.0-8.el7_6.x86_64 already installed and latest version
No package python2-pip available.
.
.
.
This leads to a failed ansible task:
Failure summary:
1. Hosts: 192.168.1.129
Play: Verify Requirements
Task: Run variable sanity checks
Message: last_checked_host: 192.168.1.129, last_checked_var: openshift_master_manage_htpasswd;Found removed variables: openshift_metrics_image_version is replaced by openshift_metrics_<component>_image; openshift_logging_elasticsearch_proxy_image_version is replaced by openshift_logging_elasticsearch_proxy_image;
htpasswd: cannot create file /etc/origin/master/htpasswd
I'm seeing that the solution to getting things like zile
to install correctly involves manually editing a file here /etc/yum.repos.d/epel.repo
which seems to be misconfigured during some minimal installs of centos (mine is centos 7.5 I believe). For me the 7th line needed to be patched to say enabled=1
.
After working around the issues with epel.repo
, I'm still getting these various errors as though the script isn't able to install oc
correctly and is failing to create a file:
Failure summary:
1. Hosts: 192.168.1.129
Play: Verify Requirements
Task: Run variable sanity checks
Message: last_checked_host: 192.168.1.129, last_checked_var: openshift_master_manage_htpasswd;Found removed variables: openshift_metrics_image_version is replaced by openshift_metrics_<component>_image; openshift_logging_elasticsearch_proxy_image_version is replaced by openshift_logging_elasticsearch_proxy_image;
htpasswd: cannot create file /etc/origin/master/htpasswd
./install-openshift.sh: line 155: oc: command not found
Failed to restart origin-master-api.service: Unit not found.
./install-openshift.sh: line 169: oc: command not found
created volume 1
./install-openshift.sh: line 169: oc: command not found
created volume 2
./install-openshift.sh: line 169: oc: command not found
created volume 3
Edit:
I'm thinking that the scripts in the repo never worked, and the things that I did to actually get the blank white screen were from downloading the binaries from https://www.okd.io/download.html and following their instructions, but also doing more stuff that I'll note below.
sudo true
sudo yum install -y wget git
cd ~
sudo systemctl stop firewalld
mkdir bin/
cd bin/
wget https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-server-v3.11.0-0cbc58b-linux-64bit.tar.gz
tar -zxvf openshift-origin-server-v3.11.0-0cbc58b-linux-64bit.tar.gz
cd openshift-origin-server-v3.11.0-0cbc58b-linux-64bit
echo 'export PATH="/home/john/bin/openshift-origin-server-v3.11.0-0cbc58b-linux-64bit:$PATH"' >> ~/.bashrc
sudo ./openshift start
cd ~/bin
wget https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz
tar -zxvf openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz
cd openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit
sudo chmod +r "/home/john/bin/openshift-origin-server-v3.11.0-0cbc58b-linux-64bit/openshift.local.config/master/admin.kubeconfig"
echo 'export PATH="/home/john/bin/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit:$PATH"' >> ~/.bashrc
echo 'export KUBECONFIG=/home/john/bin/openshift-origin-server-v3.11.0-0cbc58b-linux-64bit/openshift.local.config/master/admin.kubeconfig' >> ~/.bashrc
echo 'export CURL_CA_BUNDLE=/home/john/bin/openshift-origin-server-v3.11.0-0cbc58b-linux-64bit/openshift.local.config/master/ca.crt' >> ~/.bashrc
source ~/.bashrc
From there the server is actually working, but it seems to show a blank white screen when trying to reach the app... possibly because console isn't in the HOST section of the web request.
Ref: https://github.com/openshift/origin/issues/20983#issuecomment-421924429
cd ~
mkdir src
cd src
git clone https://github.com/openshift/origin.git -b release-3.10
cd origin
oc login -u system:admin
oc create namespace openshift-web-console
oc process -f install/origin-web-console/console-template.yaml -p "API_SERVER_CONFIG=$(cat install/origin-web-console/console-config.yaml)" | oc apply -n openshift-web-console -f -
Then fully test it out without using the web console:
oc login https://192.168.1.129:8443
test
test
oc new-project example
oc project example
oc new-app centos/ruby-25-centos7~https://github.com/sclorg/ruby-ex.git
oc expose svc/ruby-ex
So I did quite a bit of trail and error and had been having many problems. I ultimately switched to installing from branch 3.10 (which maybe should be a tag to make things more clear). While this made my install successful, and I can use the
oc
command to login and view status, I can't view the web UI... it just shows a blanks screen when going tohttps://console.MYIP.nip.io:8443
Also, when I curl that API, I do see this response:
I'm not sure what to make of that, but when I look at the docker ps, I see containers with names that used variables from my prior install steps... so maybe the old containers aren't being properly overwritten?
In the mean time I'm going to try a fresh install of Centos 7 again and keep notes here as I move forward.