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

Bug #1356805 reported by Aleksandr Didenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Critical
Aleksandr Didenko
5.0.x
Won't Fix
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
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/114193

Changed in fuel:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/5.0)

Fix proposed to branch: stable/5.0
Review: https://review.openstack.org/114219

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

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)
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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-library (stable/5.0)

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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