Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
It's not possible to transition a system that isn't subscribed to any child and base channel.
The reason is, we try to create an empty 'system content view', what fails.
Version-Release number of selected component (if applicable):
rubygem-hammer_cli_import-0.10.3-1.el6.noarch
How reproducible:
always
Steps to Reproduce:
1. import system profile with csv:
1000010037,vmware194.englab.brq.redhat.com,vmware194.englab.brq.redhat.com,"Initial Registration Parameters:
OS: redhat-release
Release: 5Server
CPU Arch: x86_64-redhat-linux",1,Red Hat IT,,,,,,,5Server,x86_64,,,Yes,VMware
Actual results:
* hammer import fails with:
Caught RestClient::UnprocessableEntity:422 Unprocessable Entity while processing CSV line:
{"hostname"=>"vmware194.englab.brq.redhat.com", "system_group_id"=>nil, "profile_name"=>"vmware194.englab.brq.redhat.com", "architecture"=>"x86_64", "release"=>"5Server", "server_id"=>"1000010037", "child_channel_id"=>nil, "virtual_host"=>nil, "organization_id"=>"1", "base_channel_id"=>nil, "description"=>"Initial Registration Parameters:\nOS: redhat-release\nRelease: 5Server\nCPU Arch: x86_64-redhat-linux", "virtual_guest"=>nil, "base_channel_label"=>nil}
* sat6 log contains:
Processing by Katello::Api::V2::ContentViewsController#create as application/json;version=2
Parameters: {"label"=>"", "composite"=>true, "description"=>"Composite content view for content hosts", "component_ids"=>[], "name"=>"", "api_version"=>"
v2", "organization_id"=>"3", "content_view"=>{"name"=>"", "label"=>"", "description"=>"Composite content view for content hosts", "composite"=>true, "compo
nent_ids"=>[]}}
Authorized user admin(Admin User)
ActiveRecord::RecordInvalid
label: ["can't be blank", "cannot contain characters other than ascii alpha numerals, '_', '-'. ", "must contain at least 1 character"]
name: ["can't be blank", "must contain at least 1 character"]
Expected results:
successful transition
DEVELOPER VERIFIED:
===
# cat no_channel.csv
server_id,profile_name,hostname,description,organization_id,organization_name,base_channel_id,base_channel_label,child_channel_id,child_channel_label,system_group_id,system_group,release,architecture,virtual_host,virtual_guest,is_virtualized,virt_type
2000010004,dhcp129-69.rdu.redhat.com,dhcp129-69.rdu.redhat.com,"Initial Registration Parameters:
OS: redhat-release-server
Release: 6Server
CPU Arch: x86_64",1,RED HAT SATELLITE ENGINEERING,,,,,,,6Server,x86_64,,,Yes,KVM/QEMU
# hammer import content-host --csv-file no_channel.csv --export-directory /root/no_channel_rpmbuild
To build the system-profile-transition rpm, run:
cd /root/no_channel_rpmbuild/SPECS &&
rpmbuild -ba --define "_topdir /root/no_channel_rpmbuild" system-profile-transition-dell-per905-01.rhts.eng.bos.redhat.com-1409832982-0.0.1.spec
Then find your system-profile-transition-dell-per905-01.rhts.eng.bos.redhat.com-1409832982 package
in /root/no_channel_rpmbuild/RPMS/noarch/ directory.
Summary
Created 1 system.
===
System shows under content-hosts in Sat6, no associated content-view
Verified against 0.10.4
Description of problem: It's not possible to transition a system that isn't subscribed to any child and base channel. The reason is, we try to create an empty 'system content view', what fails. Version-Release number of selected component (if applicable): rubygem-hammer_cli_import-0.10.3-1.el6.noarch How reproducible: always Steps to Reproduce: 1. import system profile with csv: 1000010037,vmware194.englab.brq.redhat.com,vmware194.englab.brq.redhat.com,"Initial Registration Parameters: OS: redhat-release Release: 5Server CPU Arch: x86_64-redhat-linux",1,Red Hat IT,,,,,,,5Server,x86_64,,,Yes,VMware Actual results: * hammer import fails with: Caught RestClient::UnprocessableEntity:422 Unprocessable Entity while processing CSV line: {"hostname"=>"vmware194.englab.brq.redhat.com", "system_group_id"=>nil, "profile_name"=>"vmware194.englab.brq.redhat.com", "architecture"=>"x86_64", "release"=>"5Server", "server_id"=>"1000010037", "child_channel_id"=>nil, "virtual_host"=>nil, "organization_id"=>"1", "base_channel_id"=>nil, "description"=>"Initial Registration Parameters:\nOS: redhat-release\nRelease: 5Server\nCPU Arch: x86_64-redhat-linux", "virtual_guest"=>nil, "base_channel_label"=>nil} * sat6 log contains: Processing by Katello::Api::V2::ContentViewsController#create as application/json;version=2 Parameters: {"label"=>"", "composite"=>true, "description"=>"Composite content view for content hosts", "component_ids"=>[], "name"=>"", "api_version"=>" v2", "organization_id"=>"3", "content_view"=>{"name"=>"", "label"=>"", "description"=>"Composite content view for content hosts", "composite"=>true, "compo nent_ids"=>[]}} Authorized user admin(Admin User) ActiveRecord::RecordInvalid label: ["can't be blank", "cannot contain characters other than ascii alpha numerals, '_', '-'. ", "must contain at least 1 character"] name: ["can't be blank", "must contain at least 1 character"] Expected results: successful transition