Project

General

Profile

Actions

Bug #5146

closed

rudder-agent start shows an alert

Added by Benoît PECCATTE over 10 years ago. Updated almost 10 years ago.

Status:
Released
Priority:
N/A
Assignee:
Jonathan CLARKE
Category:
Techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

After installing rudder-agent on ubuntu, rudder-agent is started.
It tries to run cf-serverd and gives this error :

rudder-agent5202: [INFO] Using /etc/default/rudder-agent for configuration
rudder-agent5205: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir
rudder-agent5206: [INFO] Launching CFEngine Community cf-serverd...
rlist.c:80: Programming Error: Rlist value contains type f instead of expected scalar
rudder-agent5343: [ALERT] no PID file for cf-serverd after 30 seconds. Trying again...
rlist.c:80: Programming Error: Rlist value contains type f instead of expected scalar
rudder-agent5482: [ALERT] no PID file for cf-serverd after 60 seconds. Trying again...
rlist.c:80: Programming Error: Rlist value contains type f instead of expected scalar
rudder-agent5542: [ALERT] no PID file for cf-serverd after 70 seconds
rudder-agent5543: [INFO] Launching CFEngine Community cf-execd...
rudder-agent5566: [OK] CFEngine Community cf-execd started after 1 seconds

And cf-serverd is not started.

Actions #1

Updated by Matthieu CERDA over 10 years ago

  • Target version changed from 2.11.0~beta2 to 2.11.0~rc1
Actions #2

Updated by Nicolas PERRON over 10 years ago

This is due to the initial promises containing:

[...]
 77    # List here the IP masks that we grant access to on the server
 78 
 79     policy_server::
 80       "acl" slist => {
 81       '%%POLICY_SERVER_ALLOWED_NETWORKS%%'
 82     };
[...]

This prevent cf-serverd to start since CFEngine 3.6.

Actions #3

Updated by Nicolas PERRON over 10 years ago

Nicolas PERRON wrote:

This is due to the initial promises containing:
[...]

This prevent cf-serverd to start since CFEngine 3.6.

Hmmm... i'm not so sure about the reason. It could be due to the absence of /var/rudder/cfengine-community/policy_server.dat during the installation, too.

Actions #4

Updated by Nicolas PERRON over 10 years ago

Nicolas PERRON wrote:

Nicolas PERRON wrote:

This is due to the initial promises containing:
[...]

This prevent cf-serverd to start since CFEngine 3.6.

Hmmm... i'm not so sure about the reason. It could be due to the absence of /var/rudder/cfengine-community/policy_server.dat during the installation, too.

That's it and only on CFEngine 3.6:

