Project

General

Profile

Bug #5614

Two techniques with the same ID leads to strange error about git tree ids

Added by François ARMAND over 5 years ago. Updated almost 5 years ago.

Status:
Released
Priority:
3
Category:
Web - Config management
Target version:
Severity:
User visibility:
Effort required:
Priority:

Description

Typical error returned displayed in promise generation or webapp logs:

[2014-10-07 18:19:19] ERROR com.normation.cfclerk.services.impl.GitTechniqueReader - More than exactly one ids were found in the git tree for template modoboa/0.1/rudder_reporting, I can not know which one to choose. IDs: AnyObjectId[0dc1c79ede134ef2c405692d558f4e9aed6d8197], AnyObjectId[0dc1c79ede134ef2c405692d558f4e9aed6d8197]
[2014-10-07 18:19:19] ERROR com.normation.rudder.batch.AsyncDeploymentAgent$DeployerAgent - Error when updating policy, reason Cannot write configuration node <- Error when trying to open template 'foo/0.1/some_file.st'. Check that the file exists and is correctly commited in Git, or that the metadata for the technique are corrects.

The problem here is really that the foo/0.1 is duplicated in several categories, for example:

/var/rudder/configuration-repository/techniques/applications/foo/0.1
And
/var/rudder/configuration-repository/techniques/applications/applications/foo/0.1

So, we should better check for techniques ID duplication and output a more understandable error in that case: "the technique with ID foo/0.1 is in both categories "applications" and "applications/applications", which is forbiden, techniqe IDs have to be unique in all categories. Please change one technique name or version, or keep only one of them".

Associated revisions

Revision 8a32c6c6 (diff)
Added by François ARMAND over 5 years ago

Fixes #5614: Make the error message clearer for duplicate technique id

Revision 2f5296c2
Added by Nicolas CHARLES over 5 years ago

Merge pull request #55 from fanf/bug_5614/make_duplicate_technique_error_message_clearer

Fixes #5614: Make the error message clearer for duplicate technique id

History

#1

Updated by François ARMAND over 5 years ago

  • Description updated (diff)
  • Status changed from 8 to Pending technical review
  • Assignee changed from François ARMAND to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/cf-clerk/pull/55
#2

Updated by François ARMAND over 5 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100

Applied in changeset clerk:commit:8a32c6c660ccf69f84d876b059c281b6e1ad4159.

#3

Updated by Nicolas CHARLES over 5 years ago

Applied in changeset clerk:commit:2f5296c2e5b0d93d7082cf8630d8b6e087535af1.

#4

Updated by Vincent MEMBRÉ over 5 years ago

  • Category changed from System techniques to 14
#5

Updated by Vincent MEMBRÉ over 5 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.6.19, 2.10.7 and 2.11.4, which were these days.

#6

Updated by Benoît PECCATTE almost 5 years ago

  • Category changed from 14 to Web - Config management

Also available in: Atom PDF