Project

General

Profile

Actions

Bug #44664

closed

mgr/dashboard: fail to add/remove hosts

Added by Kiefer Chang about 4 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
General
Target version:
% 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

Screenshot_20200318_151349.png (35.4 KB) Screenshot_20200318_151349.png Kiefer Chang, 03/18/2020 07:16 AM
Actions

Also available in: Atom PDF