Bug 1452430

Summary: subscription-manager identity --regenerate fails with "wrong number of arguments (1 for 2)"
Product: Red Hat Satellite Reporter: Justin Sherrill <jsherril>
Component: Subscription ManagementAssignee: Brad Buckingham <bbuckingham>
Status: CLOSED ERRATA QA Contact: Kedar Bidarkar <kbidarka>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbuckingham, bkearney, ehelms, jcallaha, kbidarka
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: katello-3.4.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Justin Sherrill 2017-05-19 00:53:40 UTC
Description of problem:

running "subscription-manager identity --regenerate" fails on 6.3.0 builds with the error:

"wrong number of arguments (1 for 2)"

Traceback:

[katello/cp_proxy] [E] ArgumentError: wrong number of arguments (1 for 2)
 | /home/vagrant/git/katello/app/services/katello/candlepin/consumer.rb:29:in `initialize'
 | /home/vagrant/git/katello/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb:168:in `new'
 | /home/vagrant/git/katello/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb:168:in `regenerate_identity_certificates'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.8/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.8/lib/abstract_controller/base.rb:198:in `process_action'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.8/lib/action_controller/metal/rendering.rb:10:in `process_action'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.8/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:117:in `call'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:117:in `call'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:505:in `call'
 | /home/vagrant/.rvm/gems/ruby

Comment 1 Brad Buckingham 2017-05-24 20:13:47 UTC
Created redmine issue http://projects.theforeman.org/issues/19658 from this bug

Comment 2 Brad Buckingham 2017-05-24 20:20:37 UTC
Proposed upstream katello PR: https://github.com/Katello/katello/pull/6799

Comment 5 Kedar Bidarkar 2017-10-01 18:55:25 UTC
2017-10-01 14:51:32 d3ce3f3e [app] [I] Started POST "/rhsm/consumers/1fd6315e-4a7d-46f5-9c97-b5750ead5e72" for 10.xx.xx.xx at 2017-10-01 14:51:32 -0400
2017-10-01 14:51:32 d3ce3f3e [app] [I] Processing by Katello::Api::Rhsm::CandlepinProxiesController#regenerate_identity_certificates as JSON
2017-10-01 14:51:32 d3ce3f3e [app] [I]   Parameters: {"id"=>"1fd6315e-4a7d-46f5-9c97-b5750ead5e72"}
2017-10-01 14:51:32 d3ce3f3e [app] [I] Current user: 1fd6315e-4a7d-46f5-9c97-b5750ead5e72 (regular user)
2017-10-01 14:51:33 d3ce3f3e [app] [I] Completed 200 OK in 329ms (Views: 5.8ms | ActiveRecord: 2.2ms)
2017-10-01 14:51:33 d8ad4695 [app] [I] Started GET "/rhsm/consumers/1fd6315e-4a7d-46f5-9c97-b5750ead5e72" for 10.xx.xx.xx at 2017-10-01 14:51:33 -0400
2017-10-01 14:51:33 d8ad4695 [app] [I] Processing by Katello::Api::Rhsm::CandlepinProxiesController#consumer_show as JSON
2017-10-01 14:51:33 d8ad4695 [app] [I]   Parameters: {"id"=>"1fd6315e-4a7d-46f5-9c97-b5750ead5e72"}
2017-10-01 14:51:33 d8ad4695 [app] [I] Current user: 1fd6315e-4a7d-46f5-9c97-b5750ead5e72 (regular user)
2017-10-01 14:51:34 d8ad4695 [app] [I] Completed 200 OK in 192ms (Views: 4.3ms | ActiveRecord: 2.0ms)




[root@pete-fruhling ~]# subscription-manager identity --regenerate
Identity certificate has been regenerated.

Comment 6 Kedar Bidarkar 2017-10-01 18:55:54 UTC
VERIFIED with Sat6.3.0-snap18.0

Comment 7 Bryan Kearney 2018-02-21 17:33:33 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-2018:0336

Comment 8 Bryan Kearney 2018-02-21 17:33:51 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-2018:0336