Project

General

Profile

Actions

Bug #24114

closed

librados EACCES on mgr_command immediately after init

Added by Марк Коренберг almost 6 years ago. Updated about 5 years ago.

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 #1

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?

Actions #2

Updated by Марк Коренберг almost 6 years ago

Sorry, I can't. But test is stright-froward, so anyone having dev environment is able to test.

Actions #3

Updated by Sage Weil almost 6 years ago

  • Status changed from New to Resolved

Just tested this.. it appears to be fixed!

Actions #4

Updated by Марк Коренберг almost 6 years ago

Since it is race-codition, did you test on unpatched version ?

Actions #5

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

Actions #6

Updated by Nathan Cutler over 5 years ago

  • Status changed from Resolved to Pending Backport
  • Backport set to luminous
Actions #8

Updated by Марк Коренберг about 5 years ago

Please close the issue. Everything is OK.

Actions #9

Updated by Nathan Cutler about 5 years ago

  • Status changed from Pending Backport to Resolved
  • Backport deleted (luminous)
Actions

Also available in: Atom PDF