[library] "service supervisord status" reports wrong status when supervisor is down

Bug #1356805 reported by Aleksandr Didenko on 2014-08-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Critical
Aleksandr Didenko
5.0.x
High
Fuel Library (Deprecated)

Bug Description

Steps to reproduce:

pkill -9 -P 1 supervisord
service supervisor
# service supervisord status ; echo $?
unix:///var/run/supervisor.sock refused connection
0

This breaks fuel master node upgrades

Changed in fuel:
status: New → Triaged

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

Changed in fuel:
status: Triaged → In Progress

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

commit 32f61400c7d68804df46593f5bd392c364958f91
Author: Aleksandr Didenko <email address hidden>
Date: Thu Aug 14 13:19:12 2014 +0300

    Fix '/etc/init.d/supervisord status'

    "service supervisord status" reports wrong status (servise is up)
    even when supervisor is down. It uses "supervisorctl status" which
    returns exit code "0" when supervisor is down. We're adding
    additional check for status() function to fix this.

    Closes-bug: #1356805

    Change-Id: I6979d9b54c1e9fed2f1629ebc1edc741f2136b56

Changed in fuel:
status: In Progress → Fix Committed
Dmitry Pyzhov (dpyzhov) on 2014-08-15
no longer affects: fuel/5.1.x
no longer affects: fuel/5.0.x
Changed in fuel:
status: Fix Committed → Fix Released
Changed in fuel:
status: Fix Released → Fix Committed

Change abandoned by Aleksandr Didenko (<email address hidden>) on branch: stable/5.0
Review: https://review.openstack.org/114219
Reason: No longer relevant

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers