https://bugzilla.redhat.com/show_bug.cgi?id=812391 (Red Hat Enterprise Linux 6)
Description of problem: I'm seeing errors from the following after upgrading from 2.1.3-9 to 2.2.0-9: # ipa-server-install --uninstall -U Shutting down all IPA services Removing IPA client configuration Unconfiguring ntpd Unconfiguring CA directory server Unconfiguring CA Unconfiguring named Unconfiguring web server Unconfiguring krb5kdc Unconfiguring directory server Unconfiguring ipa_memcached ipa : ERROR Some installation state for dirsrv has not been restored, see /var/lib/ipa/sysrestore/sysrestore.state ipa : ERROR Some installation state for pkids has not been restored, see /var/lib/ipa/sysrestore/sysrestore.state Version-Release number of selected component (if applicable): initial 6.2 build with IPA 2.1.3: ipa-server-2.1.3-9.el6.x86_64 389-ds-base-1.2.9.14-1.el6.x86_64 Updraded to 2.2.0: ipa-server-2.2.0-9.el6.x86_64 389-ds-base-1.2.10.2-6.el6.x86_64 How reproducible: Seems to be very to always reproducible. Steps to Reproduce: 1. <configure 2.1.3 IPA server on RHEL6.2> 2. <add repoconfig for RHEL6.3 and 2.2.0-9> 3. yum update 'ipa*' 4. <add some data user-add, host-add, etc> 5. ipa-server-install --uninstall -U Actual results: Errors seen from output: # ipa-server-install --uninstall -U Shutting down all IPA services Removing IPA client configuration Unconfiguring ntpd Unconfiguring CA directory server Unconfiguring CA Unconfiguring named Unconfiguring web server Unconfiguring krb5kdc Unconfiguring directory server Unconfiguring ipa_memcached ipa : ERROR Some installation state for dirsrv has not been restored, see /var/lib/ipa/sysrestore/sysrestore.state ipa : ERROR Some installation state for pkids has not been restored, see /var/lib/ipa/sysrestore/sysrestore.state Expected results: No errors seen. Additional info: /var/log/ipaserver-uninstall.log has this at the end which reflects also what was seen on command output: 2012-04-13T14:42:18Z DEBUG Saving Index File to '/var/lib/ipa/sysrestore/sysrestore.index' 2012-04-13T14:42:18Z DEBUG -> no files, removing file 2012-04-13T14:42:18Z DEBUG Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state' 2012-04-13T14:42:18Z DEBUG Saving StateFile to '/var/lib/ipa/sysrestore/sysrestore.state' 2012-04-13T14:42:18Z DEBUG args=/sbin/chkconfig ipa off 2012-04-13T14:42:18Z DEBUG stdout= 2012-04-13T14:42:18Z DEBUG stderr= 2012-04-13T14:42:18Z ERROR Some installation state for dirsrv has not been restored, see /var/lib/ipa/sysrestore/sysrestore.state 2012-04-13T14:42:18Z ERROR Some installation state for pkids has not been restored, see /var/lib/ipa/sysrestore/sysrestore.state 2012-04-13T14:42:18Z WARNING Some installation state has not been restored. This will cause re-installation to fail. It should be safe to remove /var/lib/ipa/sysrestore.state but it may mean your system hasn't be restored to its pre-installation state.
I think this is related to the fix for the shutdown problem on uninstall.
We need to blindly slurp up this state in case it is there, but do nothing with it.
attachment freeipa-rcrit-1007-uninstall.patch
master: 9c39f95[[BR]] ipa-2-2: d4350c0
Metadata Update from @rcritten: - Issue assigned to rcritten - Issue set to the milestone: FreeIPA 2.2 Core Effort - 2012/04
Login to comment on this ticket.