Project

General

Profile

Bug #14614

hammer import activation-key fails to create composite CVs

Added by Thomas McKay over 3 years ago. Updated about 1 year ago.

Status:
Rejected
Priority:
Normal
Assignee:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1325124
Description of problem:
hammer import activation-key fails to create composite CVs. Import activation-key used to use imported CVs and create composite CV out of them (=grouping base and child channel based CVs togheter).
But CV import was broken for sometime so that broken ability to create a composite CV during AK import cannot be simply revealed till now as BZ #1316110 has been fixed.

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

How reproducible:
always

Steps to Reproduce:
0. Import a organization and upload manifest (manually)

1. Run import repository-enable for RH repositories (manually) and sync 'em (rhel-x86_64-server-7 + rhn-tools-rhel-x86_64-server-7)

2. Prepare csv file for AK import
  1. cat activation-keys.csv
    org_id,token,note,usage_limit,is_disabled,deploys_configs,entitlement,channel_label,base_channel_id,child_channel_id,cfg_channel_pos,server_group,server_group_id,package_name
    1,1-key,None,,0,N,enterprise_entitled;monitoring_entitled;provisioning_entitled,rhel-x86_64-server-7;rhn-tools-rhel-x86_64-server-7,103;None,None;106,config-1|1,,,
3. Run AK import
  1. hammer import activation-key --verbose --csv-file activation-keys.csv
    Importing from activation-keys.csv
    Creating new activation key: 1-key
    Creating new ak content view: ak_1
    Caught RestClient::InternalServerError:500 Internal Server Error while processing activation key 1
    Summary
    Created 1 activation_key.

Actual results:
500 ISE, composite CV not created

Expected results:
composite CV successfully created

Additional info:
the error message is the same as with BZ #1316110 - undefined method `composite?' for nil:NilClass

History

#1 Updated by Thomas McKay over 3 years ago

  • Project changed from Katello to Hammer CLI Import

#2 Updated by Eric Helms about 1 year ago

  • Status changed from New to Rejected

Also available in: Atom PDF