Project

General

Profile

Bug #19658

subscription-manager identity --regenerate fails with "wrong number of arguments (1 for 2)"

Added by Brad Buckingham about 5 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Subscriptions
Target version:
Difficulty:
easy
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1452430

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

Associated revisions

Revision ae38ec56 (diff)
Added by Brad Buckingham about 5 years ago

fixes #19658 - fix error on sub-mgr register --regenerate

The initializer on the candlepin consumer was updated to include
owner to support changes in the candlpein pool apis; however,
the initializer is also used during a
'subscription-manager register --regenerate'
where no owner is supplied.

Error without fix:

subscription-manager identity --regenerate

wrong number of arguments (1 for 2)

Note: similar issue would exist for a consumer_checkin

History

#1 Updated by Brad Buckingham about 5 years ago

  • Subject changed from subscription-manager identity --regenerate fails with "wrong number of arguments (1 for 2)" to subscription-manager identity --regenerate fails with "wrong number of arguments (1 for 2)"
  • Status changed from New to Assigned
  • Assignee changed from Eric Helms to Brad Buckingham
  • Target version set to 193
  • Legacy Backlogs Release (now unused) set to 228
  • Difficulty set to easy

#2 Updated by The Foreman Bot about 5 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6799 added

#3 Updated by Brad Buckingham about 5 years ago

  • Target version changed from 193 to 196

#4 Updated by Brad Buckingham about 5 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF