Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1628944

Summary: Script discovery-remaster creates empty/corrupted ISO
Product: Red Hat Satellite Reporter: Roman Plevka <rplevka>
Component: Discovery ImageAssignee: Lukas Zapletal <lzap>
Status: CLOSED ERRATA QA Contact: Roman Plevka <rplevka>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.4CC: adujicek, ehelms, lzap, pcreech, rabajaj
Target Milestone: 6.4.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: https://projects.theforeman.org/issues/24956
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-16 16:48:22 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 Roman Plevka 2018-09-14 13:05:29 UTC
Description of problem:
the fdi 3.5.2 discovery-remaster script doesn't work properly and outputs an invalid iso image.

# discovery-remaster /usr/share/foreman-discovery-image/foreman-discovery-image-3.5.2-1.iso "proxy.type=foreman proxy.url=https://foo.bar:443 fdi.pxauto=1"
Extracting EFI/BOOT/BOOTX64.efi (/EFI/BOOT/BOOTX64.EFI;1)
Extracting EFI/BOOT/fonts/unicode.pf2 (/EFI/BOOT/FONTS/UNICODE.PF2;1)
Extracting EFI/BOOT/grub.cfg (/EFI/BOOT/GRUB.CFG;1)
Extracting EFI/BOOT/grubx64.efi (/EFI/BOOT/GRUBX64.EFI;1)
Extracting isolinux/boot.cat (/ISOLINUX/BOOT.CAT;1)
Extracting isolinux/efiboot.img (/ISOLINUX/EFIBOOT.IMG;1)
Extracting isolinux/initrd0.img (/ISOLINUX/INITRD0.IMG;1)
Extracting isolinux/isolinux.bin (/ISOLINUX/ISOLINUX.BIN;1)
Extracting isolinux/isolinux.cfg (/ISOLINUX/ISOLINUX.CFG;1)
Extracting isolinux/macboot.img (/ISOLINUX/MACBOOT.IMG;1)
Extracting isolinux/vesamenu.c32 (/ISOLINUX/VESAMENU.C32;1)
Extracting isolinux/vmlinuz0 (/ISOLINUX/VMLINUZ0.;1)
Extracting LiveOS/osmin.img (/LIVEOS/OSMIN.IMG;1)
Extracting LiveOS/squashfs.img (/LIVEOS/SQUASHFS.IMG;1)
Warning: creating filesystem that does not conform to ISO-9660.
Size of boot image is 4 sectors -> No emulation
Size of boot image is 0 sectors -> No emulation
Total translation table size: 6249
Total rockridge attributes bytes: 2866
Total directory bytes: 10240
Path table size(bytes): 78
Max brk space used 1b000
201 extents written (0 MB)
isohybrid: /usr/share/foreman-discovery-image/foreman-discovery-image-3.5.2-1-180914_083321.iso: boot loader does not have an isolinux.bin hybrid signature. Note that isolinux-debug.bin does not support hybrid booting
Inserting md5sum into iso image...
md5 = 7b214aebf604d6e95b8ded859b251a2a
Inserting fragment md5sums into iso image...
fragmd5 = 8c91ed7844dbcb24ec1aa952d2f45c724
frags = 20
Setting supported flag to 0
Created: /usr/share/foreman-discovery-image/foreman-discovery-image-3.5.2-1-180914_083321.iso (BIOS/EFI compatible)
[root@qe-sat64-rhel7 foreman-discovery-image]# ll
total 245260
-rw-r--r--. 1 root root    411648 Sep 14 08:33 foreman-discovery-image-3.5.2-1-180914_083321.iso
-rw-r--r--. 1 root root 250605568 Sep  6 19:42 foreman-discovery-image-3.5.2-1.iso
-rw-r--r--. 1 root root    119511 Sep  6 19:42 foreman-discovery-image.ks


this is a regression since 6.4.0-beta

Version-Release number of selected component (if applicable):
sat6.4.0-21
foreman-discovery-image-3.5.2-1.el7sat.noarch

Steps to Reproduce:
1. try to remaster the fdi iso in any way
discovery-remaster /usr/share/foreman-discovery-image/foreman-discovery-image-3.5.2-1.iso "proxy.type=foreman proxy.url=https://foo.bar:443"

Actual results:
the iso output is ~400kB in size (the original iso is ~200MB large). This iso obviously doesn't boot.

Expected results:
script returns a copy of the FDI iso with the passed parameters baked in

Comment 2 Satellite Program 2018-09-17 16:03:10 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/24956 has been resolved.

Comment 4 Patrick Creech 2018-09-24 14:48:41 UTC
snap 23, not 63

Comment 7 errata-xmlrpc 2018-10-16 16:48:22 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/RHBA-2018:2928