Problem with cephx in 0.55

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello

I can't map rbd volume after upgrading to 0.55 from 0.53.

ceph.conf:
[global]
  auth cluster required = cephx
  auth service required = cephx
  auth client required = cephx
  keyring = /srv/ceph/keyring.admin

[mon]
  mon data = /srv/ceph/mon
  mon clock drift allowed = 0.5

[mon.cc]
  host = cc
  mon addr = 10.255.128.1:6789

[mds]
  debug mds = 1
  keyring = /srv/ceph/ceph-stage2/keyring.$name

[mds.cc]
  host = cc

[osd]
  osd data = /srv/ceph/ceph-data/$name
  osd journal = /srv/ceph/ceph-journal/$name.journal
  osd journal size = 10000
  osd scrub load threshold = 4
  keyring = /srv/ceph/ceph-stage2/keyring.$name
  debug osd = 1

[osd.1]
  host = n3cc
[osd.0]
  host = cc

# ceph auth list
...
client.test
        key: AQAaAshQ6NakBRAAHbOaK7DvO9NIKDwTV5REMw==
        caps: [mon] allow r
        caps: [osd] allow rwx pool=winnie-test

# cat secret
AQAaAshQ6NakBRAAHbOaK7DvO9NIKDwTV5REMw==
root@i-10-255-0-23[staging]:/tmp# rbd map test -p winnie-test --id
test --secret secret
rbd: add failed: (1) Operation not permitted

from mon's log:
2012-12-12 15:15:19.429889 7fe0a3097700  0 -- 10.255.128.1:6789/0 >>
10.255.0.23:0/3731757836 pipe(0x1ce4240 sd=23 :6789 pgs=0 cs=0
l=0).accept peer addr is really 10.255.0.23:0/3731757836 (socket is
10.255.0.23:56533/0)

If I use admin key or use "caps: [osd] allow rwx" instead of "caps:
[osd] allow rwx pool=winnie-test" it works fine.

--
regards
Maciej Gałkiewicz
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux