The IdM upgrade script now runs successfully
Previously, the Identity Management (IdM) server upgrade script failed to detect a version change. As a consequence, upgrading an IdM server failed. This bug has been fixed and the upgrade now succeeds.
This bug is created as a clone of upstream ticket:
Obviously it was upgrade to never version.
2015-12-09T15:21:02Z DEBUG The ipa-server-upgrade command failed, exception: ScriptError: ("Unable to execute IPA upgrade: data are in newer version than IPA (data version '4.2.0-15.el7', IPA version '4.2.0-15.el7_2.3')", 1)
2015-12-09T15:21:02Z ERROR ("Unable to execute IPA upgrade: data are in newer version than IPA (data version '4.2.0-15.el7', IPA version '4.2.0-15.el7_2.3')", 1)
"/var/log/ipaupgrade.log" 54696L, 5389464C
The bug manifests in 7.2.0 (ipa-4.2.0-15.el7) to 7.2.z (4.2.0-15.el7_2.3) upgrade. The upgrade does not happen as the version check is flawed and does not detect 7.2.z version as the new one.
The workaround is to run
# ipa-server-upgrade --skip-version-check
after the RPM upgrade and start the service again.
*** Bug 1290346 has been marked as a duplicate of this bug. ***
Yup...sucks big time
1 Could not load host key: /etc/ssh/ssh_host_dsa_key
2 warning: file /lib/modules/3.10.0-229.14.1.el7.x86_64/modules.softdep: remove failed: No such file or directory
3 warning: file /lib/modules/3.10.0-229.14.1.el7.x86_64/modules.devname: remove failed: No such file or directory
4 IPA server upgrade failed: Inspect /var/log/ipaupgrade.log and run command ipa-server-upgrade manually.
5 ("Unable to execute IPA upgrade: data are in newer version than IPA (data version '4.2.0-15.el7', IPA version '4.2.0-15.el7_2.3')", 1)
Not sure why the naming format; perhaps specfile got botched? Maybe it should be version 4.2.3.el7 instead of 4.2.0-15.el7_2.3?
(In reply to ilmostro7 from comment #8)
> Not sure why the naming format; perhaps specfile got botched? Maybe it
> should be version 4.2.3.el7 instead of 4.2.0-15.el7_2.3?
This is bug in checking version method, 4.2.0-15.el7_2.3 version is okay.
the upstream patch causes https://fedorahosted.org/freeipa/ticket/5572 Different approach needs to be used.
Ticket 5572 fixed upstream:
IPA server version: ipa-server-4.4.0-3.el7.x86_64
Verified the bug on the basis of following steps:
1. Verified that no error message is observed during upgrade of IPA server.
2. Verified the bug for upgrade paths:
a) 7.2(GA) to 7.3
b) 7.2.z to 7.3 (In my case upgrade from 7.2up6)
Thus on the basis of above observations marking the status of bug to "VERIFIED".
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.