Bug 1172700

Summary: discovery images that are provided by foreman-plugin-discovery are bad
Product: Red Hat Satellite Reporter: sefi litmanovich <slitmano>
Component: Discovery PluginAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.6CC: dcleal
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-10 15:53:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description sefi litmanovich 2014-12-10 15:14:07 UTC
Description of problem:

the images provided by 
katello-installer --foreman-plugin-discovery-install-images=true

are corrupted 

Version-Release number of selected component (if applicable):

sat 6.0.6
foreman-discovery 1.3.0

How reproducible:


Steps to Reproduce:
1. install satellite with subscription manager following this:
https://access.redhat.com/products/red-hat-satellite/get-started
2. install katello with the host serving as dhcp and dns server in a closed network of hosts set prior to installation.

katello-installer --capsule-dns true --capsule-dns-forwarders "{host_ip}" --capsule-dns-interface {host_interface} --capsule-dns-zone something.com --capsule-dhcp true --capsule-dhcp-gateway {host_ip} --capsule-dhcp-interface {host_interface} --capsule-dhcp-nameservers {host_ip} --capsule-dhcp-range "192.168.105.10 192.168.105.100" --capsule-tftp true --capsule-tftp-servername {host_ip}

3. install foreman-plugin-discovery to get disovery images:

katello-installer --foreman-plugin-discovery-install-images=true

4. set /var/lib/tftpboot/pxelinux.cfg/default:

DEFAULT menu
PROMPT 0
MENU TITLE PXE Menu
TIMEOUT 50
TOTALTIMEOUT 6000
ONTIMEOUT discovery
 
LABEL local
     MENU LABEL (local)
     MENU DEFAULT
     LOCALBOOT 0
 
LABEL discovery
  MENU LABEL Foreman Discovery
  MENU DEFAULT
  KERNEL boot/foreman-discovery-image-latest.el6.iso-vmlinuz
  APPEND rootflags=loop initrd=boot/foreman-discovery-image-latest.el6.iso-img  root=live:/foreman.iso rootfstype=auto ro rd.live.image rd.live.check rd.lvm=0 rootflags=ro crashkernel=128M elevator=deadline max_loop=256 rd.luks=0 rd.md=0 rd.dm=0 nomodeset selinux=0 stateless foreman.url=https://{foreman_url} rootpw={foreman_root_pw}.
  IPAPPEND 2

5. start a host (or vm for testing) which is connected only to inner network with foreman host, start from pxe and choose foreman-discovery.

Actual results:

get an error: "invalid or corrupt kernel image".

Expected results:

host discovery is complete and host is available for provisioning on satellite. 

Additional info:

After replacing both images with images from a different working setup of satellite, discovery worked.

Comment 1 RHEL Program Management 2014-12-10 15:24:11 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Dominic Cleal 2014-12-10 15:53:05 UTC
This option isn't supported in Satellite 6, instead I think there's a "foreman-discovery-image" RPM that's shipped.

*** This bug has been marked as a duplicate of bug 1145964 ***