Project

General

Profile

Bug #13774

rudder-cf-execd and rudder-cf-serverd are not enabled nor running after a server install on debian 8

Added by Félix DALLIDET about 1 month ago. Updated about 1 month ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Severity:
User visibility:
Effort required:
Priority:
0

Description

I tried to install a 4.3 nightly on debian8, update the agent was not possible since rudder-cf-execd and rudder-cf-serverd were not running.
Most likely a problem in the postinstall, which should execute "/bin/systemctl enable rudder-agent rudder-cf-execd rudder-cf-serverd" but does not.

I did not try on any other version with a debian8.

Associated revisions

Revision 19e24ec6 (diff)
Added by Alexis MOUSSET about 1 month ago

Fixes #13774: rudder-cf-execd and rudder-cf-serverd are not enabled nor running after a server install on debian 8

History

#1 Updated by Alexis MOUSSET about 1 month ago

  • Status changed from New to In progress
  • Assignee set to Alexis MOUSSET

#2 Updated by Félix DALLIDET about 1 month ago

  • Status changed from In progress to New
  • Assignee deleted (Alexis MOUSSET)

This come from a wrong detection of systemd during the postinstall.
We detect it with:
if grep -q systemd /proc/1/cmdline > /dev/null ; then CFRUDDER_USE_SYSTEMD=1; fi

But if I check what is in this "folder":
root@server:/var/cache/apt/archives/tmp/DEBIAN# cat /proc/1/cmdline
/sbin/init

root@server:/var/cache/apt/archives/tmp/DEBIAN# ls -l /sbin/init
lrwxrwxrwx 1 root root 20 Apr 8 2017 /sbin/init -> /lib/systemd/systemd

There is a path to a symlink so it does not appear in the grep. We should traverse the path before doing anything.

#3 Updated by Félix DALLIDET about 1 month ago

  • Assignee set to Alexis MOUSSET

#4 Updated by Alexis MOUSSET about 1 month ago

  • Status changed from New to Pending technical review
  • Assignee changed from Alexis MOUSSET to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/1707

#5 Updated by Alexis MOUSSET about 1 month ago

  • Status changed from Pending technical review to Pending release

#6 Updated by Vincent MEMBRÉ about 1 month ago

  • Status changed from Pending release to Released
This bug has been fixed in Rudder 4.3.6 and 5.0.2 which were released today.
Changelog
Changelog

Also available in: Atom PDF