Red Hat Bugzilla – Bug 1126087
content_source doesn't work with host group-based provisioning
Last modified: 2016-07-27 07:02:28 EDT
Foreman's default PXE menu can support provisioning by host group, however, Katello's content_source setup needs some changes. - content_source needs to be added to hostgroup jail, - distribution_repositories needs to refer to .architecture instead of .arch for hostgroups - maybe more changes are needed
Created from redmine issue http://projects.theforeman.org/issues/6853
Upstream bug assigned to stbenjam@redhat.com
Moving to POST since upstream bug http://projects.theforeman.org/issues/6853 has been closed ------------- Anonymous Applied in changeset commit:katello|d614feb86781a5e5d29ad9635305596b7415064d.
Please provide the verification steps for this bug.
I believe we need to test, whether host created using a host-group gets provisioned. Also make sure host-group has the content-source defined. Please confirm the above, else provide verification steps.
Yup, correct. I added some steps to the redmine ticket: http://projects.theforeman.org/issues/6853
Created attachment 933299 [details] host_group entry visible via menu with default pxe
Tested with Sat6-GA-snap6-compose3 The host_group entry is visible via the menu with the default file. But fails to get provisioned as it's unable to fetch the kickstart file. ===================================== Default file ===================================== DEFAULT menu PROMPT 0 MENU TITLE PXE Menu TIMEOUT 200 TOTALTIMEOUT 6000 ONTIMEOUT local LABEL local MENU LABEL (local) MENU DEFAULT LOCALBOOT 0 LABEL Satellite Kickstart Default Fix_Hosts_REALM - rhel65grp kernel boot/RedHat-6.5-x86_64-vmlinuz append initrd=boot/RedHat-6.5-x86_64-initrd.img ks=https://xxxx.redhat.com/unattended/template/Satellite%20Kickstart%20Default%20Fix_Hosts_REALM/rhel65grp ksdevice=bootif network kssendmac --------------------------------------------------------------------------- 1) As seen from above the ks link looks to be created with https. can we please confirm if that's OK? 2) Tried with http, but no luck 3) Tried with http and with port 80, but no luck
Also tried provisioning a vm the normal way and could provision it, so DNS issues are ruled out.
There's a couple of issues. BZ1126937 - missed a template change (this is the certname error you see now) BZ1136002 - it's returning an HTTPS url, which Anaconda will not like
Dependent issues all fixed upstream, this one can be QA'd when they go to MODIFIED too.
As per comment 14, Both the bugs were moved to assigned state which is BLOCKER for this bug's verification.
Tried with Sat6.1 Beta snap6 compose2
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-2015:1592
Accidentally closed with 6.1.1 errata
Not only 'content_source' and but also 'mac' doesn't work with host group provisioning 2016-06-06 06:25:02 [app] [I] Started GET "/unattended/template/Satellite%20Kickstart%20Default/My%20Hostgroup" for <CLIENT_IP> at 2016-06-06 06:25:02 -0400 2016-06-06 06:25:02 [app] [I] Processing by UnattendedController#hostgroup_template as HTML 2016-06-06 06:25:02 [app] [I] Parameters: {"id"=>"Satellite Kickstart Default", "hostgroup"=>"My Hostgroup"} 2016-06-06 06:25:02 [app] [I] Rendered inline template (71.7ms) 2016-06-06 06:25:02 [app] [W] There was an error rendering the Unnamed template: | ActionView::Template::Error: undefined method 'mac' for Hostgroup::Jail (Hostgroup) | /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.2.3/lib/safemode/jail.rb:17:in `method_missing' | /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.2.3/lib/safemode.rb:89:in `bind'
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/RHBA-2016:1501