Platform9 Generic
Latest
Frequently Asked Questions
How To
Solution
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Host Authorized with Differing/Unexpected Hostname
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
- A host authorized with Platform9 is displaying its name as "localhost", its FQDN is omitted, or it otherwise differs from that of its actual, expected hostname.
- If the host is authorized with Platform9 Managed OpenStack, instance operations for instances residing on the host may fail with the following error.
xxxxxxxxxx{u'message': u' [host_name] is not a valid node managed by this compute host.'Environment
- Platform9 Managed OpenStack - All Versions
- Platform9 Managed Kubernetes - All Versions
Cause
- The pf9-hostagent service obtains the hostname using the Python function socket.getfqdn().
xxxxxxxxxx# python -c 'import socket; print socket.getfqdn()'- Verify if the nslookup command is returning the updated hostname. This would indicate that there's no issue with DNS resolution
xxxxxxxxxxnslookup [updated hostname]- If nslookup command returns the right hostname, check if there are any old entries associated with the older hostname in the /etc/hosts.
Resolution
Ensure the following:
- socket.getfqdn() function returns the expected hostname.
- DNS resolution is functional.
- For the IPv4 localhost entry in /etc/hosts, the hostname is included as the first entry.
xxxxxxxxxx127.0.0.1 [hostname.domain.tld] localhost- Restart the pf9-hostagent service.
xxxxxxxxxx# systemctl restart pf9-hostagentAdditional Information
If using pf9-express, ensure the Manage Hostname option is set to true during the configuration process to automatically add the hostname entry for localhost on deployment.
xxxxxxxxxx# ./pf9-express -s...Manage Hostname [true false] [false]: --> accepted: trueThe option may be set directly in pf9-express.conf. file as well.
xxxxxxxxxxmanage_hostname|trueVariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Next to read:
Host Fails to Converge With Error: "rpmdb open failed"Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message