Project

General

Profile

Bug #4149

Exporting groups with same name but in different categories to another server Rudder is not working

Added by Nicolas PERRON over 6 years ago. Updated over 6 years ago.

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

Description

In the Node Management/Groups screen, if several Sub-categories have the same name, it will lead to an error when the Rudder Server configuration will be exported to another one.

For example:

Debian
|--Servers
|  -- Group A containing debian01.local.lan
 --Clients
   -- Group B containing debian11.local.lan
SLES
|--Servers
|  -- Group C containing sles01.local.lan
 --Clients
   -- Group D containing sles11.local.lan

After an export, on the other Rudder Server, the Groups C and D will not be present, any Rule depending on these Groups will display an Error and a message error will be in the /var/log/webapp/xxxxx.log:

[...]Ignoring Active Categor with ID 'yyyyyyyyyyyyy' because its name is 'Servers'  already referenced by category with ID 'xxxxxxxxxx'[...]

A workaround is to create another SubCategories, move the groups to them and then reexport.

#1

Updated by Nicolas PERRON over 6 years ago

In the first Rudder server the logs /var/log/rudder/weabapp/xxxx.log contains:

[...]
Auto-archive git failure when moving directory (not found in added file): 'groups/xxxxxxxx/xxxxxxxx'. You can safelly ignore that warning if the files was already existing in Git and was not modified by that archive.
[...]

#2

Updated by Nicolas PERRON over 6 years ago

  • Description updated (diff)
#3

Updated by Jonathan CLARKE over 6 years ago

  • Assignee set to François ARMAND

Francois, can you please investigate and work on this bug? It seems pretty impacting.

#4

Updated by François ARMAND over 6 years ago

  • Category set to Web - Config management
  • Status changed from New to Pending technical review
  • Assignee changed from François ARMAND to Nicolas CHARLES
  • Priority changed from N/A to 2
  • Target version set to 2.6.10
  • Pull Request set to https://github.com/Normation/rudder/pull/414
#5

Updated by François ARMAND over 6 years ago

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

Updated by Vincent MEMBRÉ over 6 years ago

  • Subject changed from Node Management/Groups screen: The use of sub-categories with the same names will lead to have error when exporting the configuration to another Rudder server to Exporting 2 groups with same name but in different categories to another server Rudder is not working
#8

Updated by Vincent MEMBRÉ over 6 years ago

  • Subject changed from Exporting 2 groups with same name but in different categories to another server Rudder is not working to Exporting groups with same name but in different categories to another server Rudder is not working
#9

Updated by Vincent MEMBRÉ over 6 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.6.10 which was released today.
Check out:

Also available in: Atom PDF