Project

General

Profile

Bug #21501

ceph_volume_client: sets invalid caps for existing IDs with no caps

Added by Ramana Raja over 1 year ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
09/22/2017
Due date:
% Done:

0%

Source:
other
Tags:
Backport:
luminous,jewel
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
VolumeClient
Labels (FS):
Manila
Pull request ID:

Description

Create a ceph auth ID with no caps,
$ sudo ceph auth get-or-create client.test2

Allow ceph_volume_client to authorize ID 'client.test2' access to a volume,

import ceph_volume_client
vc = ceph_volume_client.CephFSVolumeClient("manila", "/etc/ceph/ceph.conf", "ceph")
vc.connect()
vp = ceph_volume_client.VolumePath('group1', 'share1')
vc.create_volume(vp, size=5)

{'mount_path': '/volumes/group1/share1'}

vc.authorize(vp, 'test2')

Creating meta for ID test2 with tenant None {'auth_key': None}

vc.disconnect()

Check out the caps of 'client.test2' it's got invalid OSD and MDS caps, a ',' is at the beginning of the caps,
$ sudo ceph auth get client.test2
[client.test2]
key = AQD4CsVZCpBBORAAtqL6wndnhTbip9xf0NQeeQ==
caps mds = ",allow rw path=/volumes/group1/share1"
caps mon = "allow r"
caps osd = ",allow rw pool=cephfs_data namespace=fsvolumens_share1"


Related issues

Copied to fs - Backport #21626: jewel: ceph_volume_client: sets invalid caps for existing IDs with no caps Resolved
Copied to fs - Backport #21627: luminous: ceph_volume_client: sets invalid caps for existing IDs with no caps Resolved

History

#1 Updated by Ramana Raja over 1 year ago

  • Description updated (diff)

#2 Updated by Ramana Raja over 1 year ago

  • Status changed from In Progress to Need Review

#3 Updated by Patrick Donnelly over 1 year ago

  • Status changed from Need Review to Pending Backport
  • Backport set to luminous

#4 Updated by Patrick Donnelly over 1 year ago

  • Backport changed from luminous to luminous,jewel

#5 Updated by Patrick Donnelly over 1 year ago

  • Copied to Backport #21626: jewel: ceph_volume_client: sets invalid caps for existing IDs with no caps added

#6 Updated by Patrick Donnelly over 1 year ago

  • Copied to Backport #21627: luminous: ceph_volume_client: sets invalid caps for existing IDs with no caps added

#7 Updated by Nathan Cutler over 1 year ago

  • Status changed from Pending Backport to Resolved

#8 Updated by Patrick Donnelly 3 months ago

  • Category deleted (87)
  • Labels (FS) Manila added

Also available in: Atom PDF