Actions
Bug #10051
closedWhen upgrading agent on Centos6 from 3.1 to 4.1, all promises are replaced by initial promises
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
I upgraded Rudder-agent on Centos6 from 3.1 to 4.1 beta, and:
- upgrade is fairly slow (it seems to block at
Mise à jour : 1398866025:rudder-agent-4.1.0.beta2.git201701210334-1.EL.6.x86_64 1/2
- promises are replaced by initial promises
# 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
PS output during upgrade is
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
Full upgrade messages are
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é !
Files
Updated by Alexis Mousset almost 8 years ago
# Copy initial promises if there aren't any already or, # if the cf-promises validation fails, it means we have a broken set of promises (possibly a pre-2.8 set). # Reset the initial promises so the server is able to send the agent a new set of correct ones. RUDDER_UUID=`cat /opt/rudder/etc/uuid.hive 2>>${LOG_FILE} || true` if [ ! -f ${CFE_DIR}/inputs/promises.cf ] || ! ${CFE_DIR}/bin/cf-promises >> ${LOG_FILE} 2>&1 && [ "${RUDDER_UUID}" != "root" ] then ...
Updated by Alexis Mousset almost 8 years ago
Nicolas, could you join the content of /var/log/rudder/install/rudder-agent.log?
Updated by Alexis Mousset almost 8 years ago
- Status changed from New to In progress
- Assignee changed from Alexis Mousset to Nicolas CHARLES
Updated by Nicolas CHARLES almost 8 years ago
- File rudder-agent.log rudder-agent.log added
- Assignee changed from Nicolas CHARLES to Alexis Mousset
Here it is Alexis
Updated by Alexis Mousset almost 8 years ago
This happens because of:
error: Fatal CFEngine error: UNTRUSTED: Private key directory /var/rudder/cfengine-community/ppkeys (mode 755) was not private!
Updated by Alexis Mousset almost 8 years ago
- Is duplicate of Bug #10034: Error when upgrading rudder-agent added
Updated by Alexis Mousset almost 8 years ago
- Status changed from In progress to Rejected
Updated by Alexis Mousset almost 8 years ago
- Related to Bug #3515: Upgrading rudder-agent from 2.4.4 to 2.6.0 nightly lead to having an error from CFEngine because of permissions of directories added
Updated by Alexis Mousset almost 8 years ago
- Related to deleted (Bug #3515: Upgrading rudder-agent from 2.4.4 to 2.6.0 nightly lead to having an error from CFEngine because of permissions of directories)
Actions