Project

General

Profile

Actions

Bug #65122

open

cephadmin returns "1" on successful host-maintenance enter/exit - should return "0"

Added by Dan Brown about 2 months ago. Updated 29 days ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
-
Category:
cephadm (binary)
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
backport_processed
Backport:
squid, reef, quincy
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

cephadmin returns "1" on successful host-maintenance enter/exit - should return "0" as is convention.

$ sudo cephadm host-maintenance enter --fsid XXXX-XXXXXX-XXXX-XXXXX Inferring config /var/lib/ceph/XXXX-XXXXXX-XXXX-XXXXXconfig/ceph.conf
Requested to place host into maintenance
success - systemd target ceph-XXXX-XXXXXX-XXXX-XXXXX.target disabled
$ echo $?
1

$ sudo cephadm host-maintenance exit --fsidXXXX-XXXXXX-XXXX-XXXXX
Inferring config /var/lib/ceph/XXXX-XXXXXX-XXXX-XXXXX /config/ceph.conf
Requested to exit maintenance state
success - systemd target ceph-XXXX-XXXXXX-XXXX-XXXXX .target enabled and started
$ echo $?
1


Related issues 3 (2 open1 closed)

Copied to Orchestrator - Backport #65417: squid: cephadmin returns "1" on successful host-maintenance enter/exit - should return "0"ResolvedAdam KingActions
Copied to Orchestrator - Backport #65418: reef: cephadmin returns "1" on successful host-maintenance enter/exit - should return "0"NewActions
Copied to Orchestrator - Backport #65419: quincy: cephadmin returns "1" on successful host-maintenance enter/exit - should return "0"NewActions
Actions

Also available in: Atom PDF