Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 909360

Summary: 'katello-configure' fails after CFSE Upgrade from 1.0.1 to 1.1.2.
Product: Red Hat Satellite Reporter: Hayk Hovsepyan <hhovsepy>
Component: Subscription ManagementAssignee: Justin Sherrill <jsherril>
Status: CLOSED NOTABUG QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: gkhachik, mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-08 17:09:39 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:
Embargoed:
Attachments:
Description Flags
catalina out
none
katello configure output
none
catalina out full none

Description Hayk Hovsepyan 2013-02-08 15:46:47 UTC
Description of problem:
When upgrading CFSE 1.0.1 to latest puddle and running 'katello-configure --answer-file=/etc/katello/katello-configure.conf -b' it fails with error 'Skipping because of failed dependencies'.

The full failure log is: http://pastebin.test.redhat.com/126905
Catalina out is: http://pastebin.test.redhat.com/126929

Candlepin version is candlepin-0.7.19-3.el6cf.noarch.


Steps to Reproduce:
1. Install CFSE 1.0.1 from repo 'http://download.lab.bos.redhat.com/rel-eng/CloudForms/1.0.1/latest/el6-se/x86_64/os/'.
2. Stop all katello services.
3. Upgrade CFSE to lattest puddle 'http://download.lab.bos.redhat.com/rel-eng/CloudForms/1.1/2013-02-06.1/el6-se/x86_64/os/'.
4. After 'katello-upgrade' is finished, run 'katello-configure --answer-file=/etc/katello/katello-configure.conf -b'. This fails with error described above. But for previous puddle it was working fine.

I followed upgrade steps from here:
https://fedorahosted.org/katello/wiki/Upgrade10to11


Additional info:
Upgrade from 1.1.1 to 1.1.2 works fine.

Comment 1 Hayk Hovsepyan 2013-02-08 15:54:49 UTC
Created attachment 695138 [details]
catalina out

Comment 2 Hayk Hovsepyan 2013-02-08 15:55:23 UTC
Created attachment 695139 [details]
katello configure output

Comment 5 Hayk Hovsepyan 2013-02-08 16:21:40 UTC
Created attachment 695142 [details]
catalina out full

Comment 6 Justin Sherrill 2013-02-08 16:46:38 UTC
more relevant logs from tomcat:

Feb 08 09:30:13 [main] INFO  org.candlepin.config.EncryptedValueConfigurationParser - reading secret file: /etc/katello/secure/passphrase
Feb 08 09:30:13 [main] INFO  org.candlepin.config.EncryptedValueConfigurationParser - File not found: /etc/katello/secure/passphrase
Feb 08 09:30:13 [main] INFO  org.candlepin.config.EncryptedValueConfigurationParser - Using katello-passwd passphrase: null
Feb 08 09:30:13 [main] INFO  org.candlepin.config.EncryptedValueConfigurationParser - getPassphrase: null
Feb 08 09:30:13 [main] INFO  org.candlepin.config.EncryptedValueConfigurationParser - decrypt called
Feb 08 09:30:13 [main] INFO  org.candlepin.config.EncryptedValueConfigurationParser - Failure trying to decryptdW6YYZQ/L1Mu4bdfVMSSVQ==
java.lang.NullPointerException


Indicates it can't read /etc/katello/secure/passphrase, and sure enough:


# ls -l /etc/katello/secure/
total 4
-rw-rw----. 1 root katello-shared 65 Feb  8 17:16 passphrase
# ls -l /etc/katello/secure/ -d
drwxr-x---. 2 root katello-shared 4096 Feb  8 17:16 /etc/katello/secure/
# id tomcat
uid=91(tomcat) gid=91(tomcat) groups=91(tomcat),182(katello)

Comment 7 Mike McCune 2013-02-08 17:09:39 UTC
For some reason your system is missing the 'katello-all' package which as the commands in the %post section that corrects the security on  /etc/katello/secure/passphrase

Something in your upgrade procedure removed the package as we found in the yum.log:

<jsherrill> mmccune: it was installed and then removed
<jsherrill> Feb 08 14:21:00 Installed: katello-all-0.1.318-1.el6cf.noarch
<jsherrill> Feb 08 14:27:28 Erased: katello-all

going to CLOSE:NOTABUG since nothing in our upgrade procedure indicates this should be removed or does a removal of this package.