Bug 1317257
Summary: | Unable to extend the Satellite Discovery Image with custom facts | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | jalviso <jalviso> |
Component: | Discovery Image | Assignee: | Lukas Zapletal <lzap> |
Status: | CLOSED ERRATA | QA Contact: | Sachin Ghai <sghai> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.1.7 | CC: | bbuckingham, sghai, sthirugn |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://projects.theforeman.org/issues/14201 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-07-27 11:43:21 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: | |||
Attachments: |
Comment 3
Lukas Zapletal
2016-03-15 09:43:33 UTC
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 |