Skip to content

[BUG] Custom cluster registration command not including system agent data directory #46362

@jakefhyde

Description

@jakefhyde

Rancher Server Setup

  • Rancher version: v2.9-dd23578d3e3499f54d80c4ed88cc52c44ee69539-head

Describe the bug

When creating a custom cluster with a system agent data directory, the custom cluster registration command does not include the CATTLE_AGENT_VAR_DIR env var.

To Reproduce

Create a custom cluster with a system-agent data directory

Result

Registration command does not use specified directory, defaulting to /var/lib/rancher/agent instead.

Expected Result

User specified directory is used.

Screenshots

Additional context

Metadata

Metadata

Labels

QA/Sarea/provisioning-v2Provisioning issues that are specific to the provisioningv2 generating frameworkkind/bugIssues that are defects reported by users or that we know have reached a real releasepriority/0release-noteNote this issue in the milestone's release notesstatus/release-note-addedteam/hostbustersThe team that is responsible for provisioning/managing downstream clusters + K8s version support

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions