Project

General

Profile

Actions

Bug #10483

closed

Bug #10467: slapd is not always restarted after installation of rudder-inventory-ldap

slapd is not started after installation of rudder-inventory-ldap on unbutu 16.04

Added by Nicolas CHARLES almost 8 years ago. Updated over 7 years ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Severity:
Critical - prevents main use of Rudder | no workaround | data loss | security
UX impact:
User visibility:
First impressions of Rudder
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

On ubuntu 16.04, rudder-slapd is not started after installation

root@server:/home/vagrant# ps afux | grep slapd
root     27314  0.0  0.0  14224   980 pts/1    S+   16:37   0:00                          \_ grep --color=auto slapd
root@server:/home/vagrant# invoke-rc.d rudder-slapd start
root@server:/home/vagrant# ps afux | grep slapd
root     27331  0.0  0.0  14224   932 pts/1    S+   16:37   0:00                          \_ grep --color=auto slapd
root@server:/home/vagrant# invoke-rc.d rudder-slapd start
root@server:/home/vagrant# echo $?
0

it seems that invoke-rc.d rudder-slapd start doesn't do anything on ubuntu 16.04 (however the stop command works)


Related issues 2 (0 open2 closed)

Related to Rudder - Bug #10506: Rudder 4.1 fails to install Ubuntu/Debian because of rudder-slapd service restartReleasedVincent MEMBRÉActions
Has duplicate Rudder - Bug #10482: slapd is not always restarted after rudder-initRejectedActions
Actions #1

Updated by Nicolas CHARLES almost 8 years ago

bash -x invoke-rc.d rudder-slapd start
+ RUNLEVELHELPER=/sbin/runlevel
+ POLICYHELPER=/usr/sbin/policy-rc.d
+ INITDPREFIX=/etc/init.d/
+ RCDPREFIX=/etc/rc
+ BEQUIET=
+ MODE=
+ ACTION=
+ FALLBACK=
+ NOFALLBACK=
+ FORCE=
+ RETRY=
+ RETURNFAILURE=
+ RC=
+ is_upstart=
+ is_systemd=
+ is_openrc=
+ set +e
+ test 2 -eq 0
+ state=I
+ test 2 -gt 0
+ test I '!=' III
+ case "$1" in
+ case ${state} in
+ verifyparameter rudder-slapd
+ test 1 -eq 0
+ test 1 -ne 1
+ return
+ INITSCRIPTID=rudder-slapd
+ state=II
+ shift
+ test 1 -gt 0
+ test II '!=' III
+ case "$1" in
+ case ${state} in
+ verifyparameter start
+ test 1 -eq 0
+ test 1 -ne 1
+ return
+ ACTION=start
+ state=III
+ shift
+ test 0 -gt 0
+ test III '!=' III
+ case ${ACTION} in
+ unset UPSTART_SESSION
+ which initctl
+ test -d /run/systemd/system
+ is_systemd=1
+ UNIT=rudder-slapd.service
++ /sbin/runlevel
+ RL='N 5'
+ RL=5
+ test x5 = x0
+ test x5 = x6
+ test x5 = x0
+ test x5 = x6
+ test x5 '!=' x
++ xargs
++ ls -d -Q '/etc/rc5.d/S[0-9][0-9]rudder-slapd'
+ SLINK=
++ xargs
++ ls -d -Q '/etc/rc5.d/K[0-9][0-9]rudder-slapd'
+ KLINK=
++ xargs
++ ls -d -Q '/etc/rcS.d/S[0-9][0-9]rudder-slapd'
+ SSLINK=
+ verifyrclink
+ doexit=
+ test 0 -gt 0
+ test x '!=' x
+ return 0
+ RC=
+ case ${ACTION} in
+ testexec
+ test 0 -gt 0
+ return 1
+ testexec
+ test 0 -gt 0
+ return 1
+ testexec
+ test 0 -gt 0
+ return 1
+ RC=101
+ _executable=
+ '[' -n '' ']'
+ '[' -n 1 ']'
+ _executable=1
+ '[' 1 = 1 ']'
+ test x101 = x
+ querypolicy
+ policyaction=start
+ test x101 = x101
+ test start = start
+ policyaction='(start)'
+ test x/usr/sbin/policy-rc.d '!=' x
+ test -x /usr/sbin/policy-rc.d
+ test x101 = x
+ return
+ case ${RC} in
+ test x = xquery
+ '[' -n '' ']'
+ '[' 0 '!=' 0 ']'
+ clean_ldpreload libeatmydata.so
+ local name=libeatmydata.so 'oifs=     
' found=0 tok= nval= 'delim= '
+ '[' '' = '' ']'
+ IFS=' '
+ IFS='     
'
+ '[' 0 = 1 ']'
+ return 0
+ test x '!=' x
+ test 101 -eq 104
+ test 101 -eq 101
+ test x = x
+ test xstart = xstatus
+ RC=0
+ exit 0

There is not rudder-slapd in /etc/rc5.d (but there is a

lrwxrwxrwx   1 root root   16 Mar 22 16:18 S03rudder -> ../init.d/rudder

Actions #2

Updated by Benoît PECCATTE over 7 years ago

  • Status changed from New to In progress
  • Assignee set to Benoît PECCATTE
Actions #3

Updated by Benoît PECCATTE over 7 years ago

This is because there is no rc installed.
rc files are installed on rpm based packages but not on dpkg based ones. Why ?

As a workaround (since we don't want to rewrite debian packaging now we can use service instead of invoke-rc.d
There is no obligation to use invoke-rc.d, the only difference with service is that is checks current rcX.d links. Which is not mandatory in our case.

Actions #4

Updated by Benoît PECCATTE over 7 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Benoît PECCATTE to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/1317
Actions #5

Updated by Benoît PECCATTE over 7 years ago

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

Updated by François ARMAND over 7 years ago

  • Related to Bug #10506: Rudder 4.1 fails to install Ubuntu/Debian because of rudder-slapd service restart added
Actions #7

Updated by Benoît PECCATTE over 7 years ago

  • Status changed from Pending release to Released
  • Priority set to 0

This bug has been fixed in Rudder 4.1.0 which was released today.

Actions #8

Updated by Benoît PECCATTE over 7 years ago

  • Has duplicate Bug #10482: slapd is not always restarted after rudder-init added
Actions

Also available in: Atom PDF