Bug 1318826 - Installation of Satellite 6.1.X fails due to RHSA-2016-0455
Summary: Installation of Satellite 6.1.X fails due to RHSA-2016-0455
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Packaging
Version: 6.1.7
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: Unspecified
Assignee: Mike McCune
QA Contact: Sachin Ghai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-18 00:04 UTC by Mike McCune
Modified: 2017-02-23 19:38 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-18 13:53:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0462 0 normal SHIPPED_LIVE Satellite 6 bug fix update 2016-03-18 17:53:37 UTC

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


Note You need to log in before you can comment on or make changes to this bug.