Project

General

Profile

Bug #44664

mgr/dashboard: fail to add/remove hosts

Added by Kiefer Chang 4 months ago. Updated 4 months ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
dashboard/general
Target version:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
1 - critical
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

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'

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

History

#1 Updated by Kiefer Chang 4 months ago

  • Status changed from New to In Progress

#2 Updated by Sebastian Wagner 4 months ago

Might help to make sure, the code is afterwards properly checkable by mypy!

#3 Updated by Lenz Grimmer 4 months ago

  • Target version set to v15.0.0
  • Severity changed from 2 - major to 1 - critical

#4 Updated by Sebastian Wagner 4 months ago

  • Priority changed from Normal to Urgent

#5 Updated by Kiefer Chang 4 months ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 34023

#6 Updated by Sage Weil 4 months ago

  • Status changed from Fix Under Review to Resolved

Also available in: Atom PDF