[DevStack][Ceilometer][Gnocchi] Error 403 -
i on openstack project , i'm trying use ceilometer , gnocchi. i've installed devstack following lines in local.conf file install , configure ceilometer , gnocchi:
enable_plugin gnocchi https://github.com/gnocchixyz/gnocchi master enable_plugin ceilometer https://git.openstack.org/openstack/ceilometer enable_service gnocchi-grafana the installation successful, metric service has been created along ceilometer , gnocchi users. [keystone_authtoken] sections of ceilometer , gnocchi configuration files apparently correctly set, set gnocchi meter dispatcher in ceilometer config file.
but commands related metricargument openstack metric status 403 error, though sourced admin-openrc.sh file before. tried both versions 2.0 , 3 api.
i thought adding admin user member , admin of service project in openstack solve problem, i'm still getting error.
i looked through apache logs involving gnocchi: - in /var/log/apache2/gnocchi.log there "client denied server configuration: /usr/local/bin/gnocchi-api" error, - in var/log/apache2/gnocchi-acces.log there 403 errors this:
10.0.3.29 - - [28/jul/2017:16:24:34 +0300] "post /v1/batch/resources/metrics/measures?create_metrics=true http/1.1" 403 501 "-" "ceilometer-agent-notification keystoneauth1/3.1.0 python-requests/2.18.2 cpython/2.7.12" 10.0.3.29 - - [28/jul/2017:16:24:34 +0300] "patch /v1/resource/image/bc130fad-36f6-48a5-852b-b78e41863d09 http/1.1" 403 520 "-" "ceilometer-agent-notification keystoneauth1/3.1.0 python-requests/2.18.2 cpython/2.7.12" is misconfigurations didn't notice?
if want more information, ask me.
thanks help.
based on answer q&a of openstack here:
following config /etc/apache2/sites-available/gnocchi.conf works fine @ moment:
listen 8041 <virtualhost *:8041> wsgidaemonprocess gnocchi lang='en_us.utf-8' locale='en_us.utf-8' user=stack display-name=%{group} processes=2 threads=32 wsgiprocessgroup gnocchi wsgiscriptalias / /usr/local/bin/gnocchi-api wsgiapplicationgroup %{global} <ifversion >= 2.4> errorlogformat "%{cu}t %m" </ifversion> <directory /> options followsymlinks allowoverride none <ifversion >= 2.4> require granted </ifversion> <ifversion < 2.4> order allow,deny allow </ifversion> </directory> errorlog /var/log/apache2/gnocchi.log customlog /var/log/apache2/gnocchi-access.log combined </virtualhost> wsgisocketprefix /var/run/apache2 after service apache2 restart output command gnocchi status following:
$ gnocchi status +-----------------------------------------------------+-------+ | field | value | +-----------------------------------------------------+-------+ | storage/number of metric having measures process | 0 | | storage/total number of measures process | 0 | +-----------------------------------------------------+-------+ not before:
$ gnocchi status <!doctype html public "-//ietf//dtd html 2.0//en"> <html><head> <title>403 forbidden</title> </head><body> <h1>forbidden</h1> <p>you don't have permission access /v1/status on server.<br /> </p> <hr> <address>apache/2.4.18 (ubuntu) server @ 10.92.76.44 port 8041</address> </body></html> (http 403)
Comments
Post a Comment