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
hammer-cli-import.git: 4d73b04e26a61818f2f6a5af36d231172114d838
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
This was delivered with Satellite 6.0 which was released on 10 September 2014.