Project

General

Profile

Bug #10051

Updated by Nicolas CHARLES almost 8 years ago

I upgraded Rudder-agent on Centos6 from 3.1 to 4.1 beta, and: 
 # upgrade is fairly slow (it seems to block at 
 <pre> 
   Mise à jour     : 1398866025:rudder-agent-4.1.0.beta2.git201701210334-1.EL.6.x86_64                                                                                                                                    1/2  
 </pre> 
 # promises are replaced by initial promises 
 <pre> 
 # ls /var/rudder/cfengine-community/inputs/ 
 common    distributePolicy    failsafe.cf    inventory    promises.cf    rudder-directives.cf    rudder-server-roles.conf    rudder-system-directives.cf    run_interval    run-interval    server-roles 
 </pre> 


 PS output during upgrade is 
 <pre> 
 root       32620    4.7 34.6 1412796 84528 pts/0     S+     11:42     0:14            |                 \_ /usr/bin/python /usr/bin/yum update rudder-agent 
 root         847    0.0    0.5 106056    1344 pts/0      S+     11:45     0:00            |                     \_ /bin/sh /var/tmp/rpm-tmp.Ru04ko 2 
 root         848    0.0    0.6 106092    1504 pts/0      S+     11:45     0:00            |                         \_ /bin/sh /opt/rudder/share/package-scripts/rudder-agent-postinst 0 
 root        1082    0.0    0.5 106056    1424 pts/0      S+     11:46     0:00            |                             \_ /bin/sh /opt/rudder/share/commands/agent-start 
 root        1102    0.0    0.6 106220    1624 pts/0      S+     11:46     0:00            |                                 \_ /bin/sh /etc/init.d/rudder-agent start 
 root        1367    0.0    0.2 100904     604 pts/0      S+     11:47     0:00            |                                     \_ sleep 1 
 </pre> 

 Full upgrade messages are 
 <pre> 
 Lancement de la transaction 
   Mise à jour     : 1398866025:rudder-agent-4.1.0.beta2.git201701210334-1.EL.6.x86_64                                                                                                                                    1/2  
 INFO: A back up copy of /etc/init.d/rudder-agent has been created in /var/backups/rudder 
 INFO: A back up copy of /etc/default/rudder-agent has been created in /var/backups/rudder 
 INFO: A back up copy of /etc/cron.d/rudder-agent has been created in /var/backups/rudder 
 ok: Rudder agent is now disabled. 
 rudder-agent[920]: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir 
 rudder-agent[921]: [INFO] Halting CFEngine Community cf-serverd... 
 rudder-agent[926]: [OK] CFEngine Community cf-serverd stopped after 2 seconds 
 rudder-agent[927]: [INFO] Halting CFEngine Community cf-execd... 
 rudder-agent[1045]: [OK] CFEngine Community cf-execd stopped after 52 seconds 
 ok: stop service rudder-agent succeeded 
 ok: Rudder agent has been enabled but not started, wait for next cron run. 
 rudder-agent[1138]: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir 
 rudder-agent[1139]: [INFO] Launching CFEngine Community cf-serverd... 
    error: Fatal CFEngine error: UNTRUSTED: Private key directory /var/rudder/cfengine-community/ppkeys (mode 755) was not private! 
 rudder-agent[1259]: [ALERT] no PID file for cf-serverd after 30 seconds. Trying again... 
    error: Fatal CFEngine error: UNTRUSTED: Private key directory /var/rudder/cfengine-community/ppkeys (mode 755) was not private! 
 rudder-agent[1406]: [ALERT] no PID file for cf-serverd after 60 seconds. Trying again... 
    error: Fatal CFEngine error: UNTRUSTED: Private key directory /var/rudder/cfengine-community/ppkeys (mode 755) was not private! 
 rudder-agent[1450]: [ALERT] no PID file for cf-serverd after 70 seconds 
 rudder-agent[1451]: [INFO] Launching CFEngine Community cf-execd... 
    error: Fatal CFEngine error: UNTRUSTED: Private key directory /var/rudder/cfengine-community/ppkeys (mode 755) was not private! 
 rudder-agent[1575]: [ALERT] no PID file for cf-execd after 30 seconds. Trying again... 
    error: Fatal CFEngine error: UNTRUSTED: Private key directory /var/rudder/cfengine-community/ppkeys (mode 755) was not private! 
 rudder-agent[1705]: [ALERT] no PID file for cf-execd after 60 seconds. Trying again... 
    error: Fatal CFEngine error: UNTRUSTED: Private key directory /var/rudder/cfengine-community/ppkeys (mode 755) was not private! 
 rudder-agent[1748]: [ALERT] no PID file for cf-execd after 70 seconds 
 error: start service rudder-agent failed 
 INFO: Scheduling an inventory during next run... 
   Nettoyage       : 1398866025:rudder-agent-3.1.18.rc1.git201701190751-1.EL.6.x86_64                                                                                                                                     2/2  
 INFO: A back up copy of the /opt/rudder/etc/uuid.hive has been created in /var/backups/rudder 
 INFO: A back up copy of the /var/rudder/cfengine-community/policy_server.dat has been created in /var/backups/rudder 
 INFO: A back up copy of the /var/rudder/cfengine-community/ppkeys has been created in /var/backups/rudder 
   Verifying       : 1398866025:rudder-agent-4.1.0.beta2.git201701210334-1.EL.6.x86_64                                                                                                                                    1/2  
   Verifying       : 1398866025:rudder-agent-3.1.18.rc1.git201701190751-1.EL.6.x86_64                                                                                                                                     2/2  

 Mis à jour : 
   rudder-agent.x86_64 1398866025:4.1.0.beta2.git201701210334-1.EL.6                                                                                                                                                       

 Terminé ! 
 </pre>

Back