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 1554766 - Missing dependencies for discovery-remaster
Summary: Missing dependencies for discovery-remaster
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Packaging
Version: 6.3.0
Hardware: All
OS: Linux
unspecified
low
Target Milestone: 6.4.0
Assignee: satellite6-bugs
QA Contact: Sachin Ghai
URL:
Whiteboard:
Depends On:
Blocks: 1596043
TreeView+ depends on / blocked
 
Reported: 2018-03-13 10:23 UTC by Jakub Bittner
Modified: 2019-11-05 23:13 UTC (History)
6 users (show)

Fixed In Version: foreman-discovery-image-3.5.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-16 19:17:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jakub Bittner 2018-03-13 10:23:12 UTC
Description of problem:

On freshly installed Satellite 6.3 Capsule server command discovery-remaster throws error due to missing commands.

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

foreman-discovery-image-3.4.4-1.el7sat.noarch

How reproducible:

Easily.

Steps to Reproduce:
1. yum install foreman-discovery-image rubygem-smart_proxy_discovery -y
2. katello-service restart
3. discovery-remaster /usr/share/foreman-discovery-image/foreman-discovery-image-3.4.4-1.iso proxy.url=https://capsule.url.cz:9090 proxy.type=proxy

Actual results:
discovery-remaster /usr/share/foreman-discovery-image/foreman-discovery-image-3.4.4-1.iso proxy.url=https://capsule.url.cz:9090 proxy.type=proxy
which: no isohybrid in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
which: no implantisomd5 in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
Command(s) missing, install required tools
mount: /dev/loop0 is write-protected, mounting read-only
Warning: creating filesystem that does not conform to ISO-9660.
I: -input-charset not specified, using utf-8 (detected in locale settings)
Size of boot image is 4 sectors -> No emulation
Size of boot image is 10124 sectors -> No emulation
  4.37% done, estimate finish Tue Mar 13 10:10:56 2018
  8.73% done, estimate finish Tue Mar 13 10:10:56 2018
 13.10% done, estimate finish Tue Mar 13 10:10:56 2018
 17.45% done, estimate finish Tue Mar 13 10:10:56 2018
 21.82% done, estimate finish Tue Mar 13 10:10:56 2018
 26.19% done, estimate finish Tue Mar 13 10:10:56 2018
 30.55% done, estimate finish Tue Mar 13 10:10:56 2018
 34.91% done, estimate finish Tue Mar 13 10:10:56 2018
 39.28% done, estimate finish Tue Mar 13 10:10:56 2018
 43.63% done, estimate finish Tue Mar 13 10:10:56 2018
 48.00% done, estimate finish Tue Mar 13 10:10:58 2018
 52.36% done, estimate finish Tue Mar 13 10:10:57 2018
 56.73% done, estimate finish Tue Mar 13 10:10:57 2018
 61.09% done, estimate finish Tue Mar 13 10:10:57 2018
 65.46% done, estimate finish Tue Mar 13 10:10:57 2018
 69.81% done, estimate finish Tue Mar 13 10:10:57 2018
 74.18% done, estimate finish Tue Mar 13 10:10:57 2018
 78.54% done, estimate finish Tue Mar 13 10:10:57 2018
 82.91% done, estimate finish Tue Mar 13 10:10:57 2018
 87.26% done, estimate finish Tue Mar 13 10:10:57 2018
 91.63% done, estimate finish Tue Mar 13 10:10:57 2018
 95.99% done, estimate finish Tue Mar 13 10:10:57 2018
Total translation table size: 6249
Total rockridge attributes bytes: 2866
Total directory bytes: 10240
Path table size(bytes): 78
Max brk space used 22000
114603 extents written (223 MB)
/usr/bin/discovery-remaster: line 75: isohybrid: command not found
/usr/bin/discovery-remaster: line 76: implantisomd5: command not found
Created: proxy.type=proxy (BIOS/EFI compatible)


Expected results:
No errors printed out.


Additional info:
Missing packages are: syslinux, isomd5sum

Comment 7 Lukas Zapletal 2018-08-06 14:03:24 UTC
WORKAROUND:

yum -y install isohybrid implantisomd5

Comment 9 Sachin Ghai 2018-09-13 06:06:30 UTC
Verified with sat6.4.0 snap21

I ran discovery remaster on both satellite and external capsule for remastering the FDI image and didn't see the dependency issue:

~]# discovery-remaster /var/lib/libvirt/images/foreman-discovery-image-3.5.2-1.iso "fdi.pxgw=10.8.XX.XX fdi.pxdns=10.XX.XX.XX proxy.url=https://10.8.XX.XX:9090 proxy.type=proxy fdi.pxfactname1=myfact fdi.pxfactvalue1=somevalue  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 23000
201 extents written (0 MB)
isohybrid: /var/lib/libvirt/images/foreman-discovery-image-3.5.2-1-180913_020335.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 = 0b494007c3914b11aad47fcc23547227
Inserting fragment md5sums into iso image...
fragmd5 = f8c1285a2b6cf9313ce6ed48373895b44
frags = 20
Setting supported flag to 0
Created: /var/lib/libvirt/images/foreman-discovery-image-3.5.2-1-180913_020335.iso (BIOS/EFI compatible)

Comment 10 Bryan Kearney 2018-10-16 19:17:18 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/RHSA-2018:2927


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