Project

General

Profile

Bug #46268

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

Added by Michael Fritch about 1 month ago. Updated 5 days 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:

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

History

#1 Updated by Michael Fritch about 1 month ago

  • Pull request ID set to 35838

#2 Updated by Michael Fritch about 1 month ago

  • Status changed from New to Fix Under Review

#3 Updated by Sebastian Wagner 14 days ago

  • Status changed from Fix Under Review to Pending Backport

#4 Updated by Sebastian Wagner 5 days ago

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

Also available in: Atom PDF