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

DNS update issues with repeated attempts to add the same node #125

Closed
verdurin opened this issue Nov 30, 2020 · 10 comments
Closed

DNS update issues with repeated attempts to add the same node #125

verdurin opened this issue Nov 30, 2020 · 10 comments
Assignees

Comments

@verdurin
Copy link
Contributor

Owing to some local issues, a recent attempt to add a compute node to a cluster failed at the stage of provisioning keys.

I found that when I destroyed that node then re-added after the local issues had been fixed, the DNS for the new instance had the IP of the previous attempt, so logins to that node failed.

I had expected the DNS entry in IPA to be destroyed alongside the node.

@verdurin
Copy link
Contributor Author

Hmm, this may have already been fixed in ComputeCanada/puppet-magic_castle#69

@cmd-ntrf cmd-ntrf self-assigned this Nov 30, 2020
@cmd-ntrf
Copy link
Member

Which version of Magic Castle are you using? The fix was released with 8.3.

If you have a running cluster built with an older version of MC, you can cherry pick the fix and apply it to /etc/puppetlabs/code/environments/production/site/profile/manifests/freeipa.pp on mgmt1. Next time you add a node, it will be correctly registered even if a node with the same name was registered previously.

@verdurin
Copy link
Contributor Author

Not sure of the exact version - it's been running since late August (users very happy).

Will look at the cherry pick fix.

@verdurin
Copy link
Contributor Author

Hmm, that hasn't worked. While the DNS record resolves, and the new node is picked up via Consul and hence Slurm, DNS resolution of the new node still reflects an old IP.

@cmd-ntrf
Copy link
Member

For clarification: was the new node added after the cherry-pick of the fix?

While not ideal, you can always edit the DNS records using the FreeIPA web interface at : https://ipa.nameofyourcluster.domain.tld/

@verdurin
Copy link
Contributor Author

Yes, this is after the fix.

Was aware of the ability to edit the records, thanks, just hoping to avoid it.

I've just tried a name new to this cluster, and neither host nor DNS records have been created for it. Might be missing some other fixes?

@verdurin
Copy link
Contributor Author

In the end I found that only re-enrolling the newly-added instance fixed all the issues, after editing the DNS record... (e.g. Slurm jobs failed owing to user-lookup errors)

@cmd-ntrf
Copy link
Member

cmd-ntrf commented Dec 1, 2020

I discover this morning that sometime the ipa-client-install command fails to update the DNS, but still return 0. I have created an issue here : ComputeCanada/puppet-magic_castle#79

It could be related to your problem. I will probably need to add some check in puppet that the record A is created and corresponds to the ip address to avoid these kind of issues in the future.

@verdurin
Copy link
Contributor Author

verdurin commented Dec 1, 2020

Yes, I saw that issue, thanks.

If I have time tonight I'll try again and see what's in the logs.

@cmd-ntrf
Copy link
Member

cmd-ntrf commented Dec 18, 2020

Now that #79 is fixed, I will close this.

Feel free to re-open if the problem persists in coming versions.

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

No branches or pull requests

2 participants