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 1290807 - [RFE] Do not delete facts during discovered provisioning
Summary: [RFE] Do not delete facts during discovered provisioning
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Discovery Plugin
Version: Unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact: Katello QA List
URL: http://projects.theforeman.org/issues...
Whiteboard: hotfix, hotfix_delivered
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-11 14:19 UTC by John Fulton
Modified: 2020-12-11 12:00 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-08 22:09:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 12244 0 None None None Never
Red Hat Bugzilla 1272238 0 high CLOSED Setting a host build state to true facts are lost 2021-02-22 00:41:40 UTC

Description John Fulton 2015-12-11 14:19:19 UTC
In Red Hat BZ 1272238 Foreman was modified so that Puppet facts don't have to be lost when a host is set to the build state. This is a request for the same functionality to be added to Satellite 6.x. 

As per Lukas Zapletal's comment [1] in BZ 1272238 an upstream issue [2] exists to track this, though I understand that the codebase is now a little different and the correct method to put the code in has changed. 

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1272238#c8
[2] http://projects.theforeman.org/issues/12244

Comment 2 Lukas Zapletal 2015-12-14 09:03:19 UTC
For the record, in the latest Discovery 4.1 (part of Foreman 1.10 and Satellite 6.1.5) we do not delete facts with "discovery_" prefix. This can be used as a workaround (report all facts which must be preserved as discovery_xyz).

Valid RFE, we are tracking this already as http://projects.theforeman.org/issues/12244 upstream.

Comment 4 Lukas Zapletal 2016-05-13 07:24:20 UTC
This is a future RFE, we are discussing redesigning discovered hosts which should provide this feature.

Comment 9 Lukas Zapletal 2017-04-18 11:15:54 UTC
Hello,

this is already implemented in Satellite 6.2. There is a new setting called "Clean all facts" which can be set to false to prevent the unwanted behavior. If you want to delete just some facts, set it to true and name all facts to be kept "discovery_*" and they will survive provisioning (but will be deleted on puppet checkin).

This behavior will be the same in Satellite 6.3 (where Discovery 9.0 is planned).

Comment 10 Lukas Zapletal 2017-04-18 14:49:36 UTC
Correction, this was implemented upstream and it will be available in Satellite 6.3.

Comment 11 Lukas Zapletal 2017-11-21 08:20:42 UTC
Hello,

since there is still no 6.3 and several customers hit this, I am requesting this into 6.2.14.

Comment 13 Mike McCune 2018-02-06 16:10:35 UTC
Will consider for 6.2.15

Comment 14 Mike McCune 2018-03-08 22:09:35 UTC
This is resolved in Satellite 6.3. If you have upgraded and are still
seeing this issue, please feel free to re-open and provide additional
information about the issue.


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