Project

General

Profile

Actions

Bug #12438

closed

ceph client keyring caps not parsing pool varialbe

Added by Abdi Ibrahim almost 9 years ago. Updated about 7 years ago.

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

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
4 - irritation
Reviewed:
Affected Versions:
ceph-qa-suite:
rbd
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

When setting up client authentication for an OpenStack user (glance) and there is a small typo somewhere in the pool name variable... the glance import image fails with the following error:

glance image-create --name cirros --is-public=true --disk-format=qcow2 --container-format=bare < cirros-0.3.1-x86_64-disk.img
Request returned failure status.
500 Internal Server Error
Failed to upload image f46a2ca6-25af-40e9-9f23-7fd9d0315ad8
(HTTP 500)

looking at the /var/log/glance/api.log there is a error with Operation not permitted. See below snippet:
2015-07-22 13:16:38.167 2925 TRACE glance.api.v1.upload_utils Traceback (most recent call last):
2015-07-22 13:16:38.167 2925 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.7/dist-packages/glance/api/v1/upload_utils
.py", line 105, in upload_data_to_store
2015-07-22 13:16:38.167 2925 TRACE glance.api.v1.upload_utils store)
2015-07-22 13:16:38.167 2925 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.7/dist-packages/glance/store/__init__.py",
line 385, in store_add_to_backend
2015-07-22 13:16:38.167 2925 TRACE glance.api.v1.upload_utils (location, size, checksum, metadata) = store.add(image_id, data
, size)
2015-07-22 13:16:38.167 2925 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.7/dist-packages/glance/store/rbd.py", line
340, in add
2015-07-22 13:16:38.167 2925 TRACE glance.api.v1.upload_utils image_size, order)
2015-07-22 13:16:38.167 2925 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.7/dist-packages/glance/store/rbd.py", line
258, in _create_image
2015-07-22 13:16:38.167 2925 TRACE glance.api.v1.upload_utils features=rbd.RBD_FEATURE_LAYERING)
2015-07-22 13:16:38.167 2925 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.7/dist-packages/rbd.py", line 222, in crea
te
2015-07-22 13:16:38.167 2925 TRACE glance.api.v1.upload_utils raise make_ex(ret, 'error creating image')
2015-07-22 13:16:38.167 2925 TRACE glance.api.v1.upload_utils PermissionError: error creating image

after spending few hours troubleshooting it turns out that I had a small typo in the caps after pool= there is a white space:
client.glance
key: AQDfb65VTo66BBAAe405rs4ejdLS3Vy2Yzkowg==
caps: [mon] allow r
caps: [osd] allow class-read object_prefix rbd_children, allow rwx pool= glance-images

Actions #1

Updated by Sage Weil about 7 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF