Bug #14404
closedhammer import repository-enable/content-views fails to create any CVs
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)
- 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
- hammer import organization --csv-file users.csv
Summary
Created 1 organization.
- hammer subscription upload --file MANIFEST --organization 'SATELLITE QE'
1. Prepare csv file for repository-enablement
- 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
- 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:
Updated by The Foreman Bot almost 9 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/5927 added
Updated by Eric Helms almost 9 years ago
- Translation missing: en.field_release set to 86
Updated by Anonymous almost 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|513a691c7c9c5fd43c1e83b89ccedbb50923dfa4.