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

Fix missing node name in cluster list #408

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

hemanthnakkina
Copy link
Collaborator

@hemanthnakkina hemanthnakkina commented Jan 16, 2025

In case of machines deployed before migration from lxd based juju controller
to k8s based juju controller, the hostname is missing in juju model status [1].
Because of which the cluster list command is broken and not showing node name.

As a workaround for bug [1], if hostname is not available in model status compare
dns-name with the IP address in microcluster status. If it matches update the node
name and cluster status based on microcluster record.

Fixes: LP#2095063

[1] juju/juju#18641

In case of machines deployed before
migration from lxd based juju controller
to k8s based juju controller, the hostname
is missing in juju model status [1]. Because of
which the cluster list command is broken and
not showing node name.

As a workaround for bug [1], if hostname is not
available in model status compare dns-name with
the IP address in microcluster status. If it matches
update the node name and cluster status based on
microcluster record.

Fixes: #2095063

[1] juju/juju#18641
@hemanthnakkina hemanthnakkina force-pushed the fix-local-cluster-names branch from 9e3c5fa to a1c3b32 Compare January 16, 2025 09:46
@gboutry gboutry merged commit 8b204df into canonical:main Jan 16, 2025
6 checks passed
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