Project

General

Profile

Actions

Bug #13774

closed

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 4 years ago. Updated about 4 years ago.

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

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.

Actions #1

Updated by Alexis Mousset about 4 years ago

  • Status changed from New to In progress
  • Assignee set to Alexis Mousset
Actions #2

Updated by Félix DALLIDET about 4 years 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.

Actions #3

Updated by Félix DALLIDET about 4 years ago

  • Assignee set to Alexis Mousset
Actions #4

Updated by Alexis Mousset about 4 years 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
Actions #5

Updated by Alexis Mousset about 4 years ago

  • Status changed from Pending technical review to Pending release
Actions #6

Updated by Vincent MEMBRÉ about 4 years 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
Actions

Also available in: Atom PDF