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 1318826

Summary: Installation of Satellite 6.1.X fails due to RHSA-2016-0455
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: PackagingAssignee: Mike McCune <mmccune>
Status: CLOSED ERRATA QA Contact: Sachin Ghai <sghai>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.1.7CC: bbuckingham, cwelton, sghai
Target Milestone: UnspecifiedKeywords: PrioBumpGSS, PrioBumpPM, PrioBumpQA, 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: 2016-03-18 13:53:50 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:

Description Mike McCune 2016-03-18 00:04:46 UTC
This causes an error during installation running the apipie:cache generation:


 /Stage[main]/Foreman::Database/Foreman::Rake[apipie:cache]/Exec[foreman-rake-apipie:cache]: Failed to call refresh: /usr/sbin/foreman-rake apipie:cache returned 1 instead of one of [0]
 /Stage[main]/Foreman::Database/Foreman::Rake[apipie:cache]/Exec[foreman-rake-apipie:cache]: /usr/sbin/foreman-rake apipie:cache returned 1 instead of one of [0]
 /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[satellite.example.dom]: Could not evaluate: Could not load data from https://satellite.example.com

This is caused by a change in rails:

https://github.com/rails/rails/commit/0c5c32aa7cea5ee1ea60bd1f87dfa5c7e7146a54

fixed upstream in apipie:

https://github.com/Apipie/apipie-rails/commit/25a5de6e8621a361b6276a1c1b7bb1cb8348e569

need this immediately in Satellite 6 as it blocks all new installations.

Comment 3 Sachin Ghai 2016-03-18 12:01:49 UTC
 I tried the fix with give packages in comment 2 and covering two scenarios:

1) Installed 6.1.7 from CDN on *rhel7* and installer failed with the reported error.

Applied fix with following steps

a) rpm -Uvh <rhel7 package that includes the fix>
b) /usr/sbin/foreman-rake apipie:cache --trace

Logs:
====

[root@cloud-qe-20 ~]# rpm -qa | grep ruby193-rubygem-apipie-rails-0.2.5-3.el7sat
ruby193-rubygem-apipie-rails-0.2.5-3.el7sat.noarch
[root@cloud-qe-20 ~]# /usr/sbin/foreman-rake apipie:cache --trace
** Invoke apipie:cache (first_time)
** Invoke environment (first_time)
** Execute environment
Apipie cache enabled but not present yet. Run apipie:cache rake task to speed up API calls.
** Execute apipie:cache
2016-03-18 04:19:06 -0400 | Started
2016-03-18 04:19:14 -0400 | Documents loaded...
2016-03-18 04:19:14 -0400 | Processing docs for
2016-03-18 04:19:25 -0400 | Finished

Just doublecheck, I re-ran the installer and it was completed successfully.


2) Installed 6.1.7 packages from CDN on *rhel6* w/o running katello-installer

Applied fix with following steps:

a) rpm -Uvh <rhel6 package that includes the fix>
b) katello-installer

Installer successfully completed.

Comment 5 Sachin Ghai 2016-03-18 12:10:13 UTC
I ran some hammer commands to create/product/repo and synchronize it via hammer as suggested by Ivan and gone through API docs.. everything looks good.

Comment 6 Sachin Ghai 2016-03-18 12:31:05 UTC
Based on comments 3, 4 and 5. Moving this bz to verified. thanks

Comment 8 errata-xmlrpc 2016-03-18 13:53:50 UTC
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.

https://access.redhat.com/errata/RHBA-2016:0462