Project

General

Profile

Actions

Bug #6006

closed

OS facts should not overwrite the OS selected to provision with

Added by Dominic Cleal over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Importers
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Migrated from https://github.com/theforeman/foreman/issues/1489

We setup a specific Operatingsystem, 'Ubuntu 12.04 + 3.2.0-59 kernel', and selected this OS in the hostgroup for machines that need this specific kernel.

We then built the hosts successfully.

Post-build, the Operatingsystem was set to 'Ubuntu 12.04.4 LTS'. This then caused a re-build of the system to fail, as the wrong kernel was installed.

I suspect the error is around line 47 in app/services/facts_parser.rb, as for our host, the os.description field is blank, because it is filled from the hostgroup. I am unclear on what a good fix for this is, but I will try and dig into more and produce a pull request, unless someone has an easy idea on it.

Another thought of mine is that facts collection should not overwrite fields that are critical to the provisioning process.


Related issues 4 (1 open3 closed)

Related to Foreman - Bug #11937: Yum updating a managed host can invalidate its data in Foreman.New09/23/2015Actions
Related to Foreman - Bug #12076: Unable to create Mulitple OS with same name, major, minorRejected10/06/2015Actions
Related to Foreman - Feature #15078: Disable updates to operating system from Puppet factsDuplicate05/18/2016Actions
Has duplicate Foreman - Feature #12235: OS minor versions should all use the same templates, installation media, and partition tablesDuplicate10/21/2015Actions
Actions

Also available in: Atom PDF