Bug 1596346

Summary: Running bootstrap fails: Content view can't be blank
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: RegistrationAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Jitendra Yejare <jyejare>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.3.1CC: cwelton, fcami, jalviso, jbhatia, ktordeur, mjia, mmccune, patalber, pcreech, rajukuma
Target Milestone: 6.4.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.7.0.rc1.2-0.1.rc1.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1559703 Environment:
Last Closed: 2018-10-16 19:08:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 4 Jitendra Yejare 2018-07-12 14:21:29 UTC
Verified!

@ Satellite 6.4 snap 11

Steps and Observation :

irb(main):051:0> host5 = Host::Managed.new({"operatingsystem_id"=>3, "managed"=>"true", "name"=>"jyejare-10", "ip"=>"192.168.100.20", "hostgroup_id"=>2, "mac":"00:50:56:bf:2a:30", "architecture_id"=>1, "location_id"=>2, "domain_id"=>1, "organization_id"=>1})
=> #<Host::Managed id: nil, name: "jyejare-10", last_compile: nil, last_report: nil, updated_at: nil, created_at: nil, root_pass: nil, architecture_id: 1, operatingsystem_id: 3, environment_id: 1, ptable_id: nil, medium_id: nil, build: false, comment: nil, disk: nil, installed_at: nil, model_id: nil, hostgroup_id: 2, owner_id: nil, owner_type: nil, enabled: true, puppet_ca_proxy_id: 1, managed: true, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: 1, puppet_proxy_id: 1, certname: nil, image_id: nil, organization_id: 1, location_id: 2, type: "Host::Managed", otp: nil, realm_id: nil, compute_profile_id: nil, provision_method: nil, grub_pass: "", discovery_rule_id: nil, global_status: 0, lookup_value_matcher: nil, pxe_loader: nil, openscap_proxy_id: nil>

irb(main):052:0> host5.validate
=> true

irb(main):053:0> host5.errors.first
=> nil

irb(main):055:0> host5.hostgroup
=> #<Hostgroup id: 2, name: "hg2", created_at: "2018-07-12 13:43:15", updated_at: "2018-07-12 13:43:15", environment_id: 1, operatingsystem_id: 3, architecture_id: 1, medium_id: nil, ptable_id: 94, root_pass: "", puppet_ca_proxy_id: 1, use_image: nil, image_file: nil, ancestry: nil, vm_defaults: nil, subnet_id: 1, domain_id: 1, puppet_proxy_id: 1, title: "hg2", realm_id: nil, compute_profile_id: nil, content_source_id: 1, grub_pass: "", content_view_id: nil, lifecycle_environment_id: 1, lookup_value_matcher: "hostgroup=hg2", kickstart_repository_id: nil, subnet6_id: nil, pxe_loader: "PXELinux BIOS", description: "", compute_resource_id: 1, openscap_proxy_id: 1>


irb(main):055:0> hg = host5.hostgroup

hg.content_view_id
=> nil

I tried creating host with managed = "false" and The host is being created with hostgroup that doents have CV.

Comment 5 Bryan Kearney 2018-10-16 19:08:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:2927