abbra / freeipa

Mirror of FreeIPA, an integrated security information management solution
http://www.freeipa.org
GNU General Public License v3.0
2 stars 1 forks source link

gc-wip: sync daemon is restarted during repeated run of ipa-adtrust-install #61

Closed wladich closed 3 years ago

wladich commented 3 years ago

Steps to reproduce:

# ipa-adtrust-install -U -a Secret123
...
# ps aux | grep ipa-[g]csyncd
root       56437  0.8  5.0 174028 102980 ?       Ss   04:48   0:01 /usr/bin/python3 -I /usr/libexec/ipa/gc/ipa-gcsyncd
# rm /var/log/ipa/globalcatalog.log 
# ipa-adtrust-install -U -a Secret123
...
Global Catalog already installed, skipping

# ps aux | grep ipa-[g]csyncd
root       56687  9.2  4.9 171796 100432 ?       Ss   04:53   0:01 /usr/bin/python3 -I /usr/libexec/ipa/gc/ipa-gcsyncd

# head /var/log/ipa/globalcatalog.log 
2020-10-27T04:48:23Z    56437   MainThread  ipalib.plugable DEBUG   importing all plugin modules in ipaserver.plugins...
2020-10-27T04:48:23Z    56437   MainThread  ipalib.plugable DEBUG   importing plugin module ipaserver.plugins.aci
2020-10-27T04:48:23Z    56437   MainThread  ipalib.plugable DEBUG   importing plugin module ipaserver.plugins.automember
2020-10-27T04:48:23Z    56437   MainThread  ipalib.plugable DEBUG   importing plugin module ipaserver.plugins.automount
2020-10-27T04:48:23Z    56437   MainThread  ipalib.plugable DEBUG   importing plugin module ipaserver.plugins.baseldap
2020-10-27T04:48:23Z    56437   MainThread  ipalib.plugable DEBUG   ipaserver.plugins.baseldap is not a valid plugin module
2020-10-27T04:48:23Z    56437   MainThread  ipalib.plugable DEBUG   importing plugin module ipaserver.plugins.baseuser
2020-10-27T04:48:23Z    56437   MainThread  ipalib.plugable DEBUG   importing plugin module ipaserver.plugins.batch
2020-10-27T04:48:23Z    56437   MainThread  ipalib.plugable DEBUG   importing plugin module ipaserver.plugins.ca
2020-10-27T04:48:23Z    56437   MainThread  ipalib.plugable DEBUG   importing plugin module ipaserver.plugins.caacl
abbra commented 3 years ago

I think it is as designed. We restart all services, so sync daemon should be restarted too. I would not consider this a bug.

wladich commented 3 years ago

After investigation it turned out that ipa-gcsyncd (like ipa-dnskeysyncd) is exiting when it loses connection to main dirsrv instance. So this behavior is expected.