Actions
Bug #45294
closed
MF
MF
cephdam: rgw realm/zone could contain 'hostname'
Bug #45294:
cephdam: rgw realm/zone could contain 'hostname'
Due date:
% Done:
0%
Source:
Development
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
v16.0.0-1324-gcf60809597
Released In:
v16.2.0~2668
Upkeep Timestamp:
2025-07-15T01:13:28+00:00
Description
A 'hostname' like sub-string could be provided as a realm/zone :
$ ceph orch apply rgw realm host1 --placement host1 Scheduled rgw.realm.host1 update...
Creating this DaemonDesription:
$ ceph orch ps --daemon-type rgw --format yaml container_id: a4301f77e336 container_image_id: 7bb50d3c5c9afcb8d68417890cae4ac782cf68c9b48e2879bc7e610cc7e2d45c container_image_name: docker.io/ceph/daemon-base:latest-master-devel created: '2020-04-27T18:14:11.074853' daemon_id: realm.host1.host1.brcvkx daemon_type: rgw hostname: host1 last_refresh: '2020-04-27T18:14:31.272693' started: '2020-04-27T18:14:11.205837' status: 1 status_desc: running version: 16.0.0-899-g18734af
But breaks the `orch ls` command:
$ ceph orch ls rgw
Error EINVAL: Traceback (most recent call last):
File "/root/src/github.com/mgfritch/ceph/src/pybind/mgr/mgr_module.py", line 1157, in _handle_command
return self.handle_command(inbuf, cmd)
File "/root/src/github.com/mgfritch/ceph/src/pybind/mgr/orchestrator/_interface.py", line 110, in handle_command
return dispatch[cmd['prefix']].call(self, cmd, inbuf)
File "/root/src/github.com/mgfritch/ceph/src/pybind/mgr/mgr_module.py", line 308, in call
return self.func(mgr, **kwargs)
File "/root/src/github.com/mgfritch/ceph/src/pybind/mgr/orchestrator/_interface.py", line 72, in <lambda>
wrapper_copy = lambda *l_args, **l_kwargs: wrapper(*l_args, **l_kwargs)
File "/root/src/github.com/mgfritch/ceph/src/pybind/mgr/orchestrator/_interface.py", line 63, in wrapper
return func(*args, **kwargs)
File "/root/src/github.com/mgfritch/ceph/src/pybind/mgr/orchestrator/module.py", line 334, in _list_services
completion = self.describe_service(service_type,
File "/root/src/github.com/mgfritch/ceph/src/pybind/mgr/orchestrator/_interface.py", line 1542, in inner
completion = self._oremote(method_name, args, kwargs)
File "/root/src/github.com/mgfritch/ceph/src/pybind/mgr/orchestrator/_interface.py", line 1614, in _oremote
return mgr.remote(o, meth, *args, **kwargs)
File "/root/src/github.com/mgfritch/ceph/src/pybind/mgr/mgr_module.py", line 1518, in remote
return self._ceph_dispatch_remote(module_name, method_name,
RuntimeError: Remote method threw exception: Traceback (most recent call last):
File "/root/src/github.com/mgfritch/ceph/src/pybind/mgr/cephadm/module.py", line 561, in wrapper
return AsyncCompletion(value=f(*args, **kwargs), name=f.__name__)
File "/root/src/github.com/mgfritch/ceph/src/pybind/mgr/cephadm/module.py", line 1822, in describe_service
n: str = dd.service_name()
File "/root/src/github.com/mgfritch/ceph/src/pybind/mgr/orchestrator/_interface.py", line 1312, in service_name
return f'{self.daemon_type}.{self.service_id()}'
File "/root/src/github.com/mgfritch/ceph/src/pybind/mgr/orchestrator/_interface.py", line 1297, in service_id
pre, post_ = self.daemon_id.split(self.hostname)
ValueError: too many values to unpack (expected 2)
Similar to this tracker:
https://tracker.ceph.com/issues/44934
MF Updated by Michael Fritch over 6 years ago
- Pull request ID set to 34778
MF Updated by Michael Fritch over 6 years ago
- Status changed from New to Fix Under Review
SW Updated by Sebastian Wagner over 6 years ago
- Status changed from Fix Under Review to Pending Backport
SW Updated by Sebastian Wagner over 6 years ago
- Status changed from Pending Backport to Resolved
- Target version set to v15.2.4
UB Updated by Upkeep Bot over 1 year ago
- Merge Commit set to cf60809597c625fc880cd7a6547089f90b85fffe
- Fixed In set to v16.0.0-1324-gcf60809597
- Released In set to v16.2.0~2668
- Upkeep Timestamp set to 2025-07-15T01:13:28+00:00
Actions