Bug #23132
opensome config values should be unsigned, to disallow negative values
0%
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
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