Project

General

Profile

Bug #7901

Updated by Vincent MEMBRÉ over 8 years ago

For some reasons, rudder-agent can be removed then reinstalled (update not working? whatever, it can happen) 

 When removing the package a backup of uuid.hive is made, and then on reinstall, this uuid is restored... 

 So it connects to the server get it's policy back (node is accepted and was applying policies without problems) and then nightmare can happen ... 

 * policy_server.dat was not defined after reinstall ( missed that in process ) 
 * so it tries to download files from shared folder (defined via ncf techniques) 
 * that method uses sys.policy_hub, which is only defined by policy_server.dat 
 * method fails to apply due to that variable missing 

 In that case it breaks all those files because all templates were changed to mustache, so it tried to edit old config file that was not a mustache template but a 'cfengine' one, so broke the file, restarted services, broke services ... 
 
 Adding back policy_server.dat files fixes everything 

 I think backing up policy_server.dat file (and restoring it) would be a good idea to prevent this issue, what do you think of it ? 

 Thanks to coredumb for experiencing this issue! 

Back