Project

General

Profile

Actions

Bug #40779

closed

Unable to reset / unset module options

Added by Sebastian Wagner almost 5 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Category:
python interface
Target version:
-
% Done:

0%

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

Description

MgrModule.set_module_option('x', None) is supposed to reset module options. This is broken.

void PyModuleConfig::set_config() accepts a boost::optional<std::string> as value, which is `false` if the optional is unset.
But ceph_set_module_option doesn't pass None to PyModuleConfig::set_config()

Result: there is no way to unset a setting

Affects dashboard and orchestrator_cli


Related issues 1 (0 open1 closed)

Copied to mgr - Backport #40878: nautilus: Unable to reset / unset module optionsResolvedPrashant DActions
Actions

Also available in: Atom PDF