Bug #14545

ActiveRecord::RecordInvalid: Validation failed: Description has already been taken, Title has already been taken

Added by Christophe Trefois 10 months ago. Updated 4 months ago.

Status:Closed
Priority:Normal
Assigned To:Tomer Brisker
Category:Facts
Target version:Team Daniel - iteration 3
Difficulty: Bugzilla link:
Found in release:1.11.0 Pull request:https://github.com/theforeman/foreman/pull/3836
Story points-
Velocity based estimate-
Release1.13.1Release relationshipAuto

Description

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:

https://paste.fedoraproject.org/351603/46010654/

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.

Thank you,

raw.txt Magnifier (20.4 KB) Christophe Trefois, 04/08/2016 05:23 AM

Associated revisions

Revision af6d54a3
Added by Tomer Brisker 4 months ago

Fixes #14545, #13104 - Correctly parse y.z minor OS versions

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

History

#1 Updated by Tomer Brisker 4 months ago

  • Status changed from New to Assigned
  • Assigned To set to Tomer Brisker

#2 Updated by The Foreman Bot 4 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3836 added

#3 Updated by Anonymous 4 months ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#4 Updated by Dominic Cleal 4 months ago

  • Release set to 1.13.1

#5 Updated by Daniel Lobato Garcia 4 months ago

  • Target version set to Team Daniel - iteration 3

Also available in: Atom PDF