Project

General

Profile

Bug #5304

Cannot archive everything because /var/rudder/configuration-repository/groups does not exist

Added by Nicolas CHARLES almost 6 years ago. Updated over 5 years ago.

Status:
Rejected
Priority:
N/A
Category:
Web - Maintenance
Target version:
Pull Request:
Severity:
User visibility:
Effort required:
Priority:

Description

We tried to archive everything, but it failed because folder group was not there

Indeed, it was removed from the FS (git status showed it was not there). No idea why. recreating this folder solved the issue


Related issues

Is duplicate of Rudder - Bug #5509: No groups directory in /var/rudder/configuration-repositoryReleased2014-09-10Nicolas CHARLESActions
#1

Updated by Nicolas CHARLES almost 6 years ago

It happened twice today, and we didn't remove it for sure !
We did commit some techniques during the day

#2

Updated by Nicolas PERRON almost 6 years ago

  • Target version changed from 2.10.4 to 2.6.18
#3

Updated by Nicolas PERRON almost 6 years ago

  • Target version changed from 2.6.18 to 2.10.5
#4

Updated by Vincent MEMBRÉ almost 6 years ago

  • Target version changed from 2.10.5 to 2.10.6
#5

Updated by Vincent MEMBRÉ almost 6 years ago

  • Assignee set to Jonathan CLARKE
#6

Updated by François ARMAND over 5 years ago

  • Assignee changed from Jonathan CLARKE to François ARMAND
#7

Updated by Matthieu CERDA over 5 years ago

  • Target version changed from 2.10.6 to 2.10.7
#8

Updated by Nicolas CHARLES over 5 years ago

Ok, I was able to reproduce this one on orchestrateur-2 by simply removing a group
Webapp logs don't show anything

Git log say

commit cf9d2d392669e372e477533bf79c308001c79806
Author: jon.doe <email not set>
Date:   Sun Oct 5 13:34:26 2014 +0200

    Delete archive of node group with ID '55956cbc-8514-401b-bc4d-1f2f7a74f8d1'

commit fe20065a77fb856b8ee92578f4e603910aa2b930
Author: jon.doe <email not set>
Date:   Sun Oct 5 13:34:25 2014 +0200

    Archive rule with ID '75f6b55f-fe11-418b-8199-64a00e3bf911'

and then the commit says:

 git show cf9d2d392669e372e477533bf79c308001c79806
commit cf9d2d392669e372e477533bf79c308001c79806
Author: jon.doe <email not set>
Date:   Sun Oct 5 13:34:26 2014 +0200

    Delete archive of node group with ID '55956cbc-8514-401b-bc4d-1f2f7a74f8d1'

diff --git a/groups/55956cbc-8514-401b-bc4d-1f2f7a74f8d1.xml b/groups/55956cbc-8514-401b-bc4d-1f2f7a74f8d1.xml
deleted file mode 100644
index b81106c..0000000
--- a/groups/55956cbc-8514-401b-bc4d-1f2f7a74f8d1.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<nodeGroup fileFormat="5">
-  <id>55956cbc-8514-401b-bc4d-1f2f7a74f8d1</id>
-  <displayName>All fast debian</displayName>
-  <description></description>
-  <query>
-    {&quot;select&quot;:&quot;node&quot;,&quot;composition&quot;:&quot;And&quot;,&quot;where&quot;:[{&quot;objectType&quot;:&quot;node&quot;,&quot;attribute&quot;:&quot;OS&quot;,&quot;comparator&quot;:&quot;eq&quot;,&quot;value&quot;:&q
-  </query>
-  <isDynamic>true</isDynamic>
-  <nodeIds/>
-  <isEnabled>true</isEnabled>
-  <isSystem>false</isSystem>
-</nodeGroup>
\ No newline at end of file

I guess it's a bit eager when removing the group

#9

Updated by Jonathan CLARKE over 5 years ago

Maybe the directory ends up empty and therefore is removed by git? (git doesn't store empty directories)

#10

Updated by François ARMAND over 5 years ago

  • Status changed from New to Rejected

The reason of the missing "groups" directory is cleary #5509 which was removing it during the save process.

Without it, the "groups" directory is correctly created, even if missing before the save.

So I marked that one as "duplicate" of #5509

Also available in: Atom PDF