Created attachment 900254 [details] production.log Description of problem: Installed new sat6 snap7 compose2 (Satellite/Satellite-6.0.3-RHEL-6-20140528.4) After installation, I got error reported in bz:#1099933. But when I checked the status with hammer ping command, found pulp-auth is throwing undefined method error: [root@dhcp201-185 ~]# hammer ping candlepin: Status: ok Server Response: Duration: 96ms candlepin_auth: Status: ok Server Response: Duration: 32ms pulp: Status: ok Server Response: Duration: 268ms pulp_auth: Status: FAIL Server Response: Message: undefined method `resources' for nil:NilClass elasticsearch: Status: ok Server Response: Duration: 88ms katello_jobs: Status: ok Server Response: Duration: 30ms Version-Release number of selected component (if applicable): sat6 snap7 compose2 (Satellite/Satellite-6.0.3-RHEL-6-20140528.4) How reproducible: always Steps to Reproduce: 1. install new build as pointed above 2. run hammer ping cmd after katello-installer 3. Actual results: pulp_auth: Status: FAIL Server Response: Message: undefined method `resources' for nil:NilClass Expected results: Status for All services should be 'ok' Additional info:
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.
*** Bug 1056323 has been marked as a duplicate of this bug. ***
Created redmine issue http://projects.theforeman.org/issues/6211 from this bug
Moving to POST since upstream bug http://projects.theforeman.org/issues/6211 has been closed
https://github.com/Katello/katello/pull/4265 4e31fda91c136d2754bb8f5256507ae348d49576 Fixes #6211,BZ1102521 - Requiring a user to ping pulp_auth It looks like the code didn't properly set User.current so Katello.pulp_server was nil. This code checks for a user in the controller. Also, it handles the case of no user by skipping the pulp_auth check which needs remote_id from a user.
Verified. # hammer -u admin -p changeme ping candlepin: Status: ok Server Response: Duration: 26ms candlepin_auth: Status: ok Server Response: Duration: 39ms pulp: Status: ok Server Response: Duration: 17ms pulp_auth: Status: ok Server Response: Duration: 19ms elasticsearch: Status: ok Server Response: Duration: 19ms katello_jobs: Status: ok Server Response: Duration: 44ms Version Tested: Satellite-6.0.4-RHEL-6-20140730.0 * apr-util-ldap-1.3.9-3.el6_0.1.x86_64 * candlepin-0.9.19-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.19-1.el6_5.noarch * candlepin-tomcat6-0.9.19-1.el6_5.noarch * elasticsearch-0.90.10-4.el6sat.noarch * foreman-1.6.0.34-1.el6sat.noarch * foreman-compute-1.6.0.34-1.el6sat.noarch * foreman-gce-1.6.0.34-1.el6sat.noarch * foreman-libvirt-1.6.0.34-1.el6sat.noarch * foreman-ovirt-1.6.0.34-1.el6sat.noarch * foreman-postgresql-1.6.0.34-1.el6sat.noarch * foreman-proxy-1.6.0.23-1.el6sat.noarch * foreman-selinux-1.6.0.4-1.el6sat.noarch * foreman-vmware-1.6.0.34-1.el6sat.noarch * katello-1.5.0-27.el6sat.noarch * katello-ca-1.0-1.noarch * katello-certs-tools-1.5.6-1.el6sat.noarch * katello-installer-0.0.56-1.el6sat.noarch * openldap-2.4.23-34.el6_5.1.x86_64 * pulp-katello-0.3-3.el6sat.noarch * pulp-nodes-common-2.4.0-0.23.beta.el6sat.noarch * pulp-nodes-parent-2.4.0-0.23.beta.el6sat.noarch * pulp-puppet-plugins-2.4.0-0.23.beta.el6sat.noarch * pulp-puppet-tools-2.4.0-0.23.beta.el6sat.noarch * pulp-rpm-plugins-2.4.0-0.23.beta.el6sat.noarch * pulp-selinux-2.4.0-0.23.beta.el6sat.noarch * pulp-server-2.4.0-0.23.beta.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 * sssd-ldap-1.11.5.1-3.el6.x86_64
This was delivered with Satellite 6.0 which was released on 10 September 2014.