-
Bug
-
Resolution: Done
-
Blocker
-
None
-
None
-
Quay Enterprise
Description of problem:
Failed to configure OCS (NooBaa) as storage backend for Quay via setup operator
Version-Release number of selected component (if applicable):
registry-proxy.engineering.redhat.com/rh-osbs/quay-setup-operator:0.0.8-1
How reproducible:
Always
Steps to Reproduce:
1. Refer to https://github.com/redhat-cop/quay-operator#deploy-the-operator , deploy setup operator
2. create a quayecosystem
$cat file
spec: quay: registryBackends: - name: rhocs rhocs: hostname: 172.30.16.139 port: 80 secure: false accessKey: WN2T29Ef1vf50O52wXVu secretKey: 2kcKK93T+9ATjFIpiJgzKYD+V9MHoNCqQ7d/7vd8 bucketName: quay
3. Check Quay pod
Actual results:
Quay pod cannot be running
Expected results:
Quay pod should be running, configure OCS as the storage backend
Additional info:
logs in operator pod:
{"level":"error","ts":1576051727.7906559,"logger":"controller_quayecosystem","msg":"Failed to Validate Component","error":"registry-storage Validation Failed: Missing required parameter(s) for storage rhocs","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/tmp/quay-operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/redhat-cop/quay-operator/pkg/controller/quayecosystem/setup.(*QuaySetupManager).SetupQuay\n\t/tmp/quay-operator/pkg/controller/quayecosystem/setup/setup.go:217\ngithub.com/redhat-cop/quay-operator/pkg/controller/quayecosystem.(*ReconcileQuayEcosystem).Reconcile\n\t/tmp/quay-operator/pkg/controller/quayecosystem/quayecosystem_controller.go:180\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/tmp/quay-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:216\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/tmp/quay-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:192\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\t/tmp/quay-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:171\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/tmp/quay-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:152\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/tmp/quay-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:153\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/tmp/quay-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
logs from config tool:
2019-12-11 08:08:33,952 [51] [ERROR] [util.config.validator] Validation exception Traceback (most recent call last): File "/quay-registry/util/config/validator.py", line 78, in validate_service_for_config VALIDATORS[service](validator_context) File "/quay-registry/util/config/validators/validate_storage.py", line 18, in validate providers = _get_storage_providers(config, ip_resolver, config_provider).items() File "/quay-registry/util/config/validators/validate_storage.py", line 52, in _get_storage_providers raise ConfigValidationException('Missing required parameter(s) for storage %s' % name) ConfigValidationException: Missing required parameter(s) for storage rhocs gunicorn-config stdout | 2019-12-11 08:08:33,952 [51] [ERROR] [util.config.validator] Validation exception Traceback (most recent call last): File "/quay-registry/util/config/validator.py", line 78, in validate_service_for_config VALIDATORS[service](validator_context) File "/quay-registry/util/config/validators/validate_storage.py", line 18, in validate providers = _get_storage_providers(config, ip_resolver, config_provider).items() File "/quay-registry/util/config/validators/validate_storage.py", line 52, in _get_storage_providers raise ConfigValidationException('Missing required parameter(s) for storage %s' % name) ConfigValidationException: Missing required parameter(s) for storage rhocs 10.131.0.29 () - quayconfig [11/Dec/2019:08:08:33 +0000] "POST /api/v1/superuser/config/validate/registry-storage HTTP/1.1" 200 79 "-" "Go-http-client/1.1" (0.003 2517 0.003)