Sure! Here’s the bug report text translated into clear and professional English:
Title: Upgrade to Everest 1.8.0 fails with context canceled
due to hanging pre-upgrade hook
Problem Description
Attempting to upgrade the everest-core
release to version 1.8.0 fails with the following issues:
-
Helm upgrade fails with:
UPGRADE FAILED: context canceled
-
The
everest-helm-pre-upgrade-hook-<suffix>
Job remains in theactive
state and never completes. -
The job logs contain an authentication error when trying to interact with the Kubernetes API:
❌ failed to get server groups: the server has asked for the client to provide credentials could not retrieve Everest version
Steps to Reproduce
-
Run the upgrade command:
helm upgrade everest-core percona/everest --namespace everest-system --version "1.8.0"
-
Helm attempts to run the
pre-upgrade
hook job. -
The job remains active and never completes, eventually resulting in:
Release everest-core has been cancelled. Error: UPGRADE FAILED: context canceled
Details
-
The pre-upgrade hook job is created but does not finish.
-
Job logs:
Checking requirements for upgrade to version 1.8.0 ❌ failed to get server groups: the server has asked for the client to provide credentials could not retrieve Everest version
Environment
-
Chart:
percona/everest
v1.8.0 -
Kubernetes: v1.30.2 (OIDC + RBAC enabled)
-
Helm: v3.x
-
Namespace:
everest-system
Root Cause Hypothesis
The hook job is likely trying to query the Kubernetes API or the Everest API, but fails due to:
-
Missing or misconfigured
ServiceAccount
or insufficient RBAC permissions. -
Cluster requires external authentication (e.g., OIDC), and the in-cluster job does not have access to proper credentials.
Expected Behavior
The pre-upgrade hook should either:
-
Complete successfully if permissions are sufficient, or
-
Fail clearly with a descriptive error — not hang indefinitely.
The Helm upgrade should not fail with a timeout and “context canceled” if version discovery fails.
Recommendations
-
Improve error handling in the pre-upgrade hook.
-
Document required permissions and service account roles for upgrade hooks.
-
Add fallback behavior when version check fails due to auth issues.
Let me know if you want this in Markdown format or ready for GitHub/Percona submission.