mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Enable and start oddjobd after ipa-restore if it's not running.
If after ipa-restore the service oddjobd is not running, domain-level1 replica installation will fail during ipa-replica-conncheck because this step is using oddjob to start the process ipa-replica-conncheck on the master. This patch fixes it. Also added regression test. https://pagure.io/freeipa/issue/7234 Reviewed-By: Christian Heimes <cheimes@redhat.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
committed by
Christian Heimes
parent
e6c707b168
commit
93b7c40158
@@ -423,6 +423,12 @@ class Restore(admintool.AdminTool):
|
||||
logger.info('Restarting SSSD')
|
||||
sssd = services.service('sssd', api)
|
||||
sssd.restart()
|
||||
logger.info('Restarting oddjobd')
|
||||
oddjobd = services.service('oddjobd', api)
|
||||
if not oddjobd.is_enabled():
|
||||
logger.info("Enabling oddjobd")
|
||||
oddjobd.enable()
|
||||
oddjobd.start()
|
||||
http.remove_httpd_ccaches()
|
||||
# have the daemons pick up their restored configs
|
||||
run([paths.SYSTEMCTL, "--system", "daemon-reload"])
|
||||
|
||||
Reference in New Issue
Block a user