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 when Domain Name is currently set through DHCP #186

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

flaviotorres
Copy link
Contributor

When domain name is set hpilo_ca was in loop because it can't update the domain. Adding a condition to check that, if enabled hpilo_ca will fix the hostname only and leave domain_name to be updated by DHCP

…main_name is empty and hpilo_ca can't update. Avoiding loop.
# Note: Domain Name is currently set through DHCP, if enabled then domain_name is empty and hpilo_ca can't update. Avoiding loop.
if network_settings['dns_name'] != hn:
print("Hostname misconfigured on the ilo - hn:[%s] dn:[%s], fixing") % (network_settings['dns_name'], hn)
ilo.mod_network_settings(dns_name=hn, domain_name=dn)
Copy link
Owner

Choose a reason for hiding this comment

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

This is still trying to update the domain name, isn't that incorrect?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It will update the domain name if iLO is not set to use DHCP. The loop happens when iLO is set to use DHCP. See attached screenshot for better understanding.

screen shot 2018-08-23 at 2 40 35 pm

@flaviotorres
Copy link
Contributor Author

Hello here :)

Base automatically changed from master to main January 16, 2021 14:09
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