Project

General

Profile

Actions

Bug #46268

closed

cephadm: orch apply -i: RGW service spec id might not contain a zone

Added by Michael Fritch almost 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Category:
cephadm
Target version:
% Done:

0%

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

Description

rgw.yaml

---
service_type: rgw
service_id: rgw_realm
placement: 
    hosts: 
        - 'node3'

Result:

$ ceph orch apply -i rgw.spec
Error EINVAL: Traceback (most recent call last):
  File "/usr/share/ceph/mgr/mgr_module.py", line 1167, in _handle_command
    return self.handle_command(inbuf, cmd)
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 113, in handle_command
    return dispatch[cmd['prefix']].call(self, cmd, inbuf)
  File "/usr/share/ceph/mgr/mgr_module.py", line 311, in call
    return self.func(mgr, **kwargs)
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 75, in <lambda>
    wrapper_copy = lambda *l_args, **l_kwargs: wrapper(*l_args, **l_kwargs)
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 66, in wrapper
    return func(*args, **kwargs)
  File "/usr/share/ceph/mgr/orchestrator/module.py", line 1000, in _apply_misc
    specs: List[GenericSpec] = [json_to_generic_spec(s) for s in content]
  File "/usr/share/ceph/mgr/orchestrator/module.py", line 1000, in <listcomp>
    specs: List[GenericSpec] = [json_to_generic_spec(s) for s in content]
  File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 1228, in json_to_generic_spec
    return ServiceSpec.from_json(spec)
  File "/usr/lib/python3.6/site-packages/ceph/deployment/service_spec.py", line 36, in inner
    return method(cls, *args, **kwargs)
  File "/usr/lib/python3.6/site-packages/ceph/deployment/service_spec.py", line 436, in from_json
    return _cls._from_json_impl(c)  # type: ignore
  File "/usr/lib/python3.6/site-packages/ceph/deployment/service_spec.py", line 448, in _from_json_impl
    _cls = cls(**args)
  File "/usr/lib/python3.6/site-packages/ceph/deployment/service_spec.py", line 554, in __init__
    rgw_zone = a[1]
IndexError: list index out of range

Actions #1

Updated by Michael Fritch almost 4 years ago

  • Pull request ID set to 35838
Actions #2

Updated by Michael Fritch almost 4 years ago

  • Status changed from New to Fix Under Review
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 over 3 years ago

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

Also available in: Atom PDF