Actions
Bug #44664
closedmgr/dashboard: fail to add/remove hosts
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
1 - critical
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
An error is displayed when adding/removing hosts.
Traceback:
2020-03-18T07:15:38.278+0000 7fa691ad7700 0 [dashboard INFO root] Operations pending: 0 2020-03-18T07:15:38.278+0000 7fa691ad7700 0 [dashboard ERROR taskexec] Error while calling Task(ns=host/remove, md={'hostname': 'mgr0'}) Traceback (most recent call last): File "/ceph/src/pybind/mgr/dashboard/tools.py", line 559, in _run val = self.task.fn(*self.task.fn_args, **self.task.fn_kwargs) # type: ignore File "/ceph/src/pybind/mgr/dashboard/controllers/host.py", line 87, in delete self._check_orchestrator_host_op(orch_client, hostname, False) File "/ceph/src/pybind/mgr/dashboard/controllers/host.py", line 97, in _check_orchestrator_host_op host = orch_client.hosts.get(hostname) File "/ceph/src/pybind/mgr/dashboard/services/orchestrator.py", line 62, in get hosts = [host for host in self.list() if host.name == hostname] File "/ceph/src/pybind/mgr/dashboard/services/orchestrator.py", line 62, in <listcomp> hosts = [host for host in self.list() if host.name == hostname] AttributeError: 'HostSpec' object has no attribute 'name'
Files
Updated by Kiefer Chang about 4 years ago
- Status changed from New to In Progress
Updated by Sebastian Wagner about 4 years ago
Might help to make sure, the code is afterwards properly checkable by mypy!
Updated by Lenz Grimmer about 4 years ago
- Target version set to v15.0.0
- Severity changed from 2 - major to 1 - critical
Updated by Sebastian Wagner about 4 years ago
- Priority changed from Normal to Urgent
Updated by Kiefer Chang about 4 years ago
- Status changed from In Progress to Fix Under Review
- Pull request ID set to 34023
Updated by Sage Weil about 4 years ago
- Status changed from Fix Under Review to Resolved
Updated by Ernesto Puerta about 3 years ago
- Project changed from mgr to Dashboard
- Category changed from 132 to General
Actions