mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Start named during configuration upgrade.
Some upgrade steps require bind running, to be succesfull. Upgrader makes sure that bind starts. https://fedorahosted.org/freeipa/ticket/6205 Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
committed by
Martin Babinsky
parent
f3f9087ee8
commit
22fd6f0209
@@ -1706,6 +1706,15 @@ def upgrade_configuration():
|
||||
cleanup_kdc(fstore)
|
||||
cleanup_adtrust(fstore)
|
||||
setup_firefox_extension(fstore)
|
||||
|
||||
bind = bindinstance.BindInstance(fstore)
|
||||
if bind.is_configured() and not bind.is_running():
|
||||
# some upgrade steps may require bind running
|
||||
bind_started = True
|
||||
bind.start()
|
||||
else:
|
||||
bind_started = False
|
||||
|
||||
add_ca_dns_records()
|
||||
|
||||
# Any of the following functions returns True iff the named.conf file
|
||||
@@ -1737,6 +1746,9 @@ def upgrade_configuration():
|
||||
except ipautil.CalledProcessError as e:
|
||||
root_logger.error("Failed to restart %s: %s", bind.service_name, e)
|
||||
|
||||
if bind_started:
|
||||
bind.stop()
|
||||
|
||||
custodia = custodiainstance.CustodiaInstance(api.env.host, api.env.realm)
|
||||
custodia.upgrade_instance()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user