replicatedhq/kots

Unable to `kots upstream upgrade --deploy-version-label`

gbarna-bd opened this issue · 3 comments

The admin console is showing me only the currently deployed version and the latest, but I am looking for an intermediate version.
I've tried running upstream upgrade, but I'm getting an error:

kubectl kots -n $ns upstream upgrade $appSlug --deploy-version-label $appVersion
  • Checking for application updates ✗  
  • Unexpected response from the API: 500

It only seems to work with the versions available in the admin console (the currently deployed one and the latest).

Did I misread the docs and the command above doesn't fetch application versions from the Replicated vendor? If so, is there any way of getting a specific version?
Thanks.

Hi @gbarna-bd, the upstream upgrade command is equivalent to clicking "check for updates" in the UI. This will load all of the pending updates from the Vendor Portal that have not yet been loaded by the admin console. For the --deploy-version-label flag to work, that version must be available in the admin console.

I have two asks:

  • Can you share your use-case and reproduction steps for this issue? That will help us understand if this is intended behavior or not.
  • Could you also please also share logs from the kotsadm pod so that we can see the details of the 500 error?

Hi. Thank you for your reply.
After more troubleshooting, I realized that kots upstream upgrade (and its UI equivalent) are working as expected, but the Vendor's license was unpinned and so it would only pull the latest.
Sorry for the confusion and thanks again!

You're welcome. Glad things are working as expected!

/close