Skip to content

operator-sdk run --olm reports installation failure after successful installation #2938

@aharbis

Description

@aharbis

Bug Report

What did you do?

operator-sdk run --olm \
  --olm-namespace=openshift-operator-lifecycle-manager \
  --manifests=deploy/olm-catalog/my-operator \
  --operator-version=0.9.0 \
  --operator-namespace=my-operator-ns

What did you expect to see?

Successful installation.

What did you see instead? Under which circumstances?

The log output from operator-sdk run --olm shows a fatal error stating the operator did not install successully, the the log(s) right before this error show phase: Succeeded:

INFO[0000] Waiting for ClusterServiceVersion "my-operator-ns/my-operator.v0.9.0" to reach 'Succeeded' phase
INFO[0000]   Waiting for ClusterServiceVersion "my-operator-ns/my-operator.v0.9.0" to appear
INFO[0003]   Found ClusterServiceVersion "my-operator-ns/my-operator.v0.9.0" phase: Pending
INFO[0004]   Found ClusterServiceVersion "my-operator-ns/my-operator.v0.9.0" phase: InstallReady
INFO[0005]   Found ClusterServiceVersion "my-operator-ns/my-operator.v0.9.0" phase: Installing
INFO[0022]   Found ClusterServiceVersion "my-operator-ns/my-operator.v0.9.0" phase: Succeeded
FATA[0022] Failed to run operator using OLM: operator my-operator did not install successfully

In addition to this, I can verify in the OCP dashboard as well as via oc that my operator deployment is created and Ready in the cluster:

$ oc get deploy
NAME                 READY   UP-TO-DATE   AVAILABLE   AGE
my-operator          1/1     1            1           102s

Looking through my operator pod logs, everything looks fine. I see no errors. This seems to be an operator-sdk error being thrown, as even in the OCP dashboard I cannot find any source of error for the operator installation.

Environment

  • operator-sdk version:
$ operator-sdk version
operator-sdk version: "v0.17.0", commit: "2fd7019f856cdb6f6618e2c3c80d15c3c79d1b6c", kubernetes version: "unknown", go version: "go1.13.10 linux/amd64"
  • go version:
$ go version
go version go1.13.8 linux/amd64
  • Kubernetes version information:
$ oc version
Client Version: openshift-clients-4.3.0-201910250623-88-g6a937dfe
Server Version: 4.3.0
Kubernetes Version: v1.16.2
  • Kubernetes cluster kind: OCP 4.3

  • Are you writing your operator in ansible, helm, or go? Go

Possible Solution

Additional context

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.lifecycle/activeIndicates that an issue or PR is actively being worked on by a contributor.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions