Bug 1194173 - capsule-installer complains about missing packages: pulp-katello & python-qpid-qmf & qpid-tools
Summary: capsule-installer complains about missing packages: pulp-katello & python-qpi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Foreman Proxy
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Jason Montleon
QA Contact: jaudet
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-19 09:29 UTC by Jan Hutař
Modified: 2017-02-23 20:28 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 05:25:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1592 0 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 09:04:35 UTC

Description Jan Hutař 2015-02-19 09:29:16 UTC
Description of problem:
capsule-installer complains about missing packages: pulp-katello & python-qpid-qmf & qpid-tools - these packages are missing in Capsule compose (but are present in Satellite compose)


Version-Release number of selected component (if applicable):
Satellite-6.1.0-RHEL-6-20150217.0-Capsule-x86_64


How reproducible:
always


Steps to Reproduce:
1. Ensure you have Capsule repo available, but you do not have Satellite repo
2. # capsule-installer --parent-fqdn          "<sat_fqdn>"\
                    --register-in-foreman  "true"\
                    --foreman-oauth-key    "i6n...wgP"\
                    --foreman-oauth-secret "C56...p2n"\
                    --pulp-oauth-secret    "6s4...SX2"\
                    --certs-tar            "/root/<capsule_fqdn>-certs.tar"\
                    --puppet               "true"\
                    --puppetca             "true"\
                    --pulp                 "true"


Actual results:
 Execution of '/usr/bin/yum -d 0 -e 0 -y list pulp-katello' returned 1: Error: No matching Packages to list
 /Stage[main]/Pulp::Child::Install/Package[pulp-katello]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y list pulp-katello' returned 1: Error: No matching Packages to list
 tar -xzf /mnt/tests/Katello/Installation/Satellite6Latest/<fqdn>-certs.tar returned 2 instead of one of [0]
 /Stage[main]/Capsule/Certs::Tar_extract[/mnt/tests/Katello/Installation/Satellite6Latest/<fqdn>-certs.tar]/Exec[extract /mnt/tests/Katello/Installation/Satellite6Latest/<fqdn>-certs.tar]/returns: change from notrun to 0 failed: tar -xzf /mnt/tests/Katello/Installation/Satellite6Latest/<fqdn>-certs.tar returned 2 instead of one of [0]
 Execution of '/usr/bin/yum -d 0 -e 0 -y install qpid-tools' returned 1: Error: Package: python-qpid-qmf-0.14-14.el6_3.x86_64 (beaker-Server)
 /Stage[main]/Qpid::Install/Package[qpid-tools]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install qpid-tools' returned 1: Error: Package: python-qpid-qmf-0.14-14.el6_3.x86_64 (beaker-Server)
 Execution of '/usr/bin/yum -d 0 -e 0 -y install python-qpid-qmf' returned 1: Error: Package: python-qpid-qmf-0.14-14.el6_3.x86_64 (beaker-Server)
 /Stage[main]/Qpid::Install/Package[python-qpid-qmf]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install python-qpid-qmf' returned 1: Error: Package: python-qpid-qmf-0.14-14.el6_3.x86_64 (beaker-Server)
 /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[<fqdn>]: Failed to call refresh: missing param 'id' in parameters
 /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[<fqdn>]: missing param 'id' in parameters
Installing             Done                                               [100%] [.........................................................................................................................................................]
  Something went wrong! Check the log for ERROR-level output
  The full log is at /var/log/capsule-installer/capsule-installer.log


Expected results:
Should be able to install all required packages. When I have added the Satellite compose repo to the system and re-run the command, it worked.

Comment 1 RHEL Program Management 2015-02-19 10:23:28 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Ivan Necas 2015-02-23 08:46:52 UTC
@jason: is this something you can help with?

Comment 4 Jason Montleon 2015-03-16 12:58:50 UTC
Comps have been updated to include these awhile ago and it should work now. Moving to MODIFIED so it can receive proper testing.

Comment 6 jaudet 2015-03-24 21:39:24 UTC
Tested against a server running Satellite-6.1.0-RHEL-7-20150320.1.

RHEL 6.6 client:

    [root@capsule ~]# cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 6.6 (Santiago)
    [root@capsule ~]# capsule-installer --parent-fqdn          "satellite.example.com"\
    >                   --register-in-foreman  "true"\
    >                   --foreman-oauth-key    "GnEvHS7if3HDpQeLZeRzzKATDfx93fCo"\
    >                   --foreman-oauth-secret "jCtoP5ja4L9F9SDA5v6TFipdcajGrrWv"\
    >                   --pulp-oauth-secret    "SB82AULr6GZaJtoq3Znb9zmNEbupqopZ"\
    >                   --certs-tar            "capsule.example.com.tar"\
    >                   --puppet               "false"\
    >                   --puppetca             "false"\
    >                   --pulp                 "true"
    Installing             Done                                               [100%] [......................]
    Success!
    The full log is at /var/log/capsule-installer/capsule-installer.log

RHEL 7.1 client:

    [root@capsule ~]# cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 7.1 (Maipo)
    [root@capsule ~]# capsule-installer --parent-fqdn          "satellite.example.com"\
    >                   --register-in-foreman  "true"\
    >                   --foreman-oauth-key    "GnEvHS7if3HDpQeLZeRzzKATDfx93fCo"\
    >                   --foreman-oauth-secret "jCtoP5ja4L9F9SDA5v6TFipdcajGrrWv"\
    >                   --pulp-oauth-secret    "SB82AULr6GZaJtoq3Znb9zmNEbupqopZ"\
    >                   --certs-tar            "capsule.example.com.tar"\
    >                   --puppet               "false"\
    >                   --puppetca             "false"\
    >                   --pulp                 "true"
    Execution of '/usr/bin/yum install -y capsule.example.com-apache' returned 1: Loaded plugins: package_upload, product-id, subscription-manager
    Nothing to do
    /Stage[main]/Certs::Apache/Cert[capsule.example.com-apache]/ensure: change from absent to present failed: Execution of '/usr/bin/yum install -y capsule.example.com-apache' returned 1: Loaded plugins: package_upload, product-id, subscription-manager
    Nothing to do
    Execution of '/usr/bin/yum install -y capsule.example.com-qpid-client-cert' returned 1: Loaded plugins: package_upload, product-id, subscription-manager
    Nothing to do
    /Stage[main]/Certs::Pulp_child/Cert[capsule.example.com-qpid-client-cert]/ensure: change from absent to present failed: Execution of '/usr/bin/yum install -y capsule.example.com-qpid-client-cert' returned 1: Loaded plugins: package_upload, product-id, subscription-manager
    Nothing to do
    Execution of '/usr/bin/yum install -y capsule.example.com-qpid-router-server' returned 1: Loaded plugins: package_upload, product-id, subscription-manager
    Nothing to do
    /Stage[main]/Certs::Qpid_router/Cert[capsule.example.com-qpid-router-server]/ensure: change from absent to present failed: Execution of '/usr/bin/yum install -y capsule.example.com-qpid-router-server' returned 1: Loaded plugins: package_upload, product-id, subscription-manager
    Nothing to do
    Execution of '/usr/bin/yum install -y capsule.example.com-qpid-router-client' returned 1: Loaded plugins: package_upload, product-id, subscription-manager
    Nothing to do
    /Stage[main]/Certs::Qpid_router/Cert[capsule.example.com-qpid-router-client]/ensure: change from absent to present failed: Execution of '/usr/bin/yum install -y capsule.example.com-qpid-router-client' returned 1: Loaded plugins: package_upload, product-id, subscription-manager
    Nothing to do
    Execution of '/usr/bin/yum install -y capsule.example.com-qpid-broker' returned 1: Loaded plugins: package_upload, product-id, subscription-manager
    Nothing to do
    /Stage[main]/Certs::Qpid/Cert[capsule.example.com-qpid-broker]/ensure: change from absent to present failed: Execution of '/usr/bin/yum install -y capsule.example.com-qpid-broker' returned 1: Loaded plugins: package_upload, product-id, subscription-manager
    Nothing to do
    /Stage[main]/Certs::Katello/Certs_bootstrap_rpm[katello-ca-consumer-capsule.example.com]: Failed to call refresh: No such file or directory - /var/www/html/pub/rhsm-katello-reconfigure
    /Stage[main]/Certs::Katello/Certs_bootstrap_rpm[katello-ca-consumer-capsule.example.com]: No such file or directory - /var/www/html/pub/rhsm-katello-reconfigure
    /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[capsule.example.com]: Failed to call refresh: missing param 'id' in parameters
    /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[capsule.example.com]: missing param 'id' in parameters
    Installing             Done                                               [100%] [......................]
    Something went wrong! Check the log for ERROR-level output
    The full log is at /var/log/capsule-installer/capsule-installer.log

Comment 7 Jason Montleon 2015-03-25 12:32:35 UTC
The new error is a different bug. These look like a failure to install certs from the specified tar file, rather than missing packages from the capsule repo.

Comment 8 Ivan Necas 2015-03-25 12:33:48 UTC
This seems like different error, not related to the original report (the original issue seems to be fixed).


Please file a new BZ on this issue, with detailed reproducer (including the part on sat6 server side), with foreman-debug, capsule.example.com.tar, or/and ideally with a life system with this issue.

Comment 9 jaudet 2015-03-25 18:38:54 UTC
I am unable to reproduce the issue reported in #c6. That bug may be due to a
corrupted archive or some other transient issue. In an attempt to reproduce, I
created four new capsules. One pair of RHEL 6.6 and 7.1 systems ran a command
like this:

    capsule-installer \
        --parent-fqdn           "satellite.example.com"             \
        --register-in-foreman   "true"                              \
        --foreman-oauth-key     "GnEvHS7if3HDpQeLZeRzzKATDfx93fCo"  \
        --foreman-oauth-secret  "jCtoP5ja4L9F9SDA5v6TFipdcajGrrWv"  \
        --pulp-oauth-secret     "SB82AULr6GZaJtoq3Znb9zmNEbupqopZ"  \
        --certs-tar             "capsule.example.com.tar"           \
        --puppet                "false"                             \
        --puppetca              "false"                             \
        --pulp                  "true"

The second pair of RHEL 6.6 and 7.1 systems ran a command like this:

    capsule-installer \
        --parent-fqdn           "satellite.example.com"             \
        --register-in-foreman   "true"                              \
        --foreman-oauth-key     "GnEvHS7if3HDpQeLZeRzzKATDfx93fCo"  \
        --foreman-oauth-secret  "jCtoP5ja4L9F9SDA5v6TFipdcajGrrWv"  \
        --pulp-oauth-secret     "SB82AULr6GZaJtoq3Znb9zmNEbupqopZ"  \
        --certs-tar             "capsule.example.com.tar"           \
        --puppet                "true"                              \
        --puppetca              "true"                              \
        --pulp                  "true"

Notice that the first command sets puppet-related options to "false" as shown in #c6, and the second command does not. The satellite in question is running Satellite-6.1.0-RHEL-7-20150320.1.

Comment 10 Bryan Kearney 2015-08-11 13:33:53 UTC
This bug is slated to be released with Satellite 6.1.

Comment 11 errata-xmlrpc 2015-08-12 05:25:10 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/RHSA-2015:1592


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