Reproduced, image for Satellite 6.2 affected as well. I will provide you new image build soon. Thanks for investigation.
Patch provided in https://github.com/theforeman/foreman-discovery-image/pull/68/files
Upstream bug component is Discovery Plugin
Moving to POST since upstream bug http://projects.theforeman.org/issues/14201 has been closed ------------- Anonymous Applied in changeset commit:foreman-discovery-image|2f741bf25041febd91703d51f7c50f327addefbb.
Verified with sat6.2 GA snap8.1 I can extend the discovery image with custom facts using fdi.zips. I used example_zip an built a zip sghai_ext.zip that includes 'discovery_extension' facts with value 'installed' and discovered a host successfully. I can see "discovered_extension=installed" under facts console screen. And in UI under Fact's software section Please see attached screenshot.
Created attachment 1147486 [details] discovered host that uses fdi_zips=sghai_ext.zip and zip includes 'discovery_extenaion' fact with value 'installed'
Created attachment 1147487 [details] discovery_extension facts displayed with value 'installed'
As per comment2, now correct permissions 755 are set. [root@fdi ~]# ll /etc/NetworkManager/dispatcher.d/15-get-zip-server -rwxr-xr-x 1 root root 1200 Apr 13 08:41 /etc/NetworkManager/dispatcher.d/15-get-zip-server
discovery-fetch-extensions successfully downloads the zip extension as below: Apr 15 08:20:00 fdi discovery-fetch-extensions[1194]: Archive: /tmp/tmp.kZ79t4vev4 Apr 15 08:20:00 fdi discovery-fetch-extensions[1194]: creating: /opt/extension/autostart.d/ Apr 15 08:20:00 fdi discovery-fetch-extensions[1194]: inflating: /opt/extension/autostart.d/01_zip.sh Apr 15 08:20:00 fdi discovery-fetch-extensions[1194]: inflating: /opt/extension/bin/ntpdate Apr 15 08:20:00 fdi discovery-fetch-extensions[1194]: inflating: /opt/extension/facts/discovery_extension.rb Apr 15 08:20:00 fdi discovery-fetch-extensions[1194]: inflating: /opt/extension/lib/ruby/discovery_extension.rb Apr 15 08:20:00 fdi discovery-fetch-extensions[1194]: extracting: /opt/extension/lib/ruby/your-rubylibs-go-here Apr 15 08:20:00 fdi discovery-fetch-extensions[1194]: extracting: /opt/extension/lib/your-libs-go-here Apr 15 08:20:00 fdi systemd[1]: Started Download zip extensions to this image.
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-2016:1501