Skip to content

entity for package "project-quay" not found in solution when trying to upgrade to the next version using replaces #321

Closed
@m1kola

Description

@m1kola

I'm getting entity for package "project-quay" not found in solution when trying to upgrade to the next version.

project-quay uses replaces to speficy upgrade edges and support for this was added #275. I see that PR has an e2e test confirming an upgrade so it might be that I'm missing something.

Steps to reproduce

  1. Run the operators from master:
make run
  1. Create a catalog:
kubectl apply -f config/samples/catalogd_operatorcatalog.yaml
  1. Create an operator
kubectl apply -f - <<EOF
apiVersion: operators.operatorframework.io/v1alpha1
kind: Operator
metadata:
  labels:
    app.kubernetes.io/name: operator
    app.kubernetes.io/instance: operator-sample
    app.kubernetes.io/part-of: operator-controller
    app.kubernetes.io/managed-by: kustomize
    app.kubernetes.io/created-by: operator-controller
  name: operator-sample
spec:
  packageName: project-quay
  channel: stable-3.8
  version: 3.8.1
EOF
  1. Wait for the operator to be installed:
kubectl wait operators operator-sample --for condition=Installed
  1. Edit operator to have a next valid version (in this specific example - 3.8.2 replaces 3.8.1):
kubectl patch operator operator-sample --type json -p '[{"op": "replace", "path": "/spec/version", "value": "3.8.2"}]'
  1. Observe conditions:
kubectl get operator operator-sample -o json | jq ".status"

Output:

{
  "conditions": [
    {
      "lastTransitionTime": "2023-08-04T14:24:02Z",
      "message": "installation has not been attempted as resolution failed",
      "observedGeneration": 13,
      "reason": "InstallationStatusUnknown",
      "status": "Unknown",
      "type": "Installed"
    },
    {
      "lastTransitionTime": "2023-08-04T14:24:02Z",
      "message": "entity for package \"project-quay\" not found in solution",
      "observedGeneration": 13,
      "reason": "ResolutionFailed",
      "status": "False",
      "type": "Resolved"
    }
  ]
}

Expected results

Operator is correctly resolved and installed

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions