-
Notifications
You must be signed in to change notification settings - Fork 256
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
dyns DNS update seems slow #6540
Comments
Hi, with bye, |
Here is one partial log with debug_level = 0x0fff
Here one can see that it took 2 mins after the backend became online until and DNS updates was checked/done |
@alexey-tikhonov , could you reopen ? |
Thanks for reopening. Another case is pulling the eth cable and connect WLAN. |
Added debug_level = 0xffff on [sssd] as well, tried setting dyndns_iface = cscotun0, vpn0, wlan0, eth0 Does sssd depend on some kernel config to react on I/F changes? My kernel is custom built |
Or perhaps on systemd build config, I have on Gentoo:
|
By default SSSD sets a watch using |
Take a note that currently netlink watch is set by main |
I have netlink. Did note more log entries in /var/log/sssd though(I figured all logging was moved to journalctl ?) I can see that sssd notices that I/Fs comes and goes but that does not trigger nsupdate. I believe dyndns need to be triggered when I/F go up/down |
Line 164 in 469905b
sssd/src/providers/data_provider_be.c Line 883 in 469905b
So it looks it only has any effect if @aplopez, this is probably something to take into consideration while moving netlink watch from 'monitor' to 'sssd_be'. |
What would the minmum fix be to make nsupdate work for any I/F change? |
From a quick glance it looks like not all the code generalized between 'ad' and 'ipa' providers in this area. For 'ad' provider To mitigate a problem to some extent you can decrease |
I remembered an observation I did long ago w.r.t RDNS updates: When ever one gets a new IP address, RDNS |
Is the "move from monitor to sssd_be" in the near future? |
At this point we are going over the entire backlog (~350 opened issues), as you probably noticed (I would like to thank you for your patience, being an active member and replying old queries!), triaging and prioritizing them accordingly. This work you mentioned is triaged and being considered, but again, we don't know the full picture yet, so it is hard to tell. Please bear in mind that contributions are more than welcome, and we are happy to assist :) |
Would be nice if this issue could get some prio, it causes confusion here when DNS is not updated in a timely fashion. |
does this have a prio/planned status now? |
@aplopez , is this issue on your TODO list? |
@joakim-tjernlund Yes, it is in my radar and it is confirmed work, but we don’t have a firm schedule for this yet. Contributions are welcomed. |
Thanks |
@joakim-tjernlund Are you still facing this issue? I see 2.9.0 (published in May 2023) incorporated several fixes that could be related. |
Yes I still see this. |
Question: Should the recent "[BACKENDS: Move the netlink watching to the backends]" have any impact on this issue? |
As I don't know yet what causes this problem, I cannot say if that commit will have any impact. My guess is that it won't, unless the problem you see is exactly with the D-Bus communications between the monitor and the backend. |
IIUC, issue is "by design": see #6540 (comment) We just need to force nsupdate even if backend is currently online. |
@joakim-tjernlund Could you please provide the SSSD logs with debug_level = 9 after a start up where your problem is happening? I don´t mean the syslog messages as above but the logs in /var/log/sssd/sssd.log |
Been a while now, anything I can test ? |
By luck I got an log that may be useful. One extra thing to note:
Here you delete the old DNS before setting PTR entries. This will not work when IP address has changed since last time(e.g undocking a laptop which then moves from LAN to WiFi) so sssd |
ping? |
Just a side note:
-- is wrong. 'sssd_be' shouldn't have any capabilities. |
Correct, I am still running sssd the old way as there was/is some rough corners. That has no impact on this problem though. |
Where is it exactly in the man pages? In the code I only find periodic task so far... |
I cannot remember where 1.5 years later. |
@joakim-tjernlund, can you build and try a test package with a patch from #7798? |
and
This is even without your patch, master fails here. Last master build was 12 dec for me |
What is in 'ldap_child.log'? Most probably capabilities mismatch (sssd.service, ldap_child). Btw, you can also cherry pick patch on top of your current sources. |
It is empty
I added as an external patch, it is easier for me that way when just testing |
just to be clear, all I did was to rebuild master the same was as always and that gave this error |
|
In this case, what is the output of:
I wonder if I missed an update in 'make install' while reducing set of required capabilities recently...
Let me know the result. |
Once I get sssd working again, I will |
That's wrong. It should be 'cap_dac_read_search=p' Line 5541 in 85784e7
|
But I am still running sssd as root |
Doesn't matter. 'CapabilityBoundingSet' of your sssd.service doesn't have some of capabilities required by your 'ldap_child', hence 'ldap_child' can't start. Btw, why "still running sssd as root"? |
hmm, looks like my reply never made it into github, odd Anyway, I have fixed my sssd and running with your patch. |
Could you please provide domain log with debug_level=9 that covers this moment? |
Argh...
|
Another attempt, I've updated patch in #7798 |
|
Looks like approach to force dyndns update right on netlink event is wrong. So in general existing code is more or less correct - it already enables dyndns task when backend switches online, the problem is the timer value... |
right, you would have to be a bit smarter if using netlink since sssd would have to check if I/F went UP or DOWN etc.
And a potential fix would be to set a low timer when netlink signals a new link? |
The problem is that with the default value of
Triggering event is "sssd_be switching online". As a test, could you set
|
That seems to work, DNS changes within 30 secs. |
An automatic change of TMO would be nice |
When connecting/booting a new computer it may take several minutes for DNS records to appear.
What minimal log config could I use to see the nsupdate calls in sssd ?
The text was updated successfully, but these errors were encountered: