Bug #24114
closedlibrados EACCES on mgr_command immediately after init
0%
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.
Updated by John Spray almost 6 years ago
- Project changed from Ceph to mgr
- Subject changed from Python (not sure) race condition. to librados EACCES on mgr_command immediately after init
- Category set to MgrClient
Strongly suspect this will have been fixed by https://github.com/ceph/ceph/pull/21811
If you have a development environment, can you re-test with master?
Updated by Марк Коренберг almost 6 years ago
Sorry, I can't. But test is stright-froward, so anyone having dev environment is able to test.
Updated by Sage Weil almost 6 years ago
- Status changed from New to Resolved
Just tested this.. it appears to be fixed!
Updated by Марк Коренберг almost 6 years ago
Since it is race-codition, did you test on unpatched version ?
Updated by runsisi hust over 5 years ago
verified on 12.2.9
it has been fixed by this patch https://github.com/ceph/ceph/pull/21811/commits/bae47183c2621577ba564d29c82a0517ab8a7f54
since this patch set has not been backported to luminous, so the -EACCES error is reproducible on 12.2.9
Updated by Nathan Cutler over 5 years ago
- Status changed from Resolved to Pending Backport
- Backport set to luminous
Updated by Марк Коренберг about 5 years ago
Please close the issue. Everything is OK.
Updated by Nathan Cutler about 5 years ago
- Status changed from Pending Backport to Resolved
- Backport deleted (
luminous)