Project

General

Profile

Actions

Bug #21501

closed

ceph_volume_client: sets invalid caps for existing IDs with no caps

Added by Ramana Raja over 6 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% 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:
Crash signature (v1):
Crash signature (v2):

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 2 (0 open2 closed)

Copied to CephFS - Backport #21626: jewel: ceph_volume_client: sets invalid caps for existing IDs with no capsResolvedPatrick DonnellyActions
Copied to CephFS - Backport #21627: luminous: ceph_volume_client: sets invalid caps for existing IDs with no capsResolvedPatrick DonnellyActions
Actions #1

Updated by Ramana Raja over 6 years ago

  • Description updated (diff)
Actions #2

Updated by Ramana Raja over 6 years ago

  • Status changed from In Progress to Fix Under Review
Actions #3

Updated by Patrick Donnelly over 6 years ago

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to luminous
Actions #4

Updated by Patrick Donnelly over 6 years ago

  • Backport changed from luminous to luminous,jewel
Actions #5

Updated by Patrick Donnelly over 6 years ago

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

Updated by Patrick Donnelly over 6 years ago

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

Updated by Nathan Cutler about 6 years ago

  • Status changed from Pending Backport to Resolved
Actions #8

Updated by Patrick Donnelly about 5 years ago

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

Also available in: Atom PDF