[openstack-dev] [gnocchi] gnocchi-metricd couldn't start up with ceph backend

Hui Xiang xianghuir at gmail.com
Thu Jul 6 06:03:43 UTC 2017


Hi guys.

  I am setting up OpenStack with Gnocchi with ceph as the storage backend,
after service gnocchi-metricd start, it always reported "PermissionError:
Failed to operate read op for oid measure", seems at the time metricd
start, it tried to list the measure object, however, there is none such
object, so does the permission show error? I didn't find any bug related,
could anyone help to tell me what am I missing? Thanks.

### ceph pools
[root at node-4 gnocchi]# rados lspools
rbd
images
volumes
compute
backups
metrics
### gnocchi pool(metrics) has none objects
[root at node-4 gnocchi]# rados ls -p metrics
[root at node-4 gnocchi]#

### /etc/gnocchi/gnocchi.conf
[storage]
driver = ceph
ceph_pool = metrics
ceph_username = gnocchi
ceph_keyring = /etc/ceph/ceph.client.gnocchi.keyring
ceph_conffile = /etc/ceph/ceph.conf

### ceph auth
client.gnocchi
key: AQAE9FtZussoMRAAiKk4lCX21k9DTDf39AE4Cg==
caps: [mon] allow r
caps: [osd] allow class-read object_prefix rbd_children, allow rwx
pool=metrics,

### gnocchi/metricd.log
2017-07-06 13:52:10.794 2265410 ERROR gnocchi.cli   File
"/usr/lib/python2.7/site-packages/gnocchi/cli.py", line 229, in _run_job
2017-07-06 13:52:10.794 2265410 ERROR gnocchi.cli     self.block_size,
self.block_index))
2017-07-06 13:52:10.794 2265410 ERROR gnocchi.cli   File
"/usr/lib/python2.7/site-packages/gnocchi/storage/incoming/ceph.py", line
141, in list_metric_with_measures_to_process
2017-07-06 13:52:10.794 2265410 ERROR gnocchi.cli     size * (part + 1))
2017-07-06 13:52:10.794 2265410 ERROR gnocchi.cli   File
"/usr/lib/python2.7/site-packages/gnocchi/storage/incoming/ceph.py", line
125, in _list_object_names_to_process
2017-07-06 13:52:10.794 2265410 ERROR gnocchi.cli     op,
self.MEASURE_PREFIX, flag=self.OMAP_READ_FLAGS)
2017-07-06 13:52:10.794 2265410 ERROR gnocchi.cli   File "cradox.pyx", line
444, in cradox.requires.wrapper.validate_func (cradox.c:4719)
2017-07-06 13:52:10.794 2265410 ERROR gnocchi.cli   File "cradox.pyx", line
3028, in cradox.Ioctx.operate_read_op (cradox.c:39707)
2017-07-06 13:52:10.794 2265410 ERROR gnocchi.cli PermissionError: Failed
to operate read op for oid measure


BR.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170706/9a765035/attachment.html>


More information about the OpenStack-dev mailing list