title: [DevStack][Ceilometer][Gnocchi] Error 403
body: <p>I am currently on an Openstack Project and I'm trying to use Ceilometer and Gnocchi. I've installed DevStack with the following lines in the <code>local.conf</code> file to install and configure Ceilometer and Gnocchi:</p>
  
  <pre><code>enable_plugin gnocchi https://github.com/gnocchixyz/gnocchi master
  enable_plugin ceilometer https://git.openstack.org/openstack/ceilometer
  enable_service gnocchi-grafana
  </code></pre>
  
  <p>The installation was successful, the Metric service has been created along with the ceilometer and gnocchi users. The <code>[keystone_authtoken]</code> sections of the Ceilometer and Gnocchi configuration files are apparently correctly set, I set Gnocchi as the meter dispatcher in the Ceilometer config file.</p>
  
  <p>But with commands related to the <code>metric</code>argument like <code>openstack metric status</code> I get a 403 error, though I sourced the <code>admin-openrc.sh</code> file before. I tried with both versions 2.0 and 3 API.</p>
  
  <p>I thought that adding the admin user as a member and admin of the <code>service</code> project in OpenStack would solve the problem, but I'm still getting the error.</p>
  
  <p>I looked through the Apache logs involving Gnocchi:
  - in <code>/var/log/apache2/gnocchi.log</code> there is the "client denied by server configuration: /usr/local/bin/gnocchi-api" error,
  - in <code>var/log/apache2/gnocchi-acces.log</code> there are 403 errors like this:</p>
  
  <pre><code>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"
  </code></pre>
  
  <p>Is it any misconfigurations I didn't notice?</p>
  
  <p>If you want any more information, just ask me.</p>
  
  <p>Thanks for your help.</p>