redhat-developer / web-terminal-operator

OpenShift Console Web Terminal
MIT License
41 stars 15 forks source link

Failed to install with ConstraintsNotSatisfiable error #124

Open sichapman opened 2 years ago

sichapman commented 2 years ago

Describe the bug

When trying to install Web Terminal Operator 1.5 on Openshift 4.10, it gets stuck with an 'unknown failure'. In the Conditions section, it states: Type: ResolutionFailedTrue Reason: ConstraintsNotSatisfiable Message: constraints not satisfiable: no operators found in package cert-manager-operator in the catalog referenced by subscription cert-manager-operator, subscription cert-manager-operator exists

The only related thing I can see is that we also have the cert-manager operator 1.1.0 provided by Jetstack installed, but I can't see anything in the docs here about dependency requirements other than Dev workspaces.

Environment

Cloud:

OpenShift Version: 4.10.13

FischerLGLN commented 2 years ago

I have a similar bug in IBM OKD 4.10 & 4.11, complaining about missing devworkspace v1alpha1, when its there.

davidkarlsen commented 2 years ago

Same here:

constraints not satisfiable: subscription web-terminal requires redhat-operators/openshift-marketplace/fast/web-terminal.v1.5.1, subscription web-terminal exists, clusterserviceversion web-terminal.v1.4.0 exists and is not referenced by a subscription, @existing/openshift-operators//web-terminal.v1.4.0, redhat-operators/openshift-marketplace/fast/web-terminal.v1.2.1 and redhat-operators/openshift-marketplace/fast/web-terminal.v1.5.1 originate from package web-terminal

but it does not actually exist:

k get clusterserviceversion -A|grep -i terminal

returns nothing.

k get subscriptions.operators.coreos.com   -A|grep terminal
openshift-operators                web-terminal                       web-terminal                       redhat-operators      fast
k -n openshift-operators get  subscriptions.operators.coreos.com  web-terminal -o yaml
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
  creationTimestamp: "2022-08-15T10:27:13Z"
  generation: 1
  labels:
    operators.coreos.com/web-terminal.openshift-operators: ""
  name: web-terminal
  namespace: openshift-operators
  resourceVersion: "1264854518"
  uid: 3c1f9c70-74c3-4b32-a022-493ebe49ce7a
spec:
  channel: fast
  installPlanApproval: Automatic
  name: web-terminal
  source: redhat-operators
  sourceNamespace: openshift-marketplace
  startingCSV: web-terminal.v1.5.1
status:
  catalogHealth:
  - catalogSourceRef:
      apiVersion: operators.coreos.com/v1alpha1
      kind: CatalogSource
      name: certified-operators
      namespace: openshift-marketplace
      resourceVersion: "1264831153"
      uid: f557253a-152f-4a58-9057-d8aea14e1d61
    healthy: true
    lastUpdated: "2022-08-15T10:27:15Z"
  - catalogSourceRef:
      apiVersion: operators.coreos.com/v1alpha1
      kind: CatalogSource
      name: community-operators
      namespace: openshift-marketplace
      resourceVersion: "1264825361"
      uid: b338d0e0-cc89-430c-8be8-e98e01b12b55
    healthy: true
    lastUpdated: "2022-08-15T10:27:15Z"
  - catalogSourceRef:
      apiVersion: operators.coreos.com/v1alpha1
      kind: CatalogSource
      name: redhat-marketplace
      namespace: openshift-marketplace
      resourceVersion: "1264842097"
      uid: c0ebffd6-1b8d-410f-9335-695f5a9b6446
    healthy: true
    lastUpdated: "2022-08-15T10:27:15Z"
  - catalogSourceRef:
      apiVersion: operators.coreos.com/v1alpha1
      kind: CatalogSource
      name: redhat-operators
      namespace: openshift-marketplace
      resourceVersion: "1264825362"
      uid: a790722a-8fc2-499b-9bb2-3c24e497b523
    healthy: true
    lastUpdated: "2022-08-15T10:27:15Z"
  conditions:
  - lastTransitionTime: "2022-08-15T10:27:15Z"
    message: all available catalogsources are healthy
    reason: AllCatalogSourcesHealthy
    status: "False"
    type: CatalogSourcesUnhealthy
  - message: 'constraints not satisfiable: subscription web-terminal exists, clusterserviceversion
      web-terminal.v1.4.0 exists and is not referenced by a subscription, redhat-operators/openshift-marketplace/fast/web-terminal.v1.2.1,
      redhat-operators/openshift-marketplace/fast/web-terminal.v1.5.1 and @existing/openshift-operators//web-terminal.v1.4.0
      originate from package web-terminal, subscription web-terminal requires redhat-operators/openshift-marketplace/fast/web-terminal.v1.5.1'
    reason: ConstraintsNotSatisfiable
    status: "True"
    type: ResolutionFailed
  lastUpdated: "2022-08-15T10:31:22Z"
amisevsk commented 1 year ago

These seem to be issues around the Operator Lifecycle Manager (OLM) installing the operator. I'm not sure there's much we can on our end to fix these issues, but asking on that end may yield more information -- we've run into a few issues in the past around installing operators, e.g.

In most cases, uninstalling the operator that is causing the issue and reinstalling it should fix the issue.

jbartyze-rh commented 1 year ago

Similar issue encountered in web-terminal 1.7.0 Openshift 4.12.28 vSphere. It is problematic, because it marks subscription object as Degraded in ArgoCD.


apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: >
      {"apiVersion":"operators.coreos.com/v1alpha1","kind":"Subscription","metadata":{"annotations":{},"labels":{"app.kubernetes.io/instance":"c12-web-terminal"},"name":"web-terminal","namespace":"openshift-operators"},"spec":{"channel":"fast","installPlanApproval":"Automatic","name":"web-terminal","source":"sw-op-web-terminal-1-7-0","sourceNamespace":"openshift-marketplace"}}
  creationTimestamp: '2023-10-11T18:59:12Z'
  generation: 1
  labels:
    app.kubernetes.io/instance: cXX-web-terminal
    operators.coreos.com/web-terminal.openshift-operators: ''
  name: web-terminal
  namespace: openshift-operators
  resourceVersion: '60206'
  uid: 6b00d00c-3934-4795-9601-07fa56133230
spec:
  channel: fast
  installPlanApproval: Automatic
  name: web-terminal
  source: sw-op-web-terminal-1-7-0
  sourceNamespace: openshift-marketplace
status:
  catalogHealth:
    - catalogSourceRef:
        apiVersion: operators.coreos.com/v1alpha1
        kind: CatalogSource
        name: sw-op-advanced-cluster-management-2-8-0
        namespace: openshift-marketplace
        resourceVersion: '48924'
        uid: 7cb481f6-44a1-4bd0-9d1d-7594400a1076
      healthy: true
      lastUpdated: '2023-10-11T18:59:46Z'
    - catalogSourceRef:
        apiVersion: operators.coreos.com/v1alpha1
        kind: CatalogSource
        name: sw-op-compliance-operator-1-2-0
        namespace: openshift-marketplace
        resourceVersion: '48794'
        uid: 10a97d65-0471-4bd2-bb12-6546de710afb
      healthy: true
      lastUpdated: '2023-10-11T18:59:46Z'
    - catalogSourceRef:
        apiVersion: operators.coreos.com/v1alpha1
        kind: CatalogSource
        name: sw-op-metallb-operator-4-12-0-202307072355
        namespace: openshift-marketplace
        resourceVersion: '48985'
        uid: 8003458b-0c48-47d2-934f-20bc45eb8f4c
      healthy: true
      lastUpdated: '2023-10-11T18:59:46Z'
    - catalogSourceRef:
        apiVersion: operators.coreos.com/v1alpha1
        kind: CatalogSource
        name: sw-op-multicluster-engine-2-3-1
        namespace: openshift-marketplace
        resourceVersion: '48916'
        uid: 29cf2907-3919-4811-bece-241c68366246
      healthy: true
      lastUpdated: '2023-10-11T18:59:46Z'
    - catalogSourceRef:
        apiVersion: operators.coreos.com/v1alpha1
        kind: CatalogSource
        name: sw-op-node-healthcheck-operator-0-5-1
        namespace: openshift-marketplace
        resourceVersion: '48809'
        uid: 78d07780-d597-41c0-9b6a-91381d55a4ab
      healthy: true
      lastUpdated: '2023-10-11T18:59:46Z'
    - catalogSourceRef:
        apiVersion: operators.coreos.com/v1alpha1
        kind: CatalogSource
        name: sw-op-openshift-gitops-operator-1-8-3
        namespace: openshift-marketplace
        resourceVersion: '48973'
        uid: 089481e8-54e4-4332-b56e-a34cd2480185
      healthy: true
      lastUpdated: '2023-10-11T18:59:46Z'
    - catalogSourceRef:
        apiVersion: operators.coreos.com/v1alpha1
        kind: CatalogSource
        name: sw-op-rhacs-operator-4-1-3
        namespace: openshift-marketplace
        resourceVersion: '48761'
        uid: ee0f8606-331e-4df7-9e00-1a2362e0e32e
      healthy: true
      lastUpdated: '2023-10-11T18:59:46Z'
    - catalogSourceRef:
        apiVersion: operators.coreos.com/v1alpha1
        kind: CatalogSource
        name: sw-op-web-terminal-1-7-0
        namespace: openshift-marketplace
        resourceVersion: '48756'
        uid: 4e014993-b2b3-48f1-acdd-23f9b8976268
      healthy: true
      lastUpdated: '2023-10-11T18:59:46Z'
  conditions:
    - lastTransitionTime: '2023-10-11T18:59:46Z'
      message: all available catalogsources are healthy
      reason: AllCatalogSourcesHealthy
      status: 'False'
      type: CatalogSourcesUnhealthy
    - lastTransitionTime: '2023-10-11T19:05:09Z'
      message: >-
        error validating existing CRs against new CRD's schema for
        "devworkspaces.workspace.devfile.io": error listing resources in
        GroupVersionResource
        schema.GroupVersionResource{Group:"workspace.devfile.io",
        Version:"v1alpha1", Resource:"devworkspaces"}: Internal error occurred:
        error resolving resource
      reason: InstallComponentFailed
      status: 'True'
      type: InstallPlanFailed
  currentCSV: web-terminal.v1.7.0-0.1684429884.p
  installPlanGeneration: 1
  installPlanRef:
    apiVersion: operators.coreos.com/v1alpha1
    kind: InstallPlan
    name: install-85b9w
    namespace: openshift-operators
    resourceVersion: '50608'
    uid: ca72cbaf-a04a-4017-af8a-c82e150fdf3a
  installedCSV: web-terminal.v1.7.0-0.1684429884.p
  installplan:
    apiVersion: operators.coreos.com/v1alpha1
    kind: InstallPlan
    name: install-85b9w
    uuid: ca72cbaf-a04a-4017-af8a-c82e150fdf3a
  lastUpdated: '2023-10-11T19:05:09Z'
  state: AtLatestKnown