Project

General

Profile

Feature #24923

Add check for puppet class duplicates

Added by Ondřej Pražák 3 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

When concurrently publishing content views with the same name, duplicate records for Puppet class may be created in Foreman db because Rails validation gets bypassed and there is no uniqueness constraint on db. If there are existing deployments with duplicates, it is not feasible to delete/rename them automatically, because there may be custom overrides configured for the classes. We should ask users to remove the duplicates before proceeding.


Related issues

Related to Foreman - Bug #24633: Duplicate puppet classes are created when publishing content views in parallelClosed

Associated revisions

Revision af4beb6a (diff)
Added by Marek Hulán 3 months ago

Fixes #24923 - Add check for duplicate puppet classes

History

#1 Updated by Ondřej Pražák 3 months ago

  • Related to Bug #24633: Duplicate puppet classes are created when publishing content views in parallel added

#2 Updated by The Foreman Bot 3 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_maintain/pull/212 added

#3 Updated by The Foreman Bot 3 months ago

  • Pull request https://github.com/theforeman/foreman_maintain/pull/215 added

#4 Updated by Ivan Necas 3 months ago

  • Status changed from Ready For Testing to Closed

#5 Updated by Ivan Necas about 1 month ago

  • Fixed in Releases foreman_maintain-0.3.0 added

Also available in: Atom PDF