ActiveRecord::RecordInvalid: Validation failed: Description has already been taken, Title has already been taken
|Assigned To:||Tomer Brisker|
|Target version:||Team Daniel - iteration 3|
|Found in release:||1.11.0||Pull request:||https://github.com/theforeman/foreman/pull/3836|
|Velocity based estimate||-|
In 1.11.0, and also in 1.10.x, we have for almost every VM a nice stacktrace in the logs, with the following contents:
This seems to hunder proper fact import, especially for hosts that are not managed.
It seems to be related to a duplicate entry for operatingsystem, but I'm not sure how to fix this.
Some OSes use y.z minor version, for example CentOS uses versions such
as 7.2.1511. Currently, the puppet fact parser will only take the 'y'
part of the version, 2 in this case, which can lead to conflicts if the
OS has been defined manually with the 2.1511 minor version (as the
description will still contain the entire version).