Bug #5304
closed
Cannot archive everything because /var/rudder/configuration-repository/groups does not exist
Added by Nicolas CHARLES over 10 years ago.
Updated about 10 years ago.
Category:
Web - Maintenance
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
It happened twice today, and we didn't remove it for sure !
We did commit some techniques during the day
- Target version changed from 2.10.4 to 2.6.18
- Target version changed from 2.6.18 to 2.10.5
- Target version changed from 2.10.5 to 2.10.6
- Assignee set to Jonathan CLARKE
- Assignee changed from Jonathan CLARKE to François ARMAND
- Target version changed from 2.10.6 to 2.10.7
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>
- {"select":"node","composition":"And","where":[{"objectType":"node","attribute":"OS","comparator":"eq","value":&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
Maybe the directory ends up empty and therefore is removed by git? (git doesn't store empty directories)
- 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