Project

General

Profile

Bug #12698

rudder-agent 4.3 install hangs on Debian 7

Added by Vincent MEMBRÉ 7 months ago. Updated 5 months ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
51

Description

Rudder agent install is stuck at some point, and can only resume if cf-serverd/execd are killed ( can be done easily by restarting service rudder-agent)

It seems that is a bug when some file descriptors are not closed properly making dpkg hangs ...

ps output:

root      2213  0.0  0.0   4164   708 pts/0    Ss+  11:44   0:00 sh /tmp/ncf-setup test-local https://github.com/Normation/ncf.git#branches/rudder/4.3 rudder-4.3
root      2291  0.1  2.7  70196 27860 pts/0    S+   11:44   0:00 apt-get -y install rudder-agent
root      2703  0.0  0.2  12704  2700 pts/1    Ss+  11:44   0:00 /usr/bin/dpkg --status-fd 42 --configure libyaml-0-2:amd64 uuid-runtime:amd64 rudder-agent:amd64
root      2713  0.0  1.2  60028 12932 pts/1    S+   11:44   0:00 /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/rudder-agent.postinst configure 
root      2716  0.0  0.0      0     0 pts/1    Z+   11:44   0:00 [rudder-agent.po] <defunct>

Here is the stuck output of apt-get

11:00:13 D��paquetage de rudder-agent (�� partir de .../rudder-agent_4.3.1-wheezy0_amd64.deb) ...
11:00:15 Traitement des actions diff��r��es (����triggers����) pour ����man-db����...
11:00:18 Param��trage de libyaml-0-2:amd64 (0.1.4-2+deb7u5) ...
11:00:19 Param��trage de uuid-runtime (2.20.1-5.3) ...
11:00:19 Param��trage de rudder-agent (4.3.1-wheezy0) ...
11:00:20 ok: Rudder agent is now disabled.
11:00:20 INFO: Ensuring correct permissions on the keys directory... Done.
11:00:20 INFO: Creating keys for Rudder agent... Done.
11:00:21 ok: Rudder agent has been enabled but not started, wait for next cron run.
11:00:21 ********************************************************************************
11:00:21 rudder-agent has been installed (not started). This host can be a Rudder node.
11:00:21 To get started, configure your Rudder server's hostname and launch the agent:
11:00:21 # echo 'rudder.server' > /var/rudder/cfengine-community/policy_server.dat
11:00:21 # rudder agent start
11:00:21 This node will then appear in the Rudder web interface under 'Accept new nodes'.
11:00:21 ********************************************************************************

Related issues

Related to Rudder - Bug #13525: rudder-agent 4.1 install hangs on Debian 7 Released
Has duplicate Rudder - Bug #12931: Agent installation on debian7 does not provide a ready to run agentRejected

Associated revisions

Revision c906a10c (diff)
Added by Félix DALLIDET 6 months ago

Fixes #12698: rudder-agent 4.3 install hangs on Debian 7

History

#1 Updated by Benoît PECCATTE 7 months ago

  • Category set to Packaging
  • Severity set to Major - prevents use of part of Rudder | no simple workaround
  • User visibility set to Operational - other Techniques | Technique editor | Rudder settings
  • Priority changed from 0 to 52

#3 Updated by Félix DALLIDET 6 months ago

This is due to unclosed file descriptors opened by the post-install script.
Adding a bash function closing all fd in the main post-inst (which make the call to others rudder scripts) solves the problem.

#4 Updated by Félix DALLIDET 6 months ago

  • Target version set to 4.3.3

#5 Updated by Félix DALLIDET 6 months ago

  • Status changed from New to In progress
  • Assignee set to Félix DALLIDET

#6 Updated by Félix DALLIDET 6 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Félix DALLIDET to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/1606

#7 Updated by Félix DALLIDET 6 months ago

  • Status changed from Pending technical review to Pending release

#8 Updated by Vincent MEMBRÉ 5 months ago

  • Status changed from Pending release to Released
  • Priority changed from 52 to 51

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

#9 Updated by Alexis MOUSSET 5 months ago

  • Has duplicate Bug #12931: Agent installation on debian7 does not provide a ready to run agent added

#10 Updated by Félix DALLIDET 3 months ago

  • Related to Bug #13525: rudder-agent 4.1 install hangs on Debian 7 added

Also available in: Atom PDF