Bug #26744
openHost duplication due to fact update lead to deletion of exported resouces
Description
Hi folks,
we recently had two Hosts which got duplicated in foreman.
One of them (clickdb01d) lost the puppetclasses assigned. So the enc provided no puppetclasses anymore, which lead to the deletion of existing exported resources of this host and broke the databasecluster which relied on the exported resources.
The other duplicated host (dslseo01) still had the puppetclasses assigned.
I noticed that both Hosts were the only one with the line "[W] Current user is set, but not expected. Clearing" in the logs. Log attached.
FYI: Our setup consists of two foreman hosts loadbalanced via ipvs, one puppet host and one database. This ran for nearly 1 year without such a problem. We are looking forward to update foreman when puppet6 support is ready and stable (on release of 1.22.1)
Files
No data to display