Project

General

Profile

Actions

Bug #45108

closed

test_orchestrator: service ls doesn't work

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

Status:
Resolved
Priority:
Normal
Assignee:
Category:
test_orchestrator
Target version:
% Done:

0%

Source:
Tags:
Backport:
octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

How to reproduce
- vstart a cluster.
- Enable test_orchestrator and set it as the backend.
- listing services raises an error:

╰─# bin/ceph orch ls
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2020-04-16T07:37:21.554+0000 7f243b88e700 -1 WARNING: all dangerous and experimental features are enabled.
2020-04-16T07:37:21.582+0000 7f243b88e700 -1 WARNING: all dangerous and experimental features are enabled.
Error ENOENT: Spec needs a "service_type" key.

Also, loading dummy data from `ceph/src/pybind/mgr/test_orchestrator/dummy_data.json` doesn't work.

  File "/ceph/src/pybind/mgr/mgr_module.py", line 1159, in _handle_command
    return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf)
  File "/ceph/src/pybind/mgr/mgr_module.py", line 308, in call
    return self.func(mgr, **kwargs)
  File "/ceph/src/pybind/mgr/test_orchestrator/module.py", line 84, in _load_data
    self._init_data(data)
  File "/ceph/src/pybind/mgr/test_orchestrator/module.py", line 124, in _init_data
    self._services = [orchestrator.ServiceDescription.from_json(service)
  File "/ceph/src/pybind/mgr/test_orchestrator/module.py", line 124, in <listcomp>
    self._services = [orchestrator.ServiceDescription.from_json(service)
  File "/ceph/src/pybind/mgr/orchestrator/_interface.py", line 1209, in inner
    return method(cls, *args, **kwargs)
  File "/ceph/src/pybind/mgr/orchestrator/_interface.py", line 1425, in from_json
    spec = ServiceSpec.from_json(c)
  File "/ceph/src/python-common/ceph/deployment/service_spec.py", line 39, in inner
    raise ServiceSpecValidationError(error_msg)
ceph.deployment.service_spec.ServiceSpecValidationError: ServiceSpec: __init__() got an unexpected keyword argument 'container_image_id'
Actions #1

Updated by Kiefer Chang about 4 years ago

  • Assignee changed from Abhishek Lekshmanan to Kiefer Chang
Actions #2

Updated by Sebastian Wagner about 4 years ago

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

Updated by Sebastian Wagner almost 4 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #4

Updated by Sebastian Wagner almost 4 years ago

  • Status changed from Pending Backport to Resolved
  • Target version set to v15.2.2
Actions

Also available in: Atom PDF