Bug 1628944 - Script discovery-remaster creates empty/corrupted ISO
Summary: Script discovery-remaster creates empty/corrupted ISO
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Discovery Image
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: 6.4.0
Assignee: Lukas Zapletal
QA Contact: Roman Plevka
URL: https://projects.theforeman.org/issue...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-14 13:05 UTC by Roman Plevka
Modified: 2019-11-05 23:35 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-16 16:48:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 24956 0 Normal Closed Discovery remaster script does create empty ISO 2020-12-04 08:53:43 UTC
Red Hat Product Errata RHBA-2018:2928 0 None None None 2018-10-16 16:49:14 UTC

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


Note You need to log in before you can comment on or make changes to this bug.