Bug 1324539

Summary: [RFE] Redesign discovery facts to survive provisioning
Product: Red Hat Satellite Reporter: Lukas Zapletal <lzap>
Component: Discovery PluginAssignee: orabin
Status: CLOSED UPSTREAM QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: UnspecifiedCC: abraverm
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/14035
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-24 07:19:53 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:
Bug Depends On:    
Bug Blocks: 1338516    

Description Lukas Zapletal 2016-04-06 14:54:31 UTC
Discovery facts are short-lived - they are discarded during provisioning
and they were primarily only meant for discovery rules.

We know it is quite limiting and we were not thinking about pulling 
those facts to production stage during the initial design. It turned out 
as a useful feature, therefore we are currently changing the way we
store discovered facts and we want to keep them separate from "normal"
facts.

Workaround for Satellite 6.1-6.2 - all facts that start with discovery_ 
survives the provisioning *until* the initial facter run (which 
overwrites everything with it's own set of facts). So you can use these
only during provisioning (e.g. in kickstart template or finish 
template). A workaround for this workaround would be to store these 
facts on the provisioned system as custom facts, which are then reported
by facter in production mode every 30 minutes. Sounds complicated, but 
that's how discovery custom facts work today.

Comment 1 Bryan Kearney 2016-04-06 16:02:19 UTC
Upstream bug assigned to orabin

Comment 2 Bryan Kearney 2016-07-08 20:49:13 UTC
Per 6.3 planning, moving out non acked bugs to the backlog

Comment 4 Lukas Zapletal 2017-05-24 07:19:53 UTC
We have no updates on discovered host redesign, workaround is possible via special names in 6.2-6.3.