Project

General

Profile

Actions

Bug #23683

open

Host Validation fails after importing facts if operatingsystem changed

Added by Matthias Dellweg almost 6 years ago. Updated almost 6 years ago.

Status:
Ready For Testing
Priority:
Normal
Assignee:
-
Category:
Facts
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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...

Actions #1

Updated by The Foreman Bot almost 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/5610 added
Actions #2

Updated by Marek Hulán almost 6 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.

Actions #3

Updated by Matthias Dellweg almost 6 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).

Actions #4

Updated by Marek Hulán almost 6 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

Actions

Also available in: Atom PDF