mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
upgrade: ensure service state is synchronized with the server state
Convert configuredService to either enabledService or hiddenService depending on the state of the server role. This is to fix situations when deployment has happened before introduction of hidden replicas as those services will stay as configuredService and will not get started after upgrade, rendering the system non-functioning. Fixes: https://pagure.io/freeipa/issue/8623 Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
parent
fccceaa2d9
commit
f841ccb352
@ -1832,6 +1832,13 @@ def upgrade_configuration():
|
||||
# (see function docstring for details)
|
||||
http_certificate_ensure_ipa_ca_dnsname(http)
|
||||
|
||||
# Convert configuredService to either enabledService or hiddenService
|
||||
# depending on the state of the server role. This is to fix situations
|
||||
# when deployment has happened before introduction of hidden replicas
|
||||
# as those services will stay as configuredService and will not get
|
||||
# started after upgrade, rendering the system non-functioning
|
||||
service.sync_services_state(fqdn)
|
||||
|
||||
if not ds_running:
|
||||
ds.stop(ds.serverid)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user