zabbix rabbitmq reports not running after clean deployment

Bug #1419397 reported by Sam Stoelinga
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Sam Stoelinga

Bug Description

Description: A clean non-ha environment deployment in virtualbox reports that rabbitmq is not running. Fix is described below.

Steps to reproduce:
1. Create a new non-HA environment using Ubuntu with experimental features enabled
2. Deploy 4 node cluster: 1 controller, 1 compute, 1 cinder-lvm, 1 zabbix node

Fuel version: 6.0 official release

Current result:
Zabbix shows RabbitMQ Server process is not running on node-1.domain.tld

Expected result:
After a clean deployment zabbix shouldn't show any errors.

Quick Fix:
Go to the Template App OpenStack RabbitMQ and change the item "RabbitMQ EPMD process is running" from proc.num[,rabbitmq,,bin/epmd] to proc.num[,,,bin/epmd]

The fix removes the check for which user is running epmd, my guess is that if HA is enabled the rabbitmq service started by pacemaker is running under the rabbitmq user, while when non-ha is enabled the rabbitmq service started via init.d is started by root user. If so I suggest the code fix to make sure that HA and non-ha use the same user to start rabbitmq?

Would like to do the code fix myself as exercise

description: updated
Changed in fuel:
assignee: nobody → Sam Stoelinga (sammiestoel)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/153840

Changed in fuel:
status: New → In Progress
Changed in fuel:
importance: Undecided → Medium
milestone: none → 6.1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/153840
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=cd208f5a2b95450ac543b773cf9edc5638bd63e1
Submitter: Jenkins
Branch: master

commit cd208f5a2b95450ac543b773cf9edc5638bd63e1
Author: Sam Stoelinga <email address hidden>
Date: Sun Feb 8 15:17:41 2015 +0800

    Rabbitmq reported not running in zabbix

    RabbitMQ is reported as not running when rabbitmq is run
    as root user. This patch removes the check as which
    user rabbitmq is running.

    This may introduce a security issue if our purpose was to
    make sure that rabbitmq is always run as rabbitmq user.
    If so please discard this patch and change init script
    of non-ha mode to run RabbitMQ as rabbitmq user.

    Change-Id: I7879d68d535880babc34d4321367592da94128f0
    Closes-bug: #1419397

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Sam Stoelinga (sammiestoel) wrote :

any reason why it did not get included in 6.1, seems there is a regression? I just reproduced this on 6.1

Revision history for this message
Sam Stoelinga (sammiestoel) wrote :

seems the fuel-plugin-external-zabbix did not use the latest code, so there may be several regressions introduced that were fixed in latest Fuel code. I've submitted a patch to the fuel-plugin-external-zabbix

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-plugin-external-zabbix (master)

Reviewed: https://review.openstack.org/199373
Committed: https://git.openstack.org/cgit/stackforge/fuel-plugin-external-zabbix/commit/?id=a662a49fe80f6782e24cc29004662f2e1c9272ee
Submitter: Jenkins
Branch: master

commit a662a49fe80f6782e24cc29004662f2e1c9272ee
Author: Sam Stoelinga <email address hidden>
Date: Wed Jul 8 10:17:03 2015 +0800

    Rabbitmq reported not running in zabbix

    RabbitMQ is reported as not running when rabbitmq is run
    as root user. This patch removes the check as which
    user rabbitmq is running.

    This may introduce a security issue if our purpose was to
    make sure that rabbitmq is always run as rabbitmq user.
    If so please discard this patch and change init script
    of non-ha mode to run RabbitMQ as rabbitmq user.

    The fuel-plugin-external-zabbix did not backport latest
    code of Fuel, causing a regression. The following
    patch was not ported to fuel plugin:
    https://review.openstack.org/153840

    Change-Id: Id9106d178a300880e6e491e59cb3bc3245b8bded
    Closes-bug: #1419397

Revision history for this message
Olivier Bourdon (olivierbourdon38) wrote :

Cleanup of Zabbix related bugs for easier tracking of forthcoming 2.6 release

Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.