Skip to content

Failed to run bundle: install plan is not available for the subscription #6049

@chaewoorha

Description

@chaewoorha

Hello, Developers

I am facing a similar issue as 5410
Could you help me figure this out?

I am using Minikube. Here is the steps.

Step1. $ make bundle bundle-build bundle-push
Step2. $ make catalog-build catalog-push
Step3. $ operator-sdk run bundle

bash-4.4$ operator-sdk version
operator-sdk version: "**v1.19.1**", commit: "079d8852ce5b42aa5306a1e33f7ca725ec48d0e3", kubernetes version: "1.23", go version: "go1.17.8", GOOS: "linux", GOARCH: "amd64"

bash-4.4$ opm version
Version: version.Version{OpmVersion:"**v1.26.2**", GitCommit:"0e53cafe", BuildDate:"2022-09-21T15:25:48Z", GoOs:"linux", GoArch:"amd64"}

Error messages:

bash-4.4$ operator-sdk run bundle example.com/foo-bundle:v0.0.3
INFO[0006] Successfully created registry pod: example-com-foo-bundle-v0-0-3
INFO[0006] Created CatalogSource: foo-catalog
INFO[0006] OperatorGroup "operator-sdk-og" created
INFO[0006] Created Subscription: foo-v0-0-3-sub
FATA[0120] **Failed to run bundle: install plan is not available for the subscription foo-v0-0-3-sub: timed out waiting for the condition**

bash-4.4$ kubectl logs pod/example-com-foo-bundle-v0-0-3
**mkdir: can't create directory '/database': Permission denied**    <<<<<<

bash-4.4$ kubectl describe --all-namespaces subscriptions
Name:         clustercfg-v0-0-3-sub
Namespace:    default
Labels:       operators.coreos.com/clustercfg.default=
Annotations:  <none>
API Version:  operators.coreos.com/v1alpha1
Kind:         Subscription
Metadata:
  Creation Timestamp:  2022-10-03T17:59:30Z
  Generation:          1
  Managed Fields:
    API Version:  operators.coreos.com/v1alpha1
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:labels:
          .:
          f:operators.coreos.com/clustercfg.default:
    Manager:      olm
    Operation:    Update
    Time:         2022-10-03T17:59:30Z
    API Version:  operators.coreos.com/v1alpha1
    Fields Type:  FieldsV1
    fieldsV1:
      f:spec:
        .:
        f:channel:
        f:installPlanApproval:
        f:name:
        f:source:
        f:sourceNamespace:
        f:startingCSV:
    Manager:      operator-sdk
    Operation:    Update
    Time:         2022-10-03T17:59:30Z
    API Version:  operators.coreos.com/v1alpha1
    Fields Type:  FieldsV1
    fieldsV1:
      f:status:
        .:
        f:catalogHealth:
        f:conditions:
        f:lastUpdated:
    Manager:         catalog
    Operation:       Update
    Subresource:     status
    Time:            2022-10-03T17:59:32Z
  Resource Version:  51942084
  UID:               3d94d2ec-fa48-4940-8ac8-f9335c54529f
Spec:
  Channel:                alpha
  Install Plan Approval:  Manual
  Name:                   clustercfg
  Source:                 clustercfg-catalog
  Source Namespace:       default
  Starting CSV:           clustercfg.v0.0.3
Status:
  Catalog Health:
    Catalog Source Ref:
      API Version:       operators.coreos.com/v1alpha1
      Kind:              CatalogSource
      Name:              clustercfg-catalog
      Namespace:         default
      Resource Version:  51942064
      UID:               c5ff048e-005c-4e14-b825-9f4a9bed664c
    Healthy:             true
    Last Updated:        2022-10-03T17:59:32Z
    Catalog Source Ref:
      API Version:       operators.coreos.com/v1alpha1
      Kind:              CatalogSource
      Name:              operatorhubio-catalog
      Namespace:         olm
      Resource Version:  51930107
      UID:               f66f98d7-0f2f-4557-a6b6-eae30cb7ec1a
    Healthy:             true
    Last Updated:        2022-10-03T17:59:32Z
  Conditions:
    Message:               failed to populate resolver cache from source clustercfg-catalog/default: failed to list bundles: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 172.17.0.24:50051: connect: connection refused"
    Reason:                ErrorPreventedResolution
    Status:                True
    Type:                  ResolutionFailed
    Last Transition Time:  2022-10-03T17:59:32Z
    Message:               all available catalogsources are healthy
    Reason:                AllCatalogSourcesHealthy
    Status:                False
    Type:                  CatalogSourcesUnhealthy
  Last Updated:            2022-10-03T17:59:32Z
Events:                    <none>

Metadata

Metadata

Assignees

Labels

triage/supportIndicates an issue that is a support question.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions