Bug #15524
Registering host with subscription-manager prevents loading puppet facts in subequent run
Description
When importing facts, Foreman checks the last_compile time and prevents importing facts
if that even appeared within previous minute https://github.com/theforeman/foreman/blob/1.11.3/app/models/host/base.rb#L142
This means importing the subscription-manager facts will break loading puppet facts, if done too quickly
(which is usually the case when provisioning)
Related issues
History
#1
Updated by Ivan Necas over 4 years ago
- Subject changed from Provisioning with foreman_location and foreman_organization facts does not work anymore to Registering host with subscription-manager prevents loading puppet facts in subequent run
- Description updated (diff)
#2
Updated by Ivan Necas over 4 years ago
- Related to Refactor #15525: Fact-type specific host's last_compile time added
#3
Updated by Ivan Necas over 4 years ago
IMO the long-term solution should be addressed in Foreman http://projects.theforeman.org/issues/15525. However, this is affecting the users today, I think we should go for a workaround and not setting the last_compile time when importing subscription-manager facts.
#4
Updated by Ivan Necas over 4 years ago
- Status changed from New to Assigned
#5
Updated by The Foreman Bot over 4 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/6153 added
#6
Updated by Justin Sherrill over 4 years ago
- Status changed from Ready For Testing to Rejected
- Legacy Backlogs Release (now unused) set to 166
This was fixed in foreman: https://github.com/theforeman/foreman/pull/3615