8000 [teleport-update] Change strategy for disabling teleport-upgrade timer by sclevine · Pull Request #54062 · gravitational/teleport · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[teleport-update] Change strategy for disabling teleport-upgrade timer #54062

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 16, 2025

Conversation

sclevine
Copy link
Member

The current strategy for disabling the teleport-upgrade script when teleport-update is enabled does not work in some cases:

  • The deprecated timer can get re-enabled if the teleport-ent-updater package is reinstalled.
  • The deprecated timer is started when teleport.service is started.
  • The nop schedule does not prevent updates / restarts.

While teleport-upgrade cannot actually upgrade the updater-managed version of Teleport, it can result in Teleport restarting in certain cases where the advertised versions for Managed Updates v1 and v2 drift.

This PR switches to a different strategy. A drop-in is used to replace the teleport-upgrade.service command.
This has a few advantages over systemctl mask:

  • It cannot be unmasked by accident.
  • It is immune to teleport-ent-updater being uninstalled and reinstalled.
  • It will not cause dependent services to fail.

changelog: teleport-update: ensure teleport-upgrade is always disabled when teleport-update is used.


The teleport-update binary is used to enable, disable, and trigger automatic Teleport agent updates. The new Managed Updates system manages a local installation of the cluster-specified version of Teleport stored in /opt/teleport.

RFD: #47126
Goal (internal): https://github.com/gravitational/cloud/issues/11856

8000
@sclevine sclevine requested a review from hugoShaka April 16, 2025 16:17
@sclevine sclevine enabled auto-merge April 16, 2025 17:57
@sclevine sclevine added this pull request to the merge queue Apr 16, 2025
Merged via the queue into master with commit b26ec11 Apr 16, 2025
42 checks passed
@sclevine sclevine deleted the sclevine/disable-upgrader branch April 16, 2025 18:45
@backport-bot-workflows
Copy link
Contributor

@sclevine See the table below for backport results.

Branch Result
branch/v16 Create PR
branch/v17 Create PR

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

Successfully merging this pull request may close these issues.

3 participants
0