Project

General

Profile

Actions

Bug #14404

closed

hammer import repository-enable/content-views fails to create any CVs

Added by Adam Price about 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1316110
Description of problem:
hammer import repository-enable stopped working, no CVs are created only repositories are mapped/enabled. CV creation fails with:
500 Internal Server Error: "undefined method `composite?' for nil:NilClass"

Version-Release number of selected component (if applicable):
tfm-rubygem-hammer_cli_import-0.10.23-1.el6sat.noarch
@Satellite6.2.0-Beta-SNAP2

How reproducible:
100%

Steps to Reproduce:

0. Import organization(s) and upload manifest(s)

  1. cat users.csv
    organization_id,organization,user_id,username,last_name,first_name,position,email,role,creation_time,last_login_time,active
    1,SATELLITE QE,1,admin,Admin,Admin,,root@localhost,Satellite Administrator,,,enabled
  1. hammer import organization --csv-file users.csv
    Summary
    Created 1 organization.
  1. hammer subscription upload --file MANIFEST --organization 'SATELLITE QE'

1. Prepare csv file for repository-enablement

  1. cat channels.csv
    channel_id,channel_label,channel_name,number_of_packages,org_id
    101,rhel-x86_64-server-6,Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64),0,

2. Run import repository-enable

  1. hammer import repository-enable --verbose --synchronize --wait --csv-file channels.csv
    Importing from channels.csv
    Enabling /content/dist/rhel/server/6/6Server/x86_64/rhn-tools/os/Packages for channel rhn-tools-rhel-x86_64-server-6 in org 7
    Mapping redhat repository [[1, 105]->29].
    Registering tasks for uuids: ["a3e976fa-365d-493d-9306-be2f7de461e3"].
    Starting thread for async tasks
    Waiting for async tasks to finish
    Asynchronous tasks: 0 of 1 done (~ 0.50%)
    ...
    Asynchronous tasks: 0 of 1 done (~67.50%)
    Condition ["a3e976fa-365d-493d-9306-be2f7de461e3"] met
    Creating new redhat content view: RHN Tools for RHEL (v. 6 for 64-bit x86_64)
    Exception caught while executing post-["a3e976fa-365d-493d-9306-be2f7de461e3"]:
    500 Internal Server Error: {"displayMessage":"undefined method `composite?' for nil:NilClass","errors":["undefined method `composite?' for nil:NilClass"]}
    Asynchronous tasks: 1 of 1 done (~100.00%)
    Exiting thread (exit requested, all tasks done).
    Summary
    Mapped 1 redhat repository.

Actual results:
ISE, no CV created

Expected results:
CV is created

Additional info:

Actions #1

Updated by The Foreman Bot about 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/5927 added
Actions #2

Updated by Eric Helms about 8 years ago

  • translation missing: en.field_release set to 86
Actions #3

Updated by Anonymous about 8 years ago

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

Also available in: Atom PDF