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: ensure hostname is short for maintenance #157

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jackhodgkiss
Copy link
Contributor

If entering or exiting maintenance on a host whose hostname is full qualified may lead to failure as the FQDN does not match the name used by Ceph. Therefore, we should ensure we are using the short domain name instead.

@jackhodgkiss jackhodgkiss added the bug Something isn't working label Oct 11, 2024
@jackhodgkiss jackhodgkiss self-assigned this Oct 11, 2024
@jackhodgkiss jackhodgkiss requested a review from a team as a code owner October 11, 2024 21:47
@@ -1,2 +1,2 @@
---
cephadm_hostname: "{{ ansible_facts.nodename }}"
cephadm_hostname: "{{ ansible_nodename | split('.') | first }}"
Copy link
Member

Choose a reason for hiding this comment

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

Just use ansible_facts.hostname for unqualified one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants