Project

General

Profile

Actions

Bug #18297

closed

ceph cli fails on monitors that don't send 'flags' in command descs

Added by Dan Mick over 7 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
ceph cli
Target version:
-
% Done:

0%

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

Description

61d63433dfdcc08ecc21ba4f645794da5e01823c added the ability to mark commands with flags to say they are obsolete or deprecated, and avoid showing them in help. The code unconditionally looks for the 'flags' key on the command dict, which will not be present when run against older mons.

Validate presence of the key before checking it.


Related issues 1 (0 open1 closed)

Copied to Ceph - Backport #18318: jewel: ceph cli fails on monitors that don't send 'flags' in command descsRejectedActions
Actions

Also available in: Atom PDF