Skip to content

bug: Misleading error message when no successors available #1022

@joelanford

Description

@joelanford

I have a scenario setup with 6.0.1 installed, where I updated the spec.version to 6.0.0 with upgrade policy enforcement enabled.

I got the following error message:

    message: 'error upgrading from currently installed version "6.0.1": no package
      "cockroachdb" matching version "6.0.0" found'

This makes it sound like:

  • there just isn't a 6.0.0 version in the catalog
  • if there was a 6.0.0 version (there is), the upgrade would proceed (it doesn't, because 6.0.0 is not a successor)

A good initial improvement would be something like:

    message: 'error upgrading from currently installed version "6.0.1": desired package "cockroachdb" with version range "6.0.0" does not match any successor of "6.0.1"

It would be sugar on top if we listed the best successor in both the z stream and y stream. For instance:

    message: 'error upgrading from currently installed version "6.0.1": desired package "cockroachdb" with version range "6.0.0" does not match any successor of "6.0.1". Highest version successors of "6.0.1" are "6.3.11" (y-stream) and "6.0.10" (z-stream)

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.v1.xIssues related to OLMv1 features that come after 1.0

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions