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 1104781 - Capsule installer 'succeeds' very quickly (but fails with no error) if system is not registered.
Summary: Capsule installer 'succeeds' very quickly (but fails with no error) if system...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Foreman Proxy
Version: 6.0.3
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Ivan Necas
QA Contact: jaudet
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-04 16:43 UTC by Justin Sherrill
Modified: 2017-02-23 21:16 UTC (History)
7 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 6927 0 None None None 2016-04-22 15:12:35 UTC
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 Justin Sherrill 2014-06-04 16:43:03 UTC
Description of problem:

When running a capsule install the install completed within just a few seconds with no error, but there was some information in the logs:



[ INFO 2014-06-04 11:23:46 main] /usr/share/katello-installer/modules/common/lib/puppet/parser/functions/validate_pulp.rb:21:in `function_validate_pulp'
[ INFO 2014-06-04 11:23:46 main] /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/function.rb:33:in `send'
[ INFO 2014-06-04 11:23:46 main] /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/function.rb:33:in `evaluate'
[ INFO 2014-06-04 11:23:46 main] /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast.rb:73:in `safeevaluate'
[ INFO 2014-06-04 11:23:46 main] /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/astarray.rb:25:in `evaluate'
[ INFO 2014-06-04 11:23:46 main] /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/astarray.rb:20:in `each'
[ INFO 2014-06-04 11:23:46 main] /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/astarray.rb:20:in `evaluate'
[ INFO 2014-06-04 11:23:46 main] /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast.rb:73:in `safeevaluate'
[ INFO 2014-06-04 11:23:46 main] /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/ifstatement.rb:25:in `evaluate'
[ INFO 2014-06-04 11:23:46 main] /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast.rb:73:in `safeevaluate'
[ INFO 2014-06-04 11:23:46 main] /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/astarray.rb:25:in `evaluate'
[ INFO 2014-06-04 11:23:46 main] /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/astarray.rb:20:in `each'
[ INFO 2014-06-04 11:23:46 main] /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/astarray.rb:20:in `evaluate'
[ INFO 2014-06-04 11:23:46 main] /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast.rb:73:in `safeevaluate'


looking at /usr/share/katello-installer/modules/common/lib/puppet/parser/functions/validate_pulp.rb:21:in `function_validate_pulp'

revealed:


        raise Puppet::ParseError,
            "The system has to be registered to a Katello instance before installing the node"



for some reason this exception did not trickle up to kafo.

Comment 2 Ivan Necas 2014-08-05 08:31:00 UTC
Created redmine issue http://projects.theforeman.org/issues/6927 from this bug

Comment 3 Ivan Necas 2014-08-05 10:51:45 UTC
Fix proposed here https://github.com/Katello/katello-installer/pull/96

Comment 4 Justin Sherrill 2014-08-07 13:03:32 UTC
I think this deserves to be high severity as it will result in calls into support since:

These are error conditions we are catching, but the errors are not being printed to the user or in the logs.  There is no way for the user to have any idea what the issue is (one that they could correct) without this change.

Comment 5 Ivan Necas 2014-08-13 07:24:03 UTC
The fix to the katello-installer merged in https://github.com/Katello/katello-installer/pull/96

Comment 9 Og Maciel 2014-09-01 15:45:06 UTC
VERIFIED by QE

Browser:
=====
* Firefox 31.0 (MacOS)

Build:  
====
* Satellite-6.0.4-RHEL-6-20140829.0

Packages:
======
* apr-util-ldap-1.3.9-3.el6_0.1.x86_64
* candlepin-0.9.23-1.el6_5.noarch
* candlepin-common-1.0.1-1.el6_5.noarch
* candlepin-scl-1-5.el6_4.noarch
* candlepin-scl-quartz-2.1.5-5.el6_4.noarch
* candlepin-scl-rhino-1.7R3-1.el6_4.noarch
* candlepin-scl-runtime-1-5.el6_4.noarch
* candlepin-selinux-0.9.23-1.el6_5.noarch
* candlepin-tomcat6-0.9.23-1.el6_5.noarch
* elasticsearch-0.90.10-6.el6sat.noarch
* foreman-1.6.0.42-1.el6sat.noarch
* foreman-compute-1.6.0.42-1.el6sat.noarch
* foreman-gce-1.6.0.42-1.el6sat.noarch
* foreman-libvirt-1.6.0.42-1.el6sat.noarch
* foreman-ovirt-1.6.0.42-1.el6sat.noarch
* foreman-postgresql-1.6.0.42-1.el6sat.noarch
* foreman-proxy-1.6.0.30-1.el6sat.noarch
* foreman-selinux-1.6.0.14-1.el6sat.noarch
* foreman-vmware-1.6.0.42-1.el6sat.noarch
* katello-1.5.0-30.el6sat.noarch
* katello-ca-consumer-cloud-qe-10.idmqe.lab.eng.bos.redhat.com-1.0-1.noarch
* katello-certs-tools-1.5.6-1.el6sat.noarch
* katello-default-ca-1.0-1.noarch
* katello-installer-0.0.64-1.el6sat.noarch
* katello-server-ca-1.0-1.noarch
* openldap-2.4.23-32.el6_4.1.x86_64
* pulp-katello-0.3-4.el6sat.noarch
* pulp-nodes-common-2.4.1-0.5.rc1.el6sat.noarch
* pulp-nodes-parent-2.4.1-0.5.rc1.el6sat.noarch
* pulp-puppet-plugins-2.4.1-0.5.rc1.el6sat.noarch
* pulp-puppet-tools-2.4.1-0.5.rc1.el6sat.noarch
* pulp-rpm-plugins-2.4.1-0.6.beta.el6sat.noarch
* pulp-selinux-2.4.1-0.5.rc1.el6sat.noarch
* pulp-server-2.4.1-0.5.rc1.el6sat.noarch
* python-ldap-2.3.10-1.el6.x86_64
* ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch
* ruby193-rubygem-runcible-1.1.0-2.el6sat.noarch
* rubygem-hammer_cli-0.1.1-12.el6sat.noarch
* rubygem-hammer_cli_foreman-0.1.1-16.el6sat.noarch
* rubygem-hammer_cli_foreman_tasks-0.0.3-3.el6sat.noarch
* rubygem-hammer_cli_import-0.10.2-1.2.el6sat.noarch
* rubygem-hammer_cli_katello-0.0.4-14.el6sat.noarch

Browser:
=====
* Firefox 31.0 (MacOS)

Build:  
====
* Satellite/Satellite-6.0.4-RHEL-7-20140829.0

Packages:
======
* candlepin-0.9.23-1.el7.noarch
* candlepin-common-1.0.1-1.el7.noarch
* candlepin-guice-3.0-2_redhat_1.el7.noarch
* candlepin-scl-1-5.el7.noarch
* candlepin-scl-quartz-2.1.5-6.el7.noarch
* candlepin-scl-rhino-1.7R3-3.el7.noarch
* candlepin-scl-runtime-1-5.el7.noarch
* candlepin-selinux-0.9.23-1.el7.noarch
* candlepin-tomcat-0.9.23-1.el7.noarch
* elasticsearch-0.90.10-6.el7sat.noarch
* foreman-1.6.0.42-1.el7sat.noarch
* foreman-compute-1.6.0.42-1.el7sat.noarch
* foreman-gce-1.6.0.42-1.el7sat.noarch
* foreman-libvirt-1.6.0.42-1.el7sat.noarch
* foreman-ovirt-1.6.0.42-1.el7sat.noarch
* foreman-postgresql-1.6.0.42-1.el7sat.noarch
* foreman-proxy-1.6.0.30-1.el7sat.noarch
* foreman-selinux-1.6.0.14-1.el7sat.noarch
* foreman-vmware-1.6.0.42-1.el7sat.noarch
* katello-1.5.0-30.el7sat.noarch
* katello-certs-tools-1.5.6-1.el7sat.noarch
* katello-default-ca-1.0-1.noarch
* katello-installer-0.0.64-1.el7sat.noarch
* katello-server-ca-1.0-1.noarch
* openldap-2.4.39-3.el7.x86_64
* pulp-katello-0.3-4.el7sat.noarch
* pulp-nodes-common-2.4.1-0.5.rc1.el7sat.noarch
* pulp-nodes-parent-2.4.1-0.5.rc1.el7sat.noarch
* pulp-puppet-plugins-2.4.1-0.5.rc1.el7sat.noarch
* pulp-puppet-tools-2.4.1-0.5.rc1.el7sat.noarch
* pulp-rpm-plugins-2.4.1-0.6.beta.el7sat.noarch
* pulp-selinux-2.4.1-0.5.rc1.el7sat.noarch
* pulp-server-2.4.1-0.5.rc1.el7sat.noarch
* python-ldap-2.4.6-6.el7.x86_64
* ruby193-rubygem-net-ldap-0.3.1-3.el7sat.noarch
* ruby193-rubygem-runcible-1.1.0-2.el7sat.noarch
* rubygem-hammer_cli-0.1.1-12.el7sat.noarch
* rubygem-hammer_cli_foreman-0.1.1-16.el7sat.noarch
* rubygem-hammer_cli_foreman_tasks-0.0.3-3.el7sat.noarch
* rubygem-hammer_cli_import-0.10.2-1.2.el7sat.noarch
* rubygem-hammer_cli_katello-0.0.4-14.el7sat.noarch

Comment 10 Bryan Kearney 2014-09-11 12:25:59 UTC
This was delivered with Satellite 6.0 which was released on 10 September 2014.

Comment 11 Sebastian Hetze 2014-10-23 08:59:06 UTC
The current implementation of 10-check_capsule_pulp.rb performs

system("subscription-manager identity | grep identity ...")

which does not work for locales other than english.


This is a severe problem because now capsule-install fails with message "The system has to be registered to a Katello instance before installing the node" even when the node has been registered correctly for all locales where "subscription-manager identity" happens to name identity somewhat diffent.

Comment 12 Bryan Kearney 2014-10-23 10:02:49 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/6927 has been closed
-------------
Ivan Necas
Applied in changeset commit:katello-installer|497d358467e8ed9e0142c91aa5ce953c27eee80a.

Comment 13 Ivan Necas 2014-10-23 13:59:32 UTC
A fix proposed at https://github.com/Katello/katello-installer/pull/132

Comment 14 Bryan Kearney 2014-10-23 14:02:41 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/6927 has been closed
-------------
Ivan Necas
Applied in changeset commit:katello-installer|497d358467e8ed9e0142c91aa5ce953c27eee80a.

Comment 15 Bryan Kearney 2014-10-28 18:02:35 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/6927 has been closed
-------------
Ivan Necas
Applied in changeset commit:katello-installer|497d358467e8ed9e0142c91aa5ce953c27eee80a.

Comment 19 jaudet 2015-03-17 20:20:48 UTC
Output from capsule:

    [root@gizmo ~]# subscription-manager unregister
    System has been unregistered.
    [root@gizmo ~]# capsule-installer --parent-fqdn          "…"\
    >                     --register-in-foreman  "true"\
    >                     --foreman-oauth-key    "…"\
    >                     --foreman-oauth-secret "…"\
    >                     --pulp-oauth-secret    "…"\
    >                     --certs-tar            "/root/certs.tar"\
    >                     --puppet               "true"\
    >                     --puppetca             "true"\
    >                     --pulp                 "true"
    The system has to be registered to a Katello instance before installing the node
    [root@gizmo ~]# subscription-manager version
    server type: This system is currently not registered.
    subscription management server: 2.2.0.21-Unknown
    subscription management rules: 5.14
    subscription-manager: 1.13.22-1.el7
    python-rhsm: 1.13.10-1.el7
    [root@gizmo ~]# rpm -qa | grep capsule-installer
    capsule-installer-2.3.3-1.el7sat.noarch

Comment 20 Bryan Kearney 2015-08-11 13:31:14 UTC
This bug is slated to be released with Satellite 6.1.

Comment 21 errata-xmlrpc 2015-08-12 05:09:14 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.