Project

General

Profile

Actions

Bug #52407

closed

mgr/cephadm: Removing a host gives a RuntimeError

Added by Nizamudeen A over 4 years ago. Updated 8 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
cephadm
Target version:
-
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v17.0.0-7497-g79b616b6bee
Released In:
v17.2.0~1006
Upkeep Timestamp:
2025-07-14T16:10:47+00:00

Description

I added a host using the orch add host command then removed using the orch rm host command, it showed me this error, https://pastebin.com/ib3sUHxz. But the host gets removed from the list.

After this, I can't add the same host back. But I can add different hosts. Although removing them shows this same error and make that host not addable.

{"prefix": "orch host rm", "hostname": "ceph-node-01.cephlab.com", "targ..."}
mgr handle_command module 'orchestrator' command handler threw exception: Non-thread-safe operation invoked on an event loop other than the current one
mgr.server reply reply (22) Invalid argument Traceback (most recent call last):
  File "/usr/share/ceph/mgr/mgr_module.py", line 1564, in _handle_command
    return self.handle_command(inbuf, cmd)
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 167, in handle_command
    return dispatch[cmd['prefix']].call(self, cmd, inbuf)
  File "/usr/share/ceph/mgr/mgr_module.py", line 415, in call
    return self.func(mgr, **kwargs)
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 107, in <lambda>
    wrapper_copy = lambda *l_args, **l_kwargs: wrapper(*l_args, **l_kwargs)  # noqa: E731
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 96, in wrapper
    return func(*args, **kwargs)
  File "/usr/share/ceph/mgr/orchestrator/module.py", line 352, in _remove_host
    raise_if_exception(completion)
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 224, in raise_if_exception
    raise e
RuntimeError: Non-thread-safe operation invoked on an event loop other than the current one

Related issues 2 (0 open2 closed)

Related to Dashboard - Bug #52447: host not added back: should delete a host and add it backResolved

Actions
Related to Dashboard - Bug #52417: cephadm/test_dashboard_e2e.sh: orchestrator/01-hosts.e2e-spec.ts failed.Resolved

Actions
Actions #1

Updated by Nizamudeen A over 4 years ago

  • Description updated (diff)
Actions #2

Updated by Sebastian Wagner over 4 years ago

  • Description updated (diff)
Actions #3

Updated by Sebastian Wagner over 4 years ago

  • Description updated (diff)
Actions #4

Updated by Sebastian Wagner over 4 years ago

  • Description updated (diff)
Actions #5

Updated by Sebastian Wagner over 4 years ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 42919
Actions #6

Updated by Nizamudeen A over 4 years ago

  • Related to Bug #52447: host not added back: should delete a host and add it back added
Actions #7

Updated by Kefu Chai over 4 years ago

  • Status changed from Fix Under Review to Resolved
Actions #8

Updated by Nizamudeen A over 4 years ago

  • Related to Bug #52417: cephadm/test_dashboard_e2e.sh: orchestrator/01-hosts.e2e-spec.ts failed. added
Actions #9

Updated by Upkeep Bot 8 months ago

  • Merge Commit set to 79b616b6bee866f83740896b022bff2b863eb224
  • Fixed In set to v17.0.0-7497-g79b616b6bee
  • Released In set to v17.2.0~1006
  • Upkeep Timestamp set to 2025-07-14T16:10:47+00:00
Actions

Also available in: Atom PDF