Project

General

Profile

Bug #10614

Kickstart template on rhel5 includes --device=MAC

Added by Justin Sherrill almost 8 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1206615
Description of problem:

The Satellite Kickstart Default provisioning template will render the following:

network --bootproto dhcp --device=52:54:00:35:17:60 --hostname moe-59-64.lexample.com

However rhel5 does not seem to support specifying the mac address with --device, only rhle6 and newer. This causes rhel5 provisioning to fail with an error "The Following network interface <MAC> does not exist"

Version-Release number of selected component (if applicable):
katello-2.2.0.8-1.el7sat.noarch
katello-ca-consumer-ibm-x3250m4-06.lab.eng.rdu2.redhat.com-1.0-1.noarch
katello-certs-tools-2.2.1-1.el7sat.noarch
katello-common-2.2.0.8-1.el7sat.noarch
katello-debug-2.2.0.8-1.el7sat.noarch
katello-default-ca-1.0-1.noarch
katello-installer-2.3.5-1.el7sat.noarch
katello-installer-base-2.3.5-1.el7sat.noarch
katello-server-ca-1.0-1.noarch

The relevant line form the snippet:

network --bootproto <%= dhcp ? 'dhcp' : "static --ip=#{@host.ip} --netmask=#{subnet.mask} --gateway=#{subnet.gateway} --nameserver=#{[subnet.dns_primary, subnet.dns_secondary].select(&:present?).join(',')}" %> --device=<%= @host.mac -%> --hostname <%= @host %>

How reproducible:
Always

Steps to Reproduce:
1. Attempt to provision a rhel5 machine

Actual results:
Fails with error "The Following network interface <MAC> does not exist"

Expected results:
Successful provision

Additional info:

The foreman kickstart default for rhel does not seem to have the same networking line (and does not include a --device reference), but I'm not sure the history behind this.

Associated revisions

Revision 72ac9eaa (diff)
Added by Justin Sherrill almost 8 years ago

fixes #10614 - omit device network option on el5 kickstart

Revision 49fec0bf
Added by Justin Sherrill almost 8 years ago

Merge pull request #5248 from jlsherrill/10614

fixes #10614 - omit device network option on el5 kickstart

History

#1 Updated by The Foreman Bot almost 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/5248 added
  • Pull request deleted ()

#2 Updated by Justin Sherrill almost 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Eric Helms almost 8 years ago

  • Legacy Backlogs Release (now unused) set to 31
  • Triaged changed from No to Yes

Also available in: Atom PDF