Bug #23683
openHost Validation fails after importing facts if operatingsystem changed
Description
When installing a host with debian 9.1 that gets updated automatically to 9.4, the fact importer creates a new operatingsystem for the host that fails validation because of missing ptable and installation medium.
This prevents e.g. taking snapshots, reinstalling, registering with subscription-manager...
Updated by The Foreman Bot almost 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/5610 added
Updated by Marek Hulán almost 7 years ago
- Category set to Facts
There is a setting to disable OS updating by incoming facts, see Administer -> Settings -> Provisioning -> Ignore facts for operating system. Some people prefer to have OS updated some don't. I saw the PR but I think the solution could cause problems in case names are matching but you want to have different linking. Long term we wanted to separate "provisioned" and "reported" OS information using facets, but I don't think we got any close to that point.
Updated by Matthias Dellweg almost 7 years ago
As much as i like the 'provisioned' and 'reported' OS separation (i wondered, why this was not done in the first place), i do not see the problems jou mentioned. This just adds the ptable and medium (which both proved to be able to provision that OS) to the List of available ptables / installation media. It does not change any default chosen template or such.
On the other hand if this feature is meant to be turned of and clearly broken when turned on, i would vote for removing it altogether.
When rebuilding a host e.g. you might really want to use the OS you selected in the first place, not some that gets assigned automatically (which is also a very good argument for the separation).
Updated by Marek Hulán almost 7 years ago
Well, this is nice feature for unmanaged hosts (hosts not provisioned from Foreman). Maybe the global setting is something that should be overridden by parameters? That would allow override it per hostgroup, os, subnet, domain, host