Red Hat Bugzilla – Bug 1406506
Network snippets missing from atomic kickstart
Last modified: 2018-02-21 11:54:37 EST
The Satellite Atomic Kickstart does not include "network snippets" causing provisioned atomic hosts to not have the correct network information There is no network section in https://github.com/Katello/katello/blob/master/app/views/foreman/unattended/kickstart-katello-atomic.erb similar to https://github.com/Katello/katello/blob/master/app/views/foreman/unattended/kickstart-katello.erb#L31-L38 Steps to Verify 1) Provision an atomic host (using dhcp) 2) Login to the provisioned host 3) cat "/etc/sysconfig/network-scripts/if-eth0" You should be able to see the dhcp host name 4) Go to the hosts page of this host and check out the provisioning template . Make sure a section like the following exists "network --bootproto dhcp --hostname toledo --device=00:1a:4a:3e:a6:14"
Temporary work around -> 1) Clone the "Satellite Atomic Kickstart Default" template 2) Add the following patch to the template """ @@ -7,6 +7,15 @@ lang <%= @host.params['lang'] || 'en_US.UTF-8' %> keyboard <%= @host.params['keyboard'] || 'us' %> timezone --utc <%= @host.params['time-zone'] || 'UTC' %> +<% subnet = @host.subnet -%> +<% if subnet.respond_to?(:dhcp_boot_mode?) -%> +<% dhcp = subnet.dhcp_boot_mode? && !@static -%> +<% else -%> +<% dhcp = !@static -%> +<% end -%> + +network --bootproto <%= dhcp ? 'dhcp' : "static --ip=#{@host.ip} --netmask=#{subnet.mask} --gateway=#{subnet.gateway} --nameserver=#{[subnet.dns_primary, subnet.dns_secondary].select(&:present?).join(',')}" %> --hostname <%= @host %><%= " --device=#{@host.mac}" -%> + # Partition table should create /boot and a volume atomicos <% if @dynamic -%> %include /tmp/diskpart.cfg -- 1.8.3.1 """
Completing the previous comment 3) Associate the new template to "Red Hat Enterprise Linux Atomic Host 7" and "Red Hat Enterprise Linux Atomic Host 7.3" 4) Update your host groups/hosts to use the new template. Once this issue is resolved you should be able to revert back to the original template.
Created redmine issue http://projects.theforeman.org/issues/17924 from this bug
Upstream bug assigned to szadok@redhat.com
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17924 has been resolved.
Verified in Satellite 6.2.8 snap 2, the snippet has been added to the Satellite Atomic Kickstart template, and the network is configured on the provisioned atomic host: # ip a ... 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 52:54:00:2a:62:8b brd ff:ff:ff:ff:ff:ff inet 192.168.100.39/24 brd 192.168.100.255 scope global dynamic eth0 valid_lft 42545sec preferred_lft 42545sec inet6 fe80::5054:ff:fe2a:628b/64 scope link
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-2017:0447
Upstream bug assigned to paji@redhat.com
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/18054 has been resolved.
*** Bug 1417076 has been marked as a duplicate of this bug. ***
Verified in satellite-6.3.0-21.0.beta.el7sat.noarch, the network snippet has been added to the Satellite Atomic Kickstart template
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:0336