Project

General

Profile

Bug #10506

Rudder 4.1 fails to install Ubuntu/Debian because of rudder-slapd service restart

Added by Nicolas CHARLES 6 months ago. Updated 6 months ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Target version (plugin):
Severity:
Critical - prevents main use of Rudder | no workaround | data loss | security
User visibility:
First impressions of Rudder
Effort required:
Priority:
0

Description

==> ubuntu16_server: Setting up rudder-inventory-ldap (4.1.0~rc2~git201703270151-xenial0) ...
==> ubuntu16_server: INFO: Restarting syslogd...
==> ubuntu16_server:  Done
==> ubuntu16_server: INFO: Restarting rudder-slapd...
==> ubuntu16_server: Failed to restart rudder-slapd.service: Unit rudder-slapd.service not found.
==> ubuntu16_server: dpkg: error processing package rudder-inventory-ldap (--configure):
==> ubuntu16_server:  subprocess installed post-installation script returned error exit status 5
==> ubuntu16_server: dpkg: dependency problems prevent configuration of rudder-inventory-endpoint:
==> ubuntu16_server:  rudder-inventory-endpoint depends on rudder-inventory-ldap (= 4.1.0~rc2~git201703270151-xenial0); however:
==> ubuntu16_server:   Package rudder-inventory-ldap is not configured yet.
==> ubuntu16_server: 
==> ubuntu16_server: dpkg: error processing package rudder-inventory-endpoint (--configure):
==> ubuntu16_server:  dependency problems - leaving unconfigured
==> ubuntu16_server: Setting up rudder-reports (4.1.0~rc2~git201703270151-xenial0) ...
==> ubuntu16_server: No apport report written because the error message indicates its a followup error from a previous failure.

Attached is service script

service (9.82 KB) Nicolas CHARLES, 2017-03-27 10:40


Subtasks

Bug #10514: Rudder 4.1 fails to install Ubuntu/Debian because of rudder-slapd service restartReleasedBenoît PECCATTE


Related issues

Related to Rudder - Bug #10483: slapd is not started after installation of rudder-inventory-ldap on unbutu 16.04 Released
Related to Rudder - Bug #10475: service rudder restart does not work the first time on Debian 8 New

Associated revisions

Revision bcf0afc6
Added by Benoît PECCATTE 6 months ago

Fixes #10506: Rudder 4.1 fails to install Ubuntu/Debian because of rudder-slapd service restart

History

#1 Updated by François ARMAND 6 months ago

  • Related to Bug #10483: slapd is not started after installation of rudder-inventory-ldap on unbutu 16.04 added

#2 Updated by François ARMAND 6 months ago

Wasn't it introduced (or badly corrected) by #10483? The symptoms seems quite alike, no?

#3 Updated by Vincent MEMBRÉ 6 months ago

This happens too on Debian8

#4 Updated by François ARMAND 6 months ago

  • Subject changed from Rudder 4.1 fails to install on Ubuntu16 to Rudder 4.1 fails to install Ubuntu/Debian because of rudder-slapd service restart

I confirm it is reproducible and happens on Debian8, on a fresh install:

==> debian8lite_server: INFO: Restarting rudder-slapd...
==> debian8lite_server: Failed to restart rudder-slapd.service: Unit rudder-slapd.service failed to load: No such file or directory.
==> debian8lite_server: dpkg: error processing package rudder-inventory-ldap (--configure):
==> debian8lite_server:  subprocess installed post-installation script returned error exit status 6
==> debian8lite_server: dpkg: dependency problems prevent configuration of rudder-inventory-endpoint:
==> debian8lite_server:  rudder-inventory-endpoint depends on rudder-inventory-ldap (= 4.1.0~rc2~git201703270227-jessie0); however:
==> debian8lite_server:   Package rudder-inventory-ldap is not configured yet.
==> debian8lite_server:

#5 Updated by François ARMAND 6 months ago

I can also confirm than starting the slapd service and running rudder-init correct the problem:

root@server:/home/vagrant# ps aux | grep slap
root     15780  0.0  0.1  15140  2204 pts/0    S+   12:58   0:00 grep --color=auto slap
root@server:/home/vagrant# service rudder-slapd start
root@server:/home/vagrant# ps aux | grep slap
root     15923  0.0  0.3 105066752 5840 ?      Ssl  12:59   0:00 /opt/rudder/libexec/slapd -h ldap://localhost:389 -n rudder-slapd -f /opt/rudder/
etc/openldap/slapd.conf
root     15939  0.0  0.1  15140  2136 pts/0    S+   12:59   0:00 grep --color=auto slap
root@server:/home/vagrant# /opt/rudder/bin/rudder-init

Welcome to the Rudder initialization utility

This utility configures a Rudder root server, and may be
called again if reconfiguration is required.

Enter network allowed to access server (i.e 192.168.0.0/24): 192.168.0.0/24
192.168.0.0/24
Network(s) added:
192.168.0.0/24
Add more networks? (yes/no) no
no

SUMMARY OF OPTIONS:

Allowed networks: 192.168.0.0/24

Hit any key to continue....
Configuring and installing initial CFEngine promises... Done.
Initializing LDAP database... done.

Updating Rudder password file with random passwords...  done.
Cleaning up temporary directories... done.
Restarting services... done.

Reinitialization complete, Rudder is currently reloading.

You can access it via https://<hostname>/rudder

( Example: https://server.rudder.local/rudder )

Thank you for using Rudder.

#6 Updated by François ARMAND 6 months ago

  • Related to Bug #10475: service rudder restart does not work the first time on Debian 8 added

#7 Updated by Benoît PECCATTE 6 months ago

  • Status changed from New to In progress
  • Assignee changed from Alexis MOUSSET to Benoît PECCATTE

#8 Updated by Benoît PECCATTE 6 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Benoît PECCATTE to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/1319

#9 Updated by Benoît PECCATTE 6 months ago

  • Status changed from Pending technical review to Pending release

#10 Updated by Nicolas CHARLES 6 months ago

Tried with this night nightly, issue still exists

iF  rudder-inventory-ldap              4.1.0~rc2~git201703280152-xenial0  amd64 

==> ubuntu16_server: Setting up rudder-inventory-ldap (4.1.0~rc2~git201703280152-xenial0) ...
==> ubuntu16_server: INFO: Restarting syslogd...
==> ubuntu16_server:  Done
==> ubuntu16_server: INFO: Restarting rudder-slapd...
==> ubuntu16_server: Failed to restart rudder-slapd.service: Unit rudder-slapd.service not found.
==> ubuntu16_server: dpkg: error processing package rudder-inventory-ldap (--configure):
==> ubuntu16_server:  subprocess installed post-installation script returned error exit status 5

#11 Updated by Benoît PECCATTE 6 months 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.

Also available in: Atom PDF