-
Bug
-
Resolution: Done
-
Major
-
quay-v3.3.0
Description:
This is an issue found when using Quay 3.3 RC operator image "quay-operator:v1.1.0-rc1" to deploy Quay ENV, without specifying the database image,
The new operator use database image "registry.hub.docker.com/library/postgres:latest" to deploy Quay's database, the result is the postgres was failed to start, error message is "chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted"
Compared with Quay 1.0.2 Operator, it used "registry.access.redhat.com/rhscl/postgresql-96-rhel7:1" as default quay database image.
ENV:
Quay imge: quay.io/quay/quay:3.2.1-1
Quay Operator: quay-operator:v1.1.0-rc1
Steps:
1. Deploy Quay Operator with the following steps.
Modify the file "deploy/operator.yaml" to replace the image with
"quay.io/kmullins/quay-operator:v1.1.0-rc1"
Run the following commands to deploy the Operator to OpenShift:
$ oc new-project quay-enterprise
$ oc create -f deploy/crds/redhatcop.redhat.io_quayecosystems_crd.yaml
$ oc create -f deploy/service_account.yaml
$ oc create -f deploy/cluster_role.yaml
$ oc create -f deploy/cluster_role_binding.yaml
$ oc create -f deploy/role.yaml
$ oc create -f deploy/role_binding.yaml
$ oc create -f deploy/operator.yaml
2. Deploy Quay ENV by running "oc create -f quayecosystem_cr.yaml"
Expected Result:
Quay ENV will be deployed successfully using new Operator.
Actual Results:
Quay ENV deployment was failed at deploying quay-postgresql databae.
lizhang@lzha-mac deploy % oc get pod
NAME READY STATUS RESTARTS AGE
demo-quayecosystem-quay-postgresql-64d5d79fbd-88wgs 0/1 CrashLoopBackOff 6 8m21s
demo-quayecosystem-redis-74ff87d7fc-k2w49 1/1 Running 0 9m2s
quay-operator-d497d6d45-vxwd8 1/1 Running 0 12m
QuayEcosystem CR file used:
lizhang@lzha-mac deploy % cat quayecosystem_cr.yaml
apiVersion: redhatcop.redhat.io/v1alpha1
kind: QuayEcosystem
metadata:
name: demo-quayecosystem
spec:
quay:
imagePullSecretName: redhat-pull-secret
image: quay.io/quay/quay:3.2.1-1
keepConfigDeployment: true
enableRepoMirroring: true
database:
volumeSize: 30Gi
envVars:
- name: DEBUGLOG
value: "true"
clair:
enabled: true
image: quay.io/quay/clair-jwt:v3.2.1-1
imagePullSecretName: redhat-pull-secret
updateInterval: "60m"
- blocks
-
PROJQUAY-77 Quay Setup Operator - Day 2
- Closed