Skip to content

use stable/cloud repo for cloud tenants#26656

Merged
stevenGravy merged 5 commits intomasterfrom
stevenGravy/cloudproxynodeinstall
May 24, 2023
Merged

use stable/cloud repo for cloud tenants#26656
stevenGravy merged 5 commits intomasterfrom
stevenGravy/cloudproxynodeinstall

Conversation

@stevenGravy
Copy link
Copy Markdown
Contributor

Currently the node install uses the major version, not checking to see if it should use the cloud/stable.

Copy link
Copy Markdown
Collaborator

@r0mant r0mant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stevenGravy We should not be implementing this logic in the script. Whether to use stable/cloud repo is controlled by the web handlers, e.g.

https://github.com/gravitational/teleport/blob/v13.0.2/lib/web/join_tokens.go#L212

Looks like we may just need to remove h.ClusterFeatures.AutomaticUpgrades condition to always use this channel for all Cloud customers. This change needs to be applied to all other script handlers as well though:

https://github.com/gravitational/teleport/blob/v13.0.2/lib/web/join_tokens.go#L256
https://github.com/gravitational/teleport/blob/v13.0.2/lib/web/join_tokens.go#L286
https://github.com/gravitational/teleport/blob/v13.0.2/lib/web/apiserver.go#L1594

@marcoandredinis Is that right? Are there any other places that need changing?

@marcoandredinis @hugoShaka There shouldn't be any downside in using this channel now for all Cloud customers, is there? We won't actually install the "updater" package unless the Cloud tenant is actually enrolled in auto-upgrades, correct?

@r0mant r0mant requested review from hugoShaka and marcoandredinis and removed request for klizhentas May 22, 2023 01:05
@marcoandredinis
Copy link
Copy Markdown
Contributor

Is that right? Are there any other places that need changing?

Yes, those are the locations we need to change

There shouldn't be any downside in using this channel now for all Cloud customers, is there? We won't actually install the "updater" package unless the Cloud tenant is actually enrolled in auto-upgrades, correct?

Even without automatic upgrades, do we want users to use stable/cloud repo for all their installations?
If so, when operators manually update their agents (node, app and database agents), they will always get the latest release from that channel.
That version should be always in sync with their current auth/proxy.
My only concern is the timeline between updating the stable/cloud channel and the 3 upgrade windows we have for cloud.
If we update the stable/cloud channel before we start the migration, bad things can happen.
If we update the stable/cloud after the latest window, then I think we are good 👍

@r0mant
Copy link
Copy Markdown
Collaborator

r0mant commented May 22, 2023

@marcoandredinis We only update stable/cloud after Cloud control plane has been upgraded (using this workflow @fheinecke built) so we should be good.

@stevenGravy We'll take over this PR. @marcoandredinis Can you please make necessary changes?

@marcoandredinis marcoandredinis force-pushed the stevenGravy/cloudproxynodeinstall branch from 339e82a to 62d1ae2 Compare May 22, 2023 15:58
@marcoandredinis marcoandredinis requested a review from r0mant May 22, 2023 15:59
@marcoandredinis
Copy link
Copy Markdown
Contributor

@hugoShaka @stevenGravy Can you please take a look?

@stevenGravy
Copy link
Copy Markdown
Contributor Author

@hugoShaka @stevenGravy Can you please take a look?

Looks right to me!

@marcoandredinis marcoandredinis requested review from r0mant and removed request for r0mant May 24, 2023 10:05
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from marcoandredinis May 24, 2023 14:57
@stevenGravy stevenGravy enabled auto-merge May 24, 2023 14:58
@stevenGravy stevenGravy added this pull request to the merge queue May 24, 2023
Merged via the queue into master with commit 4d457c0 May 24, 2023
@stevenGravy stevenGravy deleted the stevenGravy/cloudproxynodeinstall branch May 24, 2023 15:34
@public-teleport-github-review-bot
Copy link
Copy Markdown

@stevenGravy See the table below for backport results.

Branch Result
branch/v12 Failed
branch/v13 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants