Project

General

Profile

Actions

Bug #8970

closed

Injectargs - inconsistent parsing of bool values

Added by Peter Vilhan over 9 years ago. Updated over 9 years ago.

Status:
Won't Fix
Priority:
Normal
Assignee:
-
Category:
ceph cli
Target version:
-
% Done:

0%

Source:
other
Tags:
runtime config, inject args, parse boolean
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Hi all,
ceph version 0.80.1 (a38fe1169b6d2ac98b427334c12d7cf81f809b74) on Ubuntu 14.04 LTS

This is how I am able to disable wbthrottle:
ceph tell osd.* injectargs '--no-filestore_wbthrottle_enable '

This methods don't work:
ceph tell osd.* injectargs '--no-filestore_wbthrottle_enable'
ceph tell osd.* injectargs '--no-filestore_wbthrottle_enable 0'
ceph tell osd.* injectargs '--filestore_wbthrottle_enable 0'
ceph tell osd.* injectargs '--filestore_wbthrottle_enable '
ceph tell osd.* injectargs '--no-filestore_wbthrottle_enable false'
ceph tell osd.* injectargs '--filestore_wbthrottle_enable false'

Best regards,

Peter

Actions #1

Updated by Sage Weil over 9 years ago

  • Status changed from New to Won't Fix

these will also work:

--my-boolean-option=0
--my-boolean-option=false

but you're right, the others won't, because boolean options get parsed as a single argument, and allow the

--my-boolean-option arg

would parse ambiguously...

by the way - and _ are interchangeable.

Actions

Also available in: Atom PDF