Skip to content
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

[BUG] Rancher Prime cluster cleanup job has wrong image #45404

Open
m-ildefons opened this issue May 7, 2024 · 0 comments
Open

[BUG] Rancher Prime cluster cleanup job has wrong image #45404

m-ildefons opened this issue May 7, 2024 · 0 comments
Labels
kind/bug Issues that are defects reported by users or that we know have reached a real release

Comments

@m-ildefons
Copy link

Rancher Server Setup

  • Rancher version: v2.7.12 (prime)
  • Installation option (Docker install/Helm Chart): vcluster / helm

Information about the Cluster

  • Kubernetes version: v1.27.12-k3s1
  • Cluster Type (Local/Downstream): vcluster
    • If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider): Imported

User Information

  • What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom)
    • If custom, define the set of permissions: admin

Describe the bug
When unregistering a Harvester cluster from a prime-only Rancher instance, the Rancher agent's cleanup job is deployed with the wrong image:

 ErrImagePull (rpc error: code = NotFound desc = failed to pull and unpack image "docker.io/rancher/rancher-agent:v2.7.12": failed to resolve reference "docker.io/rancher/rancher-agent:v2.7.12": docker.io/rancher/rancher-agent:v2.7.12: not found) 

To Reproduce

  1. Install a Harvester cluster
  2. Install a prime-only Rancher instance (e.g. v2.7.12)
  3. Import the Harvester cluster to the Rancher instance
  4. Unset the cluster-registration-url setting of the Harvester cluster

Result
The Rancher agent will spawn a cleanup job with the wrong image. This job's Pod ends up in an image pull backoff state because the configured image does not exist on the registry.

Expected Result
The cleanup job should be spawned with the correct image and succeed.

Screenshots
Screenshot at 2024-05-03 10-20-13

Additional context

agentImage = "rancher/rancher-agent:master"

@m-ildefons m-ildefons added the kind/bug Issues that are defects reported by users or that we know have reached a real release label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Issues that are defects reported by users or that we know have reached a real release
Projects
None yet
Development

No branches or pull requests

1 participant