aerogear / aerogear/mobile-services-installer
scripts/oc-cluster-up.sh not working on centos7 and ubuntu 18.04
- Langage dominant
- Shell
- Étoiles
- 4
- Forks
- 7
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Hello together,
I am currently trying to get the aerogear environment set up with oc cluster up. I tried the installer now in different ways. First approach like described in the README on this site with the master branch and also the way for the old 2.0.0 release like described here:
https://docs.aerogear.org/aerogear/Native/getting-started-installing.html
Unfortunately without success yet. I like to focus an the master branch in the following. Here is the output of the installer when used on a fresh centos minimal install. I also included ansible and net-tools packages.
I always see the same behavior "Wait for IDM DB pod to be ready" times out. When I look into the namespace mobile-developer-services, I see that the keycloak pod was successfully deployed and that sso-postgresql failed.
Can anyone provide directions here what I am doing wrong or how I can work around the issue?
```
[root@openshift mobile-services-installer]# ./scripts/oc-cluster-up.sh --public-ip 192.168.0.4 --registry-username $REGISTRY_USERNAME --registry-password $REGISTRY_PASSWORD
Getting a Docker client ...
Checking if image openshift/origin-control-plane:v3.11 is available ...
Checking type of volume mount ...
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 ...
I1124 16:55:46.127869 4241 config.go:40] Running "create-master-config"
I1124 16:55:50.974000 4241 config.go:46] Running "create-node-config"
Wrote config to: "/root/mobile-services-installer/scripts/../openshift.local.clusterup"
Getting a Docker client ...
Checking if image openshift/origin-control-plane:v3.11 is available ...
Checking type of volume mount ...
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 ...
I1124 16:56:00.270175 4738 flags.go:30] Running "create-kubelet-flags"
I1124 16:56:02.516120 4738 run_kubelet.go:49] Running "start-kubelet"
I1124 16:56:03.937573 4738 run_self_hosted.go:181] Waiting for the kube-apiserver to be ready ...
I1124 16:56:35.975177 4738 interface.go:26] Installing "kube-proxy" ...
I1124 16:56:35.975245 4738 interface.go:26] Installing "kube-dns" ...
I1124 16:56:35.975256 4738 interface.go:26] Installing "openshift-service-cert-signer-operator" ...
I1124 16:56:35.975266 4738 interface.go:26] Installing "openshift-apiserver" ...
I1124 16:56:35.975316 4738 apply_template.go:81] Installing "openshift-apiserver"
I1124 16:56:35.976054 4738 apply_template.go:81] Installing "kube-dns"
I1124 16:56:35.978254 4738 apply_template.go:81] Installing "openshift-service-cert-signer-operator"
I1124 16:56:35.980007 4738 apply_template.go:81] Installing "kube-proxy"
I1124 16:56:49.001502 4738 interface.go:41] Finished installing "kube-proxy" "kube-dns" "openshift-service-cert-signer-operator" "openshift-apiserver"
I1124 16:58:37.124600 4738 run_self_hosted.go:242] openshift-apiserver available
I1124 16:58:37.124687 4738 interface.go:26] Installing "openshift-controller-manager" ...
I1124 16:58:37.124718 4738 apply_template.go:81] Installing "openshift-controller-manager"
I1124 16:58:43.039318 4738 interface.go:41] Finished installing "openshift-controller-manager"
Adding default OAuthClient redirect URIs ...
Adding router ...
Adding persistent-volumes ...
Adding registry ...
Adding sample-templates ...
Adding web-console ...
Adding centos-imagestreams ...
I1124 16:58:43.074975 4738 interface.go:26] Installing "openshift-router" ...
I1124 16:58:43.075011 4738 interface.go:26] Installing "persistent-volumes" ...
I1124 16:58:43.075023 4738 interface.go:26] Installing "openshift-image-registry" ...
I1124 16:58:43.075033 4738 interface.go:26] Installing "sample-templates" ...
I1124 16:58:43.075046 4738 interface.go:26] Installing "openshift-web-console-operator" ...
I1124 16:58:43.075058 4738 interface.go:26] Installing "centos-imagestreams" ...
I1124 16:58:43.075203 4738 apply_list.go:67] Installing "centos-imagestreams"
I1124 16:58:43.075958 4738 interface.go:26] Installing "sample-templates/mariadb" ...
I1124 16:58:43.075996 4738 interface.go:26] Installing "sample-templates/mysql" ...
I1124 16:58:43.076009 4738 interface.go:26] Installing "sample-templates/postgresql" ...
I1124 16:58:43.076020 4738 interface.go:26] Installing "sample-templates/cakephp quickstart" ...
I1124 16:58:43.076033 4738 interface.go:26] Installing "sample-templates/nodejs quickstart" ...
I1124 16:58:43.076045 4738 interface.go:26] Installing "sample-templates/rails quickstart" ...
I1124 16:58:43.076058 4738 interface.go:26] Installing "sample-templates/mongodb" ...
I1124 16:58:43.076069 4738 interface.go:26] Installing "sample-templates/dancer quickstart" ...
I1124 16:58:43.076081 4738 interface.go:26] Installing "sample-templates/django quickstart" ...
I1124 16:58:43.076092 4738 interface.go:26] Installing "sample-templates/jenkins pipeline ephemeral" ...
I1124 16:58:43.076104 4738 interface.go:26] Installing "sample-templates/sample pipeline" ...
I1124 16:58:43.076356 4738 apply_list.go:67] Installing "sample-templates/sample pipeline"
I1124 16:58:43.076799 4738 apply_template.go:81] Installing "openshift-web-console-operator"
I1124 16:58:43.077375 4738 apply_list.go:67] Installing "sample-templates/rails quickstart"
I1124 16:58:43.077726 4738 apply_list.go:67] Installing "sample-templates/mariadb"
I1124 16:58:43.077969 4738 apply_list.go:67] Installing "sample-templates/mongodb"
I1124 16:58:43.078018 4738 apply_list.go:67] Installing "sample-templates/postgresql"
I1124 16:58:43.078237 4738 apply_list.go:67] Installing "sample-templates/cakephp quickstart"
I1124 16:58:43.078399 4738 apply_list.go:67] Installing "sample-templates/dancer quickstart"
I1124 16:58:43.078445 4738 apply_list.go:67] Installing "sample-templates/nodejs quickstart"
I1124 16:58:43.078802 4738 apply_list.go:67] Installing "sample-templates/django quickstart"
I1124 16:58:43.078898 4738 apply_list.go:67] Installing "sample-templates/jenkins pipeline ephemeral"
I1124 16:58:43.077975 4738 apply_list.go:67] Installing "sample-templates/mysql"
I1124 16:59:12.104125 4738 interface.go:41] Finished installing "sample-templates/mariadb" "sample-templates/mysql" "sample-templates/postgresql" "sample-templates/cakephp quickstart" "sample-templates/nodejs quickstart" "sample-templates/rails quickstart" "sample-templates/mongodb" "sample-templates/dancer quickstart" "sample-templates/django quickstart" "sample-templates/jenkins pipeline ephemeral" "sample-templates/sample pipeline"
I1124 16:59:41.735103 4738 interface.go:41] Finished installing "openshift-router" "persistent-volumes" "openshift-image-registry" "sample-templates" "openshift-web-console-operator" "centos-imagestreams"
Login to server ...
Creating initial project "myproject" ...
Server Information ...
OpenShift server started.
The server is accessible via web console at:
https://192.168.0.4.nip.io:8443
You are logged in as:
User: developer
Password:
To login as administrator:
oc login -u system:admin
error: You are not a member of project "default".
You have one project on this server: My Project (myproject)
To see projects on another server, pass '--server='.
Error from server (Forbidden): secrets "router-certs" is forbidden: User "developer" cannot get secrets in the namespace "default": no RBAC policy matched
Error from server (NotFound): secrets "router-certs" not found
Error from server (NotFound): error when replacing "STDIN": secrets "router-certs" not found
Error from server (NotFound): services "router" not found
Error from server (NotFound): services "router" not found
Error from server (NotFound): deploymentconfigs.apps.openshift.io "router" not found
*******************
Cluster certificate is located in /tmp/oc-certs/localcluster.crt. Install it to your mobile device.
Logged into "https://127.0.0.1:8443" as "system:admin" using existing credentials.
You have access to the following projects and can switch between them with 'oc project ':
default
kube-dns
kube-proxy
kube-public
kube-system
* myproject
openshift
openshift-apiserver
openshift-controller-manager
openshift-core-operators
openshift-infra
openshift-node
openshift-service-cert-signer
openshift-web-console
Using project "myproject".
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [Install Mobile Services to an OpenShift cluster] *****************************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************************************************************
ok: [localhost]
TASK [prerequisites : fail] ********************************************************************************************************************************************
skipping: [localhost]
TASK [namespace : Check namespace doesn't already exist] ***************************************************************************************************************
changed: [localhost]
TASK [namespace : Creating namespace mobile-developer-services] ********************************************************************************************************
changed: [localhost]
TASK [pull-secrets : Ensure registry username and password are set] ****************************************************************************************************
skipping: [localhost]
TASK [pull-secrets : Create imagestream pull secret in the openshft namespace] *****************************************************************************************
changed: [localhost]
TASK [pull-secrets : Create image pull secret in the mobile-developer-services namespace] ******************************************************************************
changed: [localhost]
TASK [pull-secrets : Link the secret for pulling images] ***************************************************************************************************************
changed: [localhost]
TASK [idm : Setup RH-SSO Imagestreams] *********************************************************************************************************************************
included: /root/mobile-services-installer/roles/idm/tasks/imagestream.yml for localhost
TASK [idm : Ensure redhat-sso73-openshift:1.0 tag is present for redhat sso in openshift namespace] ********************************************************************
ok: [localhost]
TASK [idm : Ensure redhat-sso73-openshift:1.0 tag has an imported image in openshift namespace] ************************************************************************
FAILED - RETRYING: Ensure redhat-sso73-openshift:1.0 tag has an imported image in openshift namespace (50 retries left).
ok: [localhost]
TASK [idm : Install IDM] ***********************************************************************************************************************************************
included: /root/mobile-services-installer/roles/idm/tasks/install.yml for localhost
TASK [include_role : namespace] ****************************************************************************************************************************************
TASK [namespace : Check namespace doesn't already exist] ***************************************************************************************************************
changed: [localhost]
TASK [namespace : Creating namespace mobile-developer-services] ********************************************************************************************************
skipping: [localhost]
TASK [idm : Create required objects] ***********************************************************************************************************************************
changed: [localhost] => (item=https://raw.githubusercontent.com/integr8ly/keycloak-operator/v1.9.2/deploy/rbac.yaml)
changed: [localhost] => (item=https://raw.githubusercontent.com/integr8ly/keycloak-operator/v1.9.2/deploy/crds/Keycloak_crd.yaml)
changed: [localhost] => (item=https://raw.githubusercontent.com/integr8ly/keycloak-operator/v1.9.2/deploy/crds/KeycloakRealm_crd.yaml)
changed: [localhost] => (item=https://raw.githubusercontent.com/integr8ly/keycloak-operator/v1.9.2/deploy/operator.yaml)
TASK [idm : Create IDM resource template] ******************************************************************************************************************************
changed: [localhost]
TASK [idm : Create IDM resource] ***************************************************************************************************************************************
changed: [localhost]
TASK [idm : Remove IDM template file] **********************************************************************************************************************************
changed: [localhost]
TASK [idm : Wait for IDM operator pod to be ready] *********************************************************************************************************************
FAILED - RETRYING: Wait for IDM operator pod to be ready (50 retries left).
FAILED - RETRYING: Wait for IDM operator pod to be ready (49 retries left).
changed: [localhost]
TASK [idm : Wait for IDM DB pod to be ready] ***************************************************************************************************************************
FAILED - RETRYING: Wait for IDM DB pod to be ready (50 retries left).
FAILED - RETRYING: Wait for IDM DB pod to be ready (49 retries left).
...
fatal: [localhost]: FAILED! => {"attempts": 50, "changed": true, "cmd": "oc get pods --namespace=mobile-developer-services --selector=deploymentConfig=sso-postgresql -o jsonpath='{.items[*].status.phase}' | grep Running", "delta": "0:00:00.432069", "end": "2019-11-24 17:21:52.952178", "msg": "non-zero return code", "rc": 1, "start": "2019-11-24 17:21:52.520109", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
PLAY RECAP *************************************************************************************************************************************************************
localhost : ok=15 changed=10 unreachable=0 failed=1 skipped=4 rescued=0 ignored=0
```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.