Skip to content

Commit

Permalink
Merge pull request #423 from wking/clarify-currently-installed
Browse files Browse the repository at this point in the history
pkg/cincinnati/cincinnati: Change "installed" -> "reconciling" for VersionNotFound
  • Loading branch information
openshift-merge-robot authored Aug 4, 2020
2 parents ed864d6 + ea6899a commit d2fc678
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/user/status.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ It could also be caused by response corruption, e.g. if the configured `upstream

### VersionNotFound

The currently installed version was not found in the configured `channel`.
The currently reconciling cluster version was not found in the configured `channel`.

This usually means that the configured `channel` is known to Cincinnati, but the cluster's current version is not found in that channel's graph.
This usually means that the configured `channel` is known to Cincinnati, but the version the cluster is currently applying is not found in that channel's graph.
Fix by setting `channel` to [a valid value][channels], e.g. `stable-4.3`.

If this error occurs because you forced an update to a release that is not in any channel, fix by updating back to a release that occurs in a channel, although you are on your own to determine a safe update path.
Expand Down
2 changes: 1 addition & 1 deletion pkg/cincinnati/cincinnati.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (c Client) GetUpdates(ctx context.Context, uri *url.URL, arch string, chann
if !found {
return current, nil, &Error{
Reason: "VersionNotFound",
Message: fmt.Sprintf("currently installed version %s not found in the %q channel", version, channel),
Message: fmt.Sprintf("currently reconciling cluster version %s not found in the %q channel", version, channel),
}
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/cincinnati/cincinnati_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func TestGetUpdates(t *testing.T) {
name: "unknown version",
version: "4.0.0-3",
expectedQuery: "arch=test-arch&channel=test-channel&id=01234567-0123-0123-0123-0123456789ab&version=4.0.0-3",
err: "VersionNotFound: currently installed version 4.0.0-3 not found in the \"test-channel\" channel",
err: "VersionNotFound: currently reconciling cluster version 4.0.0-3 not found in the \"test-channel\" channel",
}}
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
Expand Down

0 comments on commit d2fc678

Please sign in to comment.