Project

General

Profile

Actions

Bug #23132

open

some config values should be unsigned, to disallow negative values

Added by Debashis Mondal about 6 years ago. Updated about 6 years ago.

Status:
Triaged
Priority:
Normal
Assignee:
-
Category:
Administration/Usability
Target version:
-
% Done:

0%

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

Description

Execution Steps:
-------------------
1. Set negative value for parameter "osd_heartbeat_interval" in ceph.conf
2. Check the applied configuration via below command
#ceph daemon /var/run/ceph/ceph-mon.*.asok config show

Observation:
-------------
As per Error handling and data validation of ceph, it is observed that if any wrong value is set in configuration regarding any particular field within config file, it will either take the default configuration value or throw warning/error. This is the expected behaviour.

But in case of setting negative value for some fields, the setting gets reflected within giving any error/warning.

Unable to perform Ceph OSD Heartbeat Operation (Thread::osd_srv_heartbt), while "osd heartbeat interval" is set to 0.

Perform Ceph OSD Heartbeat Operation (Thread::osd_srv_heartbt) continuously without any delay, while "osd heartbeat interval" is set to any negative value (Eg: -1 is set here).

Remark:
-------------
We have also observed this behavior for some other fields.
It seems that Ceph has this kind of limitation for other fields as well.

Solution:
------------
There should be a proper validation of configuration parameters for negative values.

Note: Please refer attachments for details


Files

Negative_value_handling.txt (1.13 KB) Negative_value_handling.txt Debashis Mondal, 02/26/2018 05:07 AM
osd_heartbeat_interval.txt (1.95 KB) osd_heartbeat_interval.txt Debashis Mondal, 02/26/2018 05:07 AM
Actions #1

Updated by Jason Dillaman about 6 years ago

  • Project changed from rbd to RADOS
Actions #2

Updated by Josh Durgin about 6 years ago

  • Subject changed from Error handling is not properly defined on Ceph configuration parameters. to some config values should be unsigned, to disallow negative values
  • Category set to Administration/Usability
  • Status changed from New to Triaged
Actions

Also available in: Atom PDF