Bug 1328807

Summary: IPA upgrade fails for upgrade path 7.0 to 7.2up4.
Product: Red Hat Enterprise Linux 7 Reporter: Nikhil Dehadrai <ndehadra>
Component: pki-coreAssignee: Matthew Harmsen <mharmsen>
Status: CLOSED DUPLICATE QA Contact: Asha Akkiangady <aakkiang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: alee, ndehadra, pvoborni, rcritten
Target Milestone: rcKeywords: Regression, TestBlocker
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-05 19:43:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Console output ipa update 7.0 to 7.2up4
none
ipaupgrade.log
none
pki logs none

Description Nikhil Dehadrai 2016-04-20 10:21:39 UTC
Created attachment 1148990 [details]
Console output ipa update 7.0 to 7.2up4

Description of problem:
IPA upgrade fails for upgrade path 7.0 to 7.2up4.

Description of problem:
IPA upgrade fails for upgrade path 7.1.z to 7.2up4.

Version-Release number of selected component (if applicable):
ipa-server-4.2.0-15.el7_2.15.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Setup IPA server at RHEL 7.0 version (ipa-server-3.3.3-28.el7.x86_64)
2. Setup 7.2 up4 repo links on this server.  
3. Now update the ipa server using command "yum -y update ipa*"

Actual results:
After step3, Following error message is observed on the console:

IPA server upgrade failed: Inspect /var/log/ipaupgrade.log and run command ipa-server-upgrade manually.
Unexpected error - see /var/log/ipaupgrade.log for details:
CalledProcessError: Command ''/bin/systemctl' 'start' 'pki-tomcatd'' returned non-zero exit status 1
(Refer attachment)

Expected results:
No error message should be observed during IPA server upgrade and update should be successful.

Additional info:
1. This issue was not observed for upgrade path from 7.0(GA) to 7.2 up2.

Comment 1 Nikhil Dehadrai 2016-04-20 10:27:57 UTC
Kindly ignore only the following line inside  above description, since it got copied mistakenly:

"Description of problem:
IPA upgrade fails for upgrade path 7.1.z to 7.2up4."

Comment 2 Petr Vobornik 2016-04-20 10:29:31 UTC
seems to me as dup of bug 1328602, i.e. caused by bug 1328522. Could you attach both ipaupgrade.log and /var/log/pki/pki-server-upgrade-10.2.5.log or similar to verify.

Comment 3 Nikhil Dehadrai 2016-04-20 10:29:47 UTC
Created attachment 1149007 [details]
ipaupgrade.log

Please find attached ipaupgrade log.

Comment 4 Nikhil Dehadrai 2016-04-20 10:31:05 UTC
Created attachment 1149009 [details]
pki logs

Please find the attached pki logs.

Comment 7 Petr Vobornik 2016-04-20 11:20:20 UTC
pki-server-upgrade-10.2.5.log shows:

Upgrading server at Wed Apr 20 15:23:25 IST 2016.
Traceback (most recent call last):
  File "/sbin/pki-server-upgrade", line 194, in <module>
    main(sys.argv)
  File "/sbin/pki-server-upgrade", line 187, in main
    upgrader.upgrade()
  File "/usr/lib/python2.7/site-packages/pki/upgrade.py", line 650, in upgrade
    versions = self.versions()
  File "/usr/lib/python2.7/site-packages/pki/upgrade.py", line 483, in versions
    current_version = self.get_current_version()
  File "/usr/lib/python2.7/site-packages/pki/server/upgrade.py", line 299, in get_current_version
    tracker = self.get_server_tracker(instance, subsystem)
  File "/usr/lib/python2.7/site-packages/pki/server/upgrade.py", line 259, in get_server_tracker
    tracker = self.subsystem_trackers[instance]
TypeError: unhashable type: 'PKIInstance'

which is the same as in bug 1328522

connection errors follows in system and debug log

Comment 8 Petr Vobornik 2016-04-20 11:38:41 UTC
moving to PKI component to assess. I would close it as a dup of bug 1328522.

Comment 9 Ade Lee 2016-05-05 19:43:08 UTC

*** This bug has been marked as a duplicate of bug 1328522 ***