IBM / operand-deployment-lifecycle-manager

Managing the lifecycle for a group of operands
Apache License 2.0
32 stars 46 forks source link

configmap "odlm-scope" not found #743

Open arcmop opened 3 years ago

arcmop commented 3 years ago

/kind bug

What steps did you take and what happened: Operator auto update on OCP 4 got fail, the reason is:

configmap "odlm-scope" not found

I solved this by creating the empty configmap:

kind: ConfigMap
apiVersion: v1
metadata:
  name: odlm-scope
  namespace: ibm-common-services
data: 
  namespaces: 

What did you expect to happen:

I reviewed the PR https://github.com/IBM/operand-deployment-lifecycle-manager/pull/542 , I think it is necsesary add to documentation or to the operator procedure the creation of that empty configmap to avoid issue.

Anything else you would like to add: File afected: config/manager/manager.yaml

Environment:

- ODLM version: > 1.5.x 
- Minikube/KIND/OCP version: OCP 4.7.9
- Kubernetes version: (use `kubectl version`): 1.20
- OS (e.g. from `/etc/os-release`): Red Hat Enterprise Linux CoreOS 47.83.202104250838-0 (Ootpa)
Daniel-Fan commented 3 years ago

Hi @arcmop

Thank you for pointing out this. We will add this prerequisite into the document when deploying the ODLM alone.

The ConfigMap odlm-scope is created by ibm-common-service-operator`. It is used to manage the cluster permission of ODLM. In order to make ODLM running properly, we require the ODLM to coordinate with cs-operator and namespace-scope operator.