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 #1

Updated by Kiefer Chang about 4 years ago

  • Status changed from New to In Progress
Actions #2

Updated by Sebastian Wagner about 4 years ago

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

Actions #3

Updated by Lenz Grimmer about 4 years ago

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

Updated by Sebastian Wagner about 4 years ago

  • Priority changed from Normal to Urgent
Actions #5

Updated by Kiefer Chang about 4 years ago

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

Updated by Sage Weil about 4 years ago

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

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 132 to General
Actions

Also available in: Atom PDF