vagrant@node5:~> sudo ls -lh /var/rudder/cfengine-community/policy_server.dat
-rw-r--r-- 1 root root 14 juil.  3 01:35 /var/rudder/cfengine-community/policy_server.dat
vagrant@node5:~> sudo /etc/init.d/rudder-agent restart
rudder-agent[6398]: [INFO] Using /etc/default/rudder-agent for configuration
rudder-agent[6401]: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir
rudder-agent[6402]: [INFO] Halting CFEngine Community cf-serverd...
rudder-agent[6406]: [OK] CFEngine Community cf-serverd stopped after 2 seconds
rudder-agent[6407]: [INFO] Halting CFEngine Community cf-execd...
rudder-agent[6440]: [OK] CFEngine Community cf-execd stopped after 3 seconds
rudder-agent[6441]: [INFO] Launching CFEngine Community cf-serverd...
2014-07-03T01:36:02-0700   notice: Server is starting...
rudder-agent[6466]: [OK] CFEngine Community cf-serverd started after 1 seconds
rudder-agent[6467]: [INFO] Launching CFEngine Community cf-execd...
rudder-agent[6500]: [OK] CFEngine Community cf-execd started after 1 seconds
vagrant@node5:~> 
vagrant@node5:~> 
vagrant@node5:~> 
vagrant@node5:~> 
vagrant@node5:~> sudo rm /var/rudder/cfengine-community/policy_server.dat
vagrant@node5:~> sudo /etc/init.d/rudder-agent restart
rudder-agent[6532]: [INFO] Using /etc/default/rudder-agent for configuration
rudder-agent[6535]: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir
rudder-agent[6536]: [INFO] Halting CFEngine Community cf-serverd...
rudder-agent[6540]: [OK] CFEngine Community cf-serverd stopped after 2 seconds
rudder-agent[6541]: [INFO] Halting CFEngine Community cf-execd...
rudder-agent[6574]: [OK] CFEngine Community cf-execd stopped after 3 seconds
rudder-agent[6575]: [INFO] Launching CFEngine Community cf-serverd...
2014-07-03T01:36:21-0700   notice: Server is starting...
rudder-agent[6600]: [OK] CFEngine Community cf-serverd started after 1 seconds
rudder-agent[6601]: [INFO] Launching CFEngine Community cf-execd...
rudder-agent[6634]: [OK] CFEngine Community cf-execd started after 1 seconds
vagrant@node5:~> 
vagrant@node5:~> sudo /var/rudder/cfengine-community/bin/cf-agent -V
CFEngine Core 3.5.3
vagrant@node6:~> sudo ls -lh /var/rudder/cfengine-community/policy_server.dat
-rw-r--r-- 1 root root 14 juil.  3 01:32 /var/rudder/cfengine-community/policy_server.dat
vagrant@node6:~> sudo /etc/init.d/rudder-agent restart
rudder-agent[8975]: [INFO] Using /etc/default/rudder-agent for configuration
rudder-agent[8978]: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir
rudder-agent[8979]: [INFO] Halting CFEngine Community cf-serverd...
rudder-agent[8980]: [INFO] can't read PID file, not stopping cf-serverd
rudder-agent[8981]: [INFO] Halting CFEngine Community cf-execd...
rudder-agent[8982]: [INFO] can't read PID file, not stopping cf-execd
rudder-agent[8983]: [INFO] Launching CFEngine Community cf-serverd...
rudder-agent[9004]: [OK] CFEngine Community cf-serverd started after 1 seconds
rudder-agent[9005]: [INFO] Launching CFEngine Community cf-execd...
rudder-agent[9027]: [OK] CFEngine Community cf-execd started after 1 seconds
vagrant@node6:~> 
vagrant@node6:~> 
vagrant@node6:~> 
vagrant@node6:~> sudo rm /var/rudder/cfengine-community/policy_server.dat
vagrant@node6:~> sudo /etc/init.d/rudder-agent restart
rudder-agent[9060]: [INFO] Using /etc/default/rudder-agent for configuration
rudder-agent[9063]: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir
rudder-agent[9064]: [INFO] Halting CFEngine Community cf-serverd...
rudder-agent[9068]: [OK] CFEngine Community cf-serverd stopped after 2 seconds
rudder-agent[9069]: [INFO] Halting CFEngine Community cf-execd...
rudder-agent[9074]: [OK] CFEngine Community cf-execd stopped after 2 seconds
rudder-agent[9075]: [INFO] Launching CFEngine Community cf-serverd...
rlist.c:80: Programming Error: Rlist value contains type f instead of expected scalar
rudder-agent[9211]: [ALERT] no PID file for cf-serverd after 30 seconds. Trying again...
rlist.c:80: Programming Error: Rlist value contains type f instead of expected scalar
rudder-agent[9350]: [ALERT] no PID file for cf-serverd after 60 seconds. Trying again...
rlist.c:80: Programming Error: Rlist value contains type f instead of expected scalar
rudder-agent[9409]: [ALERT] no PID file for cf-serverd after 70 seconds
rudder-agent[9410]: [INFO] Launching CFEngine Community cf-execd...
rudder-agent[9432]: [OK] CFEngine Community cf-execd started after 1 seconds
vagrant@node6:~>
vagrant@node6:~> sudo /var/rudder/cfengine-community/bin/cf-agent -V
CFEngine Core 3.6.0

And in the postinst of rudder-agent package, it seems that rudder-agent is started.... even though policy_server.dat does not exist.

Actions #5

Updated by Nicolas PERRON over 10 years ago

  • Status changed from New to Discussion
  • Assignee set to Jonathan CLARKE

It seems to happens during a migration of rudder-agent, at the start of rudder-agent service or if manually launch cf-serverd or cf-agent.
What should we do ?
Add an abortclass if the file does not exist ?
Prevent rudder-agent service to restart at an upgrade if the file does not exist ?

What's your opinion, Jon ?

Actions #6

Updated by Vincent MEMBRÉ over 10 years ago

  • Target version changed from 2.11.0~rc1 to 2.11.0~rc2
Actions #7

Updated by Nicolas PERRON over 10 years ago

  • Project changed from Rudder to 24
  • Status changed from Discussion to Pending technical review
  • % Done changed from 0 to 100
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/442

PR URL added: https://github.com/Normation/rudder-techniques/pull/442

Jon, could you review it please ?

Actions #8

Updated by Vincent MEMBRÉ over 10 years ago

  • Target version changed from 2.11.0~rc2 to 2.11.0
Actions #9

Updated by Nicolas PERRON over 10 years ago

Jon, I've added a comment in the Pull Request. Maybe you didn't notice.

Actions #10

Updated by Vincent MEMBRÉ over 10 years ago

  • Target version changed from 2.11.0 to 2.11.1
Actions #11

Updated by Nicolas PERRON over 10 years ago

  • Target version changed from 2.11.1 to 2.11.2
Actions #12

Updated by Nicolas PERRON over 10 years ago

  • Target version changed from 2.11.2 to 2.11.3
Actions #13

Updated by Nicolas PERRON over 10 years ago

  • Status changed from Pending technical review to Pending release

Applied in changeset commit:2759ac8ba9b85d9e718cbb6d06e50ad0c5a45627.

Actions #14

Updated by Nicolas PERRON over 10 years ago

Applied in changeset commit:0d306bd9270ce3522c294780b8be90927ba561cc.

Actions #15

Updated by Vincent MEMBRÉ about 10 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.11.3, which was released on the 25/09/2014.

Actions #16

Updated by Benoît PECCATTE almost 10 years ago

  • Project changed from 24 to Rudder
  • Category set to Techniques
Actions

Also available in: Atom PDF