Actions
Bug #5119
closedcheck-rudder-agent fails if an error occurs during sourcing /etc/profile
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
I tried to upgrade Rudder agent from version 2.9 to 2.10 on some machines but it seems that it fails on SLES 10 and SLES 11.
Using rpm will not install the package:
$ rpm -Uvh /tmp/rudder-agent-2.10.2.release-1.SLES.11.x86_64.rpm warning: /tmp/rudder-agent-2.10.2.release-1.SLES.11.x86_64.rpm: Header V3 RSA/SHA1 signature: NOKEY, key ID 6f07d355 Preparing... ########################################### [100%] package rudder-agent-2.10.2.release-1.SLES.11.x86_64 is intended for a x86_64 architecture $ rpm -qa | grep rudder rudder-agent-2.9.4.release-1.SLES.11
And using zypper will let two error appear with two ruder-agent packages:
$ zypper -v in rudder-agent [...] The following package is going to be upgraded: rudder-agent 1398866025:2.9.3.release-1.SLES.10 -> 1398866025:2.10.2.release-1.SLES.10 The following package is not supported by its vendor: rudder-agent 1398866025:2.10.2.release-1.SLES.10 1 package to upgrade. Overall download size: 22.2 MiB. After the operation, additional 21.0 KiB will be used. Continue? [y/n/?] (y): y committing Retrieving package rudder-agent-1398866025:2.10.2.release-1.SLES.10.i586 (1/1), 22.2 MiB (87.3 MiB unpacked) Retrieving: rudder-agent-2.10.2.release-1.SLES.10.i586.rpm [done (6.6 MiB/s)] Installing: rudder-agent-1398866025:2.10.2.release-1.SLES.10 [error] Installation of rudder-agent-1398866025:2.10.2.release-1.SLES.10 failed: (with --nodeps --force) Error: Subprocess failed. Error: RPM failed: warning: /var/cache/zypp/packages/Rudder_SLES_10/i586/rudder-agent-2.10.2.release-1.SLES.10.i586.rpm: Header V3 RSA/SHA1 signature: NOKEY, key ID 6f07d355 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 Making sure that the permissions on the CFEngine key directory are correct... rudder-agent[31110]: [INFO] Using /etc/default/rudder-agent for configuration rudder-agent[31113]: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir rudder-agent[31114]: [INFO] Halting CFEngine Community cf-serverd... rudder-agent[31128]: [OK] CFEngine Community cf-serverd stopped after 2 seconds rudder-agent[31129]: [INFO] Halting CFEngine Community cf-execd... rudder-agent[31130]: [INFO] can't read PID file, not stopping cf-execd rudder-agent[31136]: [INFO] Found no CFEngine Community cf-serverd processes running rudder-agent[31143]: [INFO] Killing CFEngine Community cf-execd with force... rudder-agent[31145]: [OK] all CFEngine Community cf-execd processes killed with force CFEngine binaries copied to workdir rudder-agent[31436]: [INFO] Using /etc/default/rudder-agent for configuration rudder-agent[31439]: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir rudder-agent[31440]: [INFO] Launching CFEngine Community cf-serverd... 2014-06-23T16:21:08+0000 warning: Cannot implicitly evaluate bundle 'common cfengine', as this bundle takes arguments. 2014-06-23T16:21:08+0000 warning: Cannot implicitly evaluate bundle 'common cfengine', as this bundle takes arguments. 2014-06-23T16:21:08+0000 notice: Server is starting... rudder-agent[31486]: [OK] CFEngine Community cf-serverd started after 1 seconds rudder-agent[31487]: [INFO] Launching CFEngine Community cf-execd... rudder-agent[31544]: [OK] CFEngine Community cf-execd started after 1 seconds error: %post(rudder-agent-2.10.2.release-1.SLES.10.i586) scriptlet failed, exit status 1 Abort, retry, ignore? [a/r/i] (a): a Problem occured during or after installation or removal of packages: Installation aborted by user Please see the above error message for a hint. Checking for running processes using deleted libraries...
$ rpm -qa | grep rudder-agent rudder-agent-2.10.2.release-1.SLES.10 rudder-agent-2.9.3.release-1.SLES.10
This is the case on SLES 11 too:
$ rpm -qa | grep rudder-agent rudder-agent-2.10.2.release-1.SLES.11 rudder-agent-2.9.5.rc1.git201403310649-1.SLES.11
I suppose the first error come from this line: https://github.com/Normation/rudder-packages/blob/2.10.2-1/rudder-agent/SPECS/rudder-agent.spec#L336
Actions