]> review.fuel-infra Code Review - packages/trusty/mcollective.git/log
packages/trusty/mcollective.git
10 years agoFix sys V init script so start/restart actions work properly 60/6760/4
Alexei Sheplyakov [Sat, 16 May 2015 10:24:33 +0000 (13:24 +0300)]
Fix sys V init script so start/restart actions work properly

The config file shipped with the package tells mcollectived to daemonize.
However the init script assumes mcollectived runs in the foreground
(start-stop-daemon -b) and tells start-stop-daemon put mcollective into
background and to manage the pid file. So start-stop-daemon forks, records
its pid, and starts mcollective which forks again. Therefore PID recorded
in the PID file is wrong. As a result the restart action spawns a new
instance of mcollective without stopping the old one, and start launches
a new mcollective even if it's already running.

Rewrite the init script, drop the trickery which start-stop-daemon does
on its own (provided that PID file is correct). While at it add dependency
on ruby-stomp (mcollectived won't even start without it).

Closes-Bug: #1454741
Change-Id: Iac4d3535c98881be7ccea256c50d58f337420205

10 years agoMinor packaging update; no actual code changes 69/5569/2
Alexei Sheplyakov [Fri, 13 Mar 2015 09:13:14 +0000 (12:13 +0300)]
Minor packaging update; no actual code changes

Change the revision according to the new versioning policy.
While at it update the Maintainer field (MOS Linux team).

blueprint separate-mos-from-linux

Change-Id: I48507a382e1b3ceced2e7c2a34e1eb2d73393768

10 years agoFix the init script so mcollective can be restarted properly 49/2749/1
Alexei Sheplyakov [Thu, 29 Jan 2015 11:08:24 +0000 (14:08 +0300)]
Fix the init script so mcollective can be restarted properly

The check for a running mcollective process is totally wrong and fails
to handle a stale pid file:

if [ -f $(cat /proc/$(cat $pidfile)/exe > /dev/null) ] ; then

Basically it's

if [ -f ]; then echo "Someone can't write shell scripts"; fi

This error breaks image based deployment. During the first boot after
the image based provisioning cloud init reconfigures mcollective to use
rabbitmq for communication and restarts it. However the restart gets
suppressed due to a bug in the sysv-style init script, so OpenStack
deployment does not start (and eventually times out).

The error is non-deterministic since sometimes cloud-init manages to
configure mcollective before it actually gets started (thus the correct
configuration is used despite the skipped restart).

Related-Bug: #1407634
Change-Id: I1608492ff807a1662fa1453c6e50d9fb4eb234bd

10 years agoAdded mcollective 2.3.1 package 65/2365/1
Alexei Sheplyakov [Tue, 27 Jan 2015 05:46:11 +0000 (08:46 +0300)]
Added mcollective 2.3.1 package

The version of mcollective (2.0.0) shipped with Ubuntu 14.04 is unable
to communicate via AMQP and is not suitable for Fuel. Therefore pick
the source from packages/precise/mcollective and adapt it so it works
on Ubuntu 14.04

Change-Id: I1a03409e996aa8ead65294ff422af9c5ff266a72

10 years agoAdded .gitreview
Andrey Nikitin [Fri, 23 Jan 2015 13:49:28 +0000 (16:49 +0300)]
Added .gitreview