Description of problem: [root@rhnscripts1-webdev ~]# katello -ufooadmin -pbaradmin ping ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Katello Status Status Service Result Duration Message ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- fail candlepin ok 21ms candlepin_auth ok 37ms pulp ok 57ms pulp_auth fail undefined method `pulp_oauth_header' for nil:NilClass [root@rhnscripts1-webdev ~]# Version-Release number of selected component (if applicable): How reproducible: Very, every time. Steps to Reproduce: 1. Edit seeds file: vi /usr/share/katello/db/seeds.rb Change admin to 'fooadmin' and password to 'baradmin' 2. Edit pulp.conf file vi /etc/pulp/pulp.conf Change lines to match: default_login: fooadmin default_password: baradmin 3. Cos test system, reset all DBs! /usr/share/katello/script/katello-reset-dbs At end, try katello ping as this new user and note pulp oauth fails. Likely due to hard coded admin within : /usr/share/katello/app/controllers/api/ping_controller.rb (maybe other places as well) Actual results: Fails... Expected results: Works... Additional info: I can confirm pulp oauth works when using - oauth-test.rb script from katello.git repo. Also note: katello -uadmin -padmin ping will give same message (it is authenticated) [root@rhnscripts1-webdev ~]# katello -uadmin -padmin ping ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Katello Status Status Service Result Duration Message ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- fail candlepin ok 20ms candlepin_auth ok 39ms pulp ok 53ms pulp_auth fail undefined method `pulp_oauth_header' for nil:NilClass [root@rhnscripts1-webdev ~]# katello -uadmin -padmin user list Invalid credentials or unable to authenticate [root@rhnscripts1-webdev ~]# katello -ufooadmin -pbaradmin user list ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- User List Id Username Disabled ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 19 fooadmin False 20 anonymous True [root@rhnscripts1-webdev ~]# katello -ufooadmin -pbaradmin ping ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Katello Status Status Service Result Duration Message ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- fail candlepin ok 42ms candlepin_auth ok 53ms pulp ok 45ms pulp_auth fail undefined method `pulp_oauth_header' for nil:NilClass [root@rhnscripts1-webdev ~]#
d289dd6 751375 - Katello ping - undefined method `pulp_oauth_header'
QA Verified.
getting rid of 6.0.0 version since that doesn't exist