fabric8io / fabric8-platform

Generates the distribution of the fabric8 microservices platform
Apache License 2.0
104 stars 66 forks source link

Fabric8 Database Pods not installing on Openshift/OKD #1963

Open glennodickson opened 5 years ago

glennodickson commented 5 years ago

I've installed openshift OKD (using Ansible) on centos 7 in VB and seems to run fine. What is the correct guide/link to use. I've tried to install Fabric using the first two as they are quite similar:

After executeing the command: gofabric8 deploy --package system --http=true --legacy=false -n fabric8

The pods I see are:

NAME                          READY     STATUS             RESTARTS   AGE
auth-2-5v69z                  0/1       CrashLoopBackOff   13         29m
auth-2-deploy                 1/1       Running            0          29m
auth-db-1-59qmk               0/1       CrashLoopBackOff   7          37m
auth-db-1-deploy              1/1       Running            0          37m
che-starter-1-gd72k           1/1       Running            0          37m
configmapcontroller-1-zsf8d   1/1       Running            0          37m
exposecontroller-2-qqkmv      1/1       Running            0          29m
fabric8-2-hfvq6               1/1       Running            0          29m
forge-2-pnsjj                 1/1       Running            0          29m
init-tenant-2-deploy          1/1       Running            0          29m
init-tenant-2-lv2ps           0/1       CrashLoopBackOff   13         29m
init-tenant-db-1-5fhfg        0/1       CrashLoopBackOff   6          10m
init-tenant-db-1-deploy       1/1       Running            0          37m
keycloak-2-deploy             1/1       Running            0          29m
keycloak-2-gqlxp              0/1       CrashLoopBackOff   6          29m
keycloak-db-1-deploy          1/1       Running            0          37m
keycloak-db-1-t7v77           0/1       Pending            0          37m
wit-2-4zdv4                   0/1       CrashLoopBackOff   7          29m
wit-2-deploy                  1/1       Running            0          29m
wit-db-2-deploy               1/1       Running            0          29m
wit-db-2-plgjk                0/1       Pending            0          29m

However, the following db pods display the following errors: init-tenant-db-1-5fhfg (terminal error msg): /usr/share/container-scripts/postgresql/common.sh: line 127: /var/lib/pgsql/passwd: Permission denied

wit-db-2-plgjk (Event error msg): Volume binding started, waiting for completion

auth-db-1-59qmk (terminal error msg): /usr/share/container-scripts/postgresql/common.sh: line 127: /var/lib/pgsql/passwd: Permission denied

keycloak-db-1-t7v77 (Event error msg): Volume binding started, waiting for completion

I've tried running the following command "gofabric8 volumes" and only some PVC become bound and messages in the Storage section of Openshift/OKD display:

I've attempted to:

  1. Is there a specific time during installaton where I should run the "gofabric8 volumes" if at all?
  2. Are there specific instructions for Openshift/OKD?

Thanks in advance