Skip to content

Document that the license agent is not upgraded with Calico Enterprise - #2887

Open
xiumozhan wants to merge 1 commit into
tigera:mainfrom
xiumozhan:EV-6872-license-agent-upgrade-docs
Open

Document that the license agent is not upgraded with Calico Enterprise#2887
xiumozhan wants to merge 1 commit into
tigera:mainfrom
xiumozhan:EV-6872-license-agent-upgrade-docs

Conversation

@xiumozhan

Copy link
Copy Markdown
Contributor

What this fixes

The license agent is installed from a manifest and is not managed by the operator, so upgrading Calico Enterprise leaves it running the image it was installed with. Nothing in the docs said so, which is how a cluster ends up on the previous agent image after an upgrade and stops reporting license metrics.

The 3.23 tier rename makes it worse. The name of a tiered policy embeds its tier, so licenseagent.yaml moved from allow-tigera.tigera-license-agent-access to calico-system.tigera-license-agent-access. Applying the 3.23 manifest creates the new policy and leaves the old one in place, so the same rule ends up in both tiers, and the operator cannot remove the deprecated allow-tigera tier while any policy is left in it — it logs Cannot delete a non-empty tier on every reconcile instead. Deleting the license agent's own policy is not always enough, because other leftovers can hold the tier open, so the section says to check rather than to assume.

Changes

All in version-3.23-2, since that is the version being upgraded to and the version where the license agent is still documented. The standalone page was removed from next in 0964008, where license metrics now come from the operator, so there is nothing to add there.

  • operations/monitor/metrics/license-agent.mdx: new Upgrade the license agent section — re-apply the version-matched manifest, delete the stale allow-tigera policy if the upgrade came from before 3.23, then check whether anything is still holding the tier open.
  • getting-started/upgrading/upgrading-enterprise/kubernetes-upgrade-tsee/operator.mdx, .../helm.mdx, openshift-upgrade.mdx: a short License agent subsection pointing at it, so the reader learns about it while upgrading rather than afterwards.

kubectl only, no Helm flow on the task page.

Verification

yarn build passes. The config has onBrokenLinks: 'throw' and onBrokenMarkdownLinks: 'throw', so the three relative links resolve; onBrokenAnchors is 'ignore', so I checked the anchor by hand — all three render as href=/calico-enterprise/latest/operations/monitor/metrics/license-agent#upgrade-the-license-agent, and id=upgrade-the-license-agent exists on that page. I also read the rendered section: the steps and code blocks come out right, and $[filesUrl] resolves to the v3.23.1 manifest.

Both commands in the new section were run against a live Calico Enterprise cluster in the form they are published.

Related

  • CI-2028 / EV-6872: the support case this comes from.
  • EV-6920: separately, the shipped licenseagent.yaml admits ingress from app == 'prometheus', a label no pod carries, so the scrape is denied by policy as well.
  • tigera/calico-private#12972: the code fix for the v3.23-only change that leaves the agent's /metrics port unbound when no certificate is configured.

The license agent is installed from a manifest and is not managed by the
operator, so an upgrade leaves it on the image it was installed with. The
3.23 docs never said so, and never said what to do about the network
policy it leaves behind in the allow-tigera tier: the name of a policy
embeds its tier, so applying the 3.23 manifest adds a calico-system copy
without removing the old one, and the operator cannot remove the
deprecated tier while any policy is left in it.

Add an "Upgrade the license agent" section covering all three steps, and
point at it from the operator, Helm and OpenShift upgrade pages.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 29, 2026 22:40
@xiumozhan
xiumozhan requested a review from a team as a code owner July 29, 2026 22:40
@netlify

netlify Bot commented Jul 29, 2026

Copy link
Copy Markdown

Deploy Preview for calico-docs-preview-next ready!

Name Link
🔨 Latest commit 18c6033
🔍 Latest deploy log https://app.netlify.com/projects/calico-docs-preview-next/deploys/6a6a817ce0ac6d0009468ec7
😎 Deploy Preview https://deploy-preview-2887--calico-docs-preview-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 29, 2026

Copy link
Copy Markdown

Deploy Preview succeeded!

Built without sensitive environment variables

Name Link
🔨 Latest commit 18c6033
🔍 Latest deploy log https://app.netlify.com/projects/tigera/deploys/6a6a817c6ba9e50008a0f957
😎 Deploy Preview https://deploy-preview-2887--tigera.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 95 (🟢 up 19 from production)
Accessibility: 98 (no change from production)
Best Practices: 92 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Calico Enterprise v3.23-2 versioned documentation to clearly state that the license agent is not upgraded by the operator and must be manually upgraded after every Calico Enterprise upgrade, including guidance for cleaning up pre-3.23 tiered policy leftovers.

Changes:

  • Adds an “Upgrade the license agent” section to the license metrics page, including re-applying the version-matched manifest and checking/removing allow-tigera tier leftovers after upgrades from pre-3.23.
  • Adds brief “License agent” callouts to Kubernetes (operator + Helm) and OpenShift upgrade pages, linking readers directly to the new upgrade guidance.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
calico-enterprise_versioned_docs/version-3.23-2/operations/monitor/metrics/license-agent.mdx Adds explicit license-agent upgrade procedure and tier cleanup/check guidance for pre-3.23 upgrades.
calico-enterprise_versioned_docs/version-3.23-2/getting-started/upgrading/upgrading-enterprise/openshift-upgrade.mdx Adds upgrade-time callout pointing to license-agent upgrade instructions.
calico-enterprise_versioned_docs/version-3.23-2/getting-started/upgrading/upgrading-enterprise/kubernetes-upgrade-tsee/operator.mdx Adds upgrade-time callout pointing to license-agent upgrade instructions.
calico-enterprise_versioned_docs/version-3.23-2/getting-started/upgrading/upgrading-enterprise/kubernetes-upgrade-tsee/helm.mdx Adds upgrade-time callout pointing to license-agent upgrade instructions.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants