Project

General

Profile

Bug #17692

hammer repository-set available-repositories: "private method `select' called for nil:NilClass"

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

Status:
Resolved
Priority:
High
Assignee:
Category:
Repositories
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

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

Description of problem:
hammer repository-set available-repositories: "private method `select' called for nil:NilClass"

Version-Release number of selected component (if applicable):
satellite-6.2.5-1.0.el7sat.noarch

How reproducible:
always on my setup

Steps to Reproduce:
1. Installed satellite, then reinstalled it with: # satellite-installer --scenario satellite
--foreman-admin-email
--foreman-admin-username admin
--foreman-admin-password <pass>
--reset --clear-pulp-content
2. Upload manifest via hammer
3. # hammer --debug --csv --username admin --password <pass>
repository-set available-repositories
--product "Red Hat Satellite Capsule"
--name "Red Hat Satellite Capsule 6.2 (for RHEL 7 Server) (RPMs)"
--organization "Default Organization"

Actual results:
  1. hammer --csv --username admin --password <pass> repository-set available-repositories --product "Red Hat Satellite Capsule" --name "Red Hat Satellite Capsule 6.2 (for RHEL 7 Server) (RPMs)" --organization "Default Organization"
    private method `select' called for nil:NilClass

Expected results:
Should work or provide helpful error message

Additional note:

Refreshing manifest helped to resolve underlying issue, but note that this bug is about providing reasonably good error message.

See bugzilla for logs.

History

#1 Updated by Brad Buckingham over 5 years ago

  • Subject changed from hammer repository-set available-repositories: "private method `select' called for nil:NilClass" to hammer repository-set available-repositories: "private method `select' called for nil:NilClass"
  • Legacy Backlogs Release (now unused) set to 114

#2 Updated by The Foreman Bot over 5 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Andrew Kofink
  • Legacy Backlogs Release (now unused) deleted (114)
  • Pull request https://github.com/Katello/katello/pull/6531 added

#3 Updated by Andrew Kofink over 5 years ago

  • Target version set to 157

#4 Updated by Andrew Kofink over 5 years ago

  • Pull request https://github.com/theforeman/foreman-tasks/pull/31 added
  • Pull request deleted (https://github.com/Katello/katello/pull/6531)

Fixed in foreman-tasks >= v.0.8.1

#5 Updated by Andrew Kofink over 5 years ago

  • Status changed from Ready For Testing to Closed

#6 Updated by Justin Sherrill over 5 years ago

  • Status changed from Closed to Resolved
  • Legacy Backlogs Release (now unused) set to 166

Resolved by a newer foreman-tasks release

Also available in: Atom PDF