Skip to content

bug: Misleading error message when no successors available #1022

Open
@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)

I expected something along the lines of (where the list of best available successors would be sugar on top):

    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", which include "6.0.3" (highest-available z-update) and "6.4.0" (highest available y-update)

Metadata

Metadata

Assignees

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