Bug #11937
openYum updating a managed host can invalidate its data in Foreman.
Description
This one is a bit tricky but I will do my best to explain it. I have a host built by foreman, so it has full management enabled on it. Built as RHEL 7.0, then I yum update it to RHEL 7.1. I also have the foreman_node.rb running on the puppetmaster pushing facts to foreman. So, the next time puppet runs on the recently yum updated host, it will update the host record to the new OS that is is running, from 7.0 to 7.1. This will immediately invalidate the host data in Foreman. Now, if I go to that host record and try to change a puppet class or parameter, I get an error like this: "Partition Table Kickstart default does not belong to RedHat 7.1 operating system". In order to fix this, I have to go to the newly created OS in Foreman, and associate the same partition table that I had for 7.0. I know it is a simple change that I only have to do once, but it seems wrong that a simple yum update on a host will immediately invalidate its host data, making any change to puppet classes or parameters impossible, until this newly created OS is fixed. When Foreman automatically creates the new 7.1 OS, can't it simply copy or inherit the same config as 7.0? As far as lifecycle management goes, I already built the OS and have now transitioned to the long term management of its config, so I shouldn't have to worry about its provisioning part anymore just because I yum updated it.
Updated by Dominic Cleal almost 9 years ago
- Related to Bug #6006: OS facts should not overwrite the OS selected to provision with added