Bug #14545

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

Added by Christophe Trefois over 1 year 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

stacktrace.txt Magnifier (19.6 KB) Sven Fischer, 06/22/2017 05:49 AM

Associated revisions

Revision af6d54a3
Added by Tomer Brisker about 1 year 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).

Revision 30d2545a
Added by Tomer Brisker 12 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).

(cherry picked from commit af6d54a3a184846f77f5fd7ca07bcdc7de70a264)

History

#1 Updated by Tomer Brisker about 1 year ago

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

#2 Updated by The Foreman Bot about 1 year ago

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

#3 Updated by Anonymous about 1 year ago

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

#4 Updated by Dominic Cleal about 1 year ago

  • Release set to 1.13.1

#5 Updated by Daniel Lobato Garcia about 1 year ago

  • Target version set to Team Daniel - iteration 3

#6 Updated by Sven Fischer 4 months ago

Hi,

I have still the problem with the fact update, with the same Stacktraces even with Version 1.15.1.
Can anyone help this out?

Also available in: Atom PDF