Project

General

Profile

Actions

Bug #3643

closed

default authentication on the client does not work without a config file or keyring in bobtail

Added by Tamilarasi muthamizhan over 11 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

On a single node bobtail cluster,the ceph-auth setting is as mentioned below,

ubuntu@burnupi09:/etc/ceph$ sudo cat ceph.conf
[global]
auth service required = none
auth cluster required = none
auth client required = none

on a client running bobtail version of ceph-fuse, mount fails with the following error message,

ubuntu@burnupi13:~$ sudo ceph-fuse -v
ceph version 0.55.1-294-g0dd1302 (0dd1302543422e2bac65d634ed2f1f4260dcae79)

ubuntu@burnupi13:~$ sudo ceph-fuse -m 10.214.134.34:6789 /mnt/test
2012-12-18 12:59:23.243928 7f01c9134780 -1 did not load config file, using default settings.
ceph-fuse1804: starting ceph client
2012-12-18 12:59:23.245288 7f01c9134780 -1 monclient(hunting): failed to open keyring: (2) No such file or directory
ceph-fuse1804: ceph mount failed with (2) No such file or directory
ceph-fuse1802: mount failed: (2) No such file or directory

But, ceph-fuse mount succeeds when the flag "auth-client-required=none" is set

ubuntu@burnupi13:~$ sudo ceph-fuse -m 10.214.134.34:6789 /mnt/test --debug-auth=10 --debug-ms=10 --auth-client-required=none
2012-12-18 13:02:21.985865 7f847cbd9780 -1 did not load config file, using default settings.
ceph-fuse1847: starting ceph client
ceph-fuse1847: starting fuse

as the default authentication in bobtail is "auth client required = cephx,none" , I expected it to work without a need for keyring or auth setting on the client. But looks like there has to be a explicit mention of "auth client required" on the client side.

also, please note that am able to successfully do a ceph-fuse mount with argonaut version of ceph-fuse on the same cluster[burnupi09] without any need for ceph.conf or keyring on the client side.

ubuntu@burnupi14:~$ sudo ceph-fuse -v
ceph version 0.48.2argonaut-51-gdfd3103 (dfd310368267df848f2b65cc536b4ffcb039d353)

ubuntu@burnupi14:~$ sudo mkdir /test/burnupi9
ubuntu@burnupi14:~$ sudo ceph-fuse -m 10.214.134.34:6789 /test/burnupi9
2012-12-18 13:04:07.305633 7f3461691780 -1 did not load config file, using default settings.
ceph-fuse54997: starting ceph client
ceph-fuse54997: starting fuse
ubuntu@burnupi14:

We may have to either fix this issue or make a note of this in the release notes as this is different from argonaut behaviour.

Actions #1

Updated by Yehuda Sadeh over 11 years ago

  • Status changed from New to Fix Under Review
Actions #2

Updated by Sage Weil over 11 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF