Feature #24651
closedmgr/dashboard: Improve SSL certificate import to no longer require a Mgr restart
0%
Description
Now that https://github.com/ceph/ceph/pull/22634 has been merged into master, the process for importing SSL certificates into the dashboard module commands should be improved to no longer require restarting the Ceph Manager. According to John Spray, we need to "implement new commands in the dashboard module to accept the certificate input, and then in the handle_command function consume the inbuf field."
Updated by Dan Mick almost 6 years ago
Here's an unmerged example, called directly from handle_command():
def do_post(self, cmd, inbuf): try: metadata = Module.validate_crash_metadata(inbuf) except Exception as e: return errno.EINVAL, '', 'malformed crash metadata: %s' % e crashid = metadata['crash_id'] key = 'crash/%s' % crashid if self.get_store(key): return errno.EADDRINUSE, '', 'crash id %s already saved' % crashid self.set_store(key, inbuf) return 0, '', 'Posted %s' % crashid
Updated by Sebastian Wagner almost 6 years ago
- Assignee changed from Lenz Grimmer to Sebastian Wagner
Updated by Sebastian Wagner almost 6 years ago
- Status changed from New to In Progress
Updated by Sebastian Wagner over 5 years ago
After investigating a bit:
- Reloading just the CherryPy engine is not implemented.
- enabling or disabling any module from within a module is not possible.
Maybe it's possible to run execv ourselves?
Updated by Ricardo Marques over 5 years ago
Updated by Sebastian Wagner over 5 years ago
- Related to Bug #24648: 'ceph mgr enable/disable <module>' interrupts all other modules added
Updated by Lenz Grimmer over 5 years ago
- Status changed from In Progress to New
- Pull request ID set to 23447
This is currently on hold - the pending PR was closed due to lack of activity.
Updated by Sebastian Wagner over 4 years ago
- Status changed from New to Rejected
We cannot (And will likely never be able to) properly restart modules, therefore let's close this issue as rejected. Relates to https://github.com/ceph/ceph/pull/32051
Updated by Ernesto Puerta about 3 years ago
- Project changed from mgr to Dashboard
- Category changed from 132 to General