[Freeipa-devel] [PATCH] 0637 upgradeinstance: Restore listeners on failure

Martin Kosek mkosek at redhat.com
Wed Sep 24 08:43:09 UTC 2014


On 08/22/2014 06:07 PM, Petr Viktorin wrote:
> https://fedorahosted.org/freeipa/ticket/4499
> 
> Actually I wonder why we use backup_state/restore_state for these settings.
> Rob, was there a reason for not just always setting nsslapd-port: 389 and
> nsslapd-security: on?

This works pretty nicely, I liked the service.py extension.

My test output:

# ipa-ldap-updater --upgrade
Upgrading IPA:
  [1/10]: stopping directory server
  [2/10]: saving configuration
  [3/10]: disabling listeners
  [4/10]: starting directory server
  [5/10]: preparing server upgrade
PRE_SCHEMA_UPDATE
  [6/10]: updating schema
...
  [7/10]: upgrading server
  [error] ValueError: Ha!
  [cleanup]: stopping directory server
  [cleanup]: restoring configuration

# ipactl start
# netstat -putna | grep 389
...
tcp6       0      0 10.16.78.147:389        10.16.78.147:37490      ESTABLISHED
5956/ns-slapd

So I am willing to ACK if there are no other objections.

Martin




More information about the Freeipa-devel mailing list