Project

General

Profile

Actions

Bug #41040

open

get_daemon_status() is not returning a status

Added by Ali Maredia over 4 years ago. Updated over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
python interface
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The get_daemon_status() is returning an empty dict in a vstart cluster when provided with ("osd", "0").
Documentation for get_daemon_status is here: https://docs.ceph.com/docs/master/mgr/modules/

Steps to reproduce using a vstart cluster:
1. clone ceph
2. cd ceph
3. mkdir src/pybind/mgr/minimal ; cd src/pybind/mgr/minimal
4. touch init.py module.py
5. copy the init.py and module.py attached to this tracker issue
6. build vstart and start a ceph vstart cluster with a mgr on:
MON=3 OSD=3 RGW=1 MGR=1 MDS=0 ../src/vstart.sh -n -d
7. cd ceph/build
8. bin/ceph -c ceph.conf mgr module enable minimal
9. Open out/mgr.x.log

At the last step you can search for "Daemon status is" and find an empty dict.
This issue applies to all daemons as inputs to get_daemon_status, not just ("osd","0").


Files

module.py (1.37 KB) module.py module.py for ceph/src/pybind/mgr/minimal Ali Maredia, 07/31/2019 08:51 PM
__init__.py (22 Bytes) __init__.py __init__.py for ceph/src/pybind/mgr/minimal Ali Maredia, 07/31/2019 08:51 PM
Actions #1

Updated by Sebastian Wagner over 4 years ago

  • Category set to python interface
Actions

Also available in: Atom PDF