Actions
Bug #24114
closedlibrados EACCES on mgr_command immediately after init
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
MgrClient
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rados
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
This simple program does not work (prints:)
(-13, b'', '')
If I uncomment sleep 0.1, everything works as expected.
conf = {'keyring': 'keyring.conf'}
with rados.Rados(conffile='/etc/ceph/ceph.conf', conf=conf) as cluster:
# sleep(0.1)
qwe = cluster.mgr_command(
json.dumps({
"prefix": "pg ls-by-pool",
"poolstr": "qwe",
"target": ["mgr", ""],
"format": "json",
}),
'',
0
)
print(qwe)
Ceph 12.2.4 (Ubuntu) on client, Ceph 12.2.5 (Debian) on mgr host.
Actions