operator icon indicating copy to clipboard operation
operator copied to clipboard

Upgrading from to Knative Serving v1.2 shows "the manifests of the target version are not available to this release"

Open unzld opened this issue 2 years ago • 7 comments

What version of Knative?

1.1.0

Expected Behavior

Upgrade Knative Serving from v1.1 to v1.2 using the docs should be successful.

Actual Behavior

KnativeServing produces the error "the manifests of the target version 1.2 are not available to this release" and no upgrade happens.

Steps to Reproduce the Problem

  1. Install Knative by using Knative Operator (the latest version at the time was v1.1.0)
  2. Install Knative Serving custom resource with spec.version set to "1.1"
  3. Upgrade by setting spec.version of Knative Serving to "1.2"
  4. Events log shows "the manifests of the target version 1.2 are not available to this release"

It seems a little confusing to me whether I need to follow the installation steps again in "Install by using the Knative Operator" to upgrade or by following the upgrade steps in "Upgrading using the Knative Operator". Doing a fresh install is not an option at this point also.

unzld avatar Jul 26 '22 07:07 unzld

cc @houshengbo

One thing to note is that v1.2 went EOL earlier this month

psschwei avatar Jul 26 '22 11:07 psschwei

/assign @houshengbo

dprotaso avatar Jul 26 '22 18:07 dprotaso

cc @houshengbo

One thing to note is that v1.2 went EOL earlier this month

Yes, the idea is to upgrade incrementally up to the latest version. Thanks.

unzld avatar Jul 26 '22 20:07 unzld

This is a little far away. If you are still on 1.1, you need to upgrade to 1.2, then to 1.3... until 1.6, which is the latest. For operator, you need to install operator 1.4 first, because the earliest version 1.4 supports is 1.1. With operator 1.4, upgrade everything incrementally to 1.4. Do not forget to run the migration job to migrate the existing CRs to v1beta1: https://github.com/knative/operator/releases/download/knative-v1.4.2/operator-post-install.yaml.

After that, install 1.6, and upgrade knative to 1.6 incrementally.

houshengbo avatar Aug 01 '22 22:08 houshengbo

Per the discussion in the slack channel: https://knative.slack.com/archives/CEPGNPHP1/p1659142102677399. I am now thinking of merging the migration tasks into the part of the operator's reconciling job, so that the migration can be done within the operator itself.

houshengbo avatar Aug 05 '22 15:08 houshengbo

@houshengbo Thanks for the response, managed to upgrade to operator v1.3. For upgrading operator, can we skip major versions? For example, upgrading from operator v1.3 to v1.5? I do know we have to incrementally upgrade serving.

unzld avatar Aug 18 '22 20:08 unzld

@unzld You can install operator 1.5 over 1.3 for sure. however, you have to incrementally upgrade serving and eventing from 1.3 to 1.4 and to 1.5.

houshengbo avatar Aug 30 '22 02:08 houshengbo

This issue is stale because it has been open for 90 days with no activity. It will automatically close after 30 more days of inactivity. Reopen the issue with /reopen. Mark the issue as fresh by adding the comment /remove-lifecycle stale.

github-actions[bot] avatar Nov 29 '22 01:11 github-actions[bot]

This issue or pull request is stale because it has been open for 90 days with no activity.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Close this issue or PR with /close

/lifecycle stale

knative-prow-robot avatar Dec 29 '22 02:12 knative-prow-robot

I will close this issue for now. You can reopen it, if it is still a valid concern for you.

houshengbo avatar Jan 19 '23 16:01 houshengbo

I'm having a similar issue upgrading from v1.9 to v1.10. I have an installation running v1.9.1 of the Operator, and on upgrade to v1.10.2, and upgrading Serving spec.version to "1.10", I get the same error with manifests of the target version are not available to this release.

Desolar1um avatar Jul 06 '23 12:07 Desolar1um