<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 6, 2013 at 7:22 AM, Claudio Marques <span dir="ltr"><<a href="mailto:claudio@onesource.pt" target="_blank">claudio@onesource.pt</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Stackers<div><br></div><div><br></div><div>Hi have a problem with ceilometer-api. I want access it via curl or http and every time i try to do it i simple get the same errors. </div>
<div><br></div><div>This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.<br>

</div><div><br></div><div>My ceilometer.conf file is like this:</div><div><br></div><div><div>[DEFAULT]</div><div>os_username=admin</div><div>os_password=admin_pass</div><div>os_tenant_name=admin</div><div>
os_auth_url=<a href="http://10.0.1.167:5000/v2.0/" target="_blank">http://10.0.1.167:5000/v2.0/</a></div><div>signing_dirname = /tmp/keystone-signing-ceilometer</div><div>metering_api_port=8777</div><div>auth_strategy=keystone</div>
<div>
nova_control_exchange=nova</div><div>hypervisor_inspector=libvirt</div><div>libvirt_type=qemu</div><div>glance_control_exchange=glance</div><div>quantum_control_exchange=quantum</div><div>debug=true</div><div>verbose=true</div>

<div><br></div><div>log_dir=/var/log/ceilometer</div><div>rpc_backend=ceilometer.openstack.common.rpc.impl_kombu</div><div>rabbit_host=localhost</div><div>rabbit_port=5672</div><div>rabbit_userid=guest</div><div>rabbit_password=guest</div>

<div>rabbit_retry_backoff=2</div><div>rabbit_max_retries=0</div><div>rabbit_use_ssl=False</div><div><br></div><div>database_connection=mongodb://<a href="http://10.0.1.25:27017/ceilometer" target="_blank">10.0.1.25:27017/ceilometer</a></div>

<div>sql_connection_debug=0</div><div>cinder_control_exchange=cinder</div><div>enable_v1_api=true</div><div><br></div><div>[keystone_authtoken]</div><div><br></div><div>auth_host = localhost</div><div>auth_port = 5000</div>

<div>admin_user = admin</div><div>admin_password = admin_pass</div><div>admin_tenant_name = admin</div><div>auth_uri = <a href="http://10.0.1.167:5000/v2.0/" target="_blank">http://10.0.1.167:5000/v2.0/</a></div><div><br>
</div></div><div>
What auth chould i pass in order to get metrics form ceilometer?</div></div></blockquote><div><br></div><div style>The ceilometer API uses keystone authentication, just like the other OpenStack services. If you pass credentials for a regular user, you can see data about the tenant/project you're authenticating with. If you pass credentials for an admin user, you can see all data.</div>
<div style><br></div><div style>Doug</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Thank's for any reply</div>
<div><br><div><div><div dir="ltr"><div><br></div></div></div>
<div dir="ltr"><br></div></div></div></div>
<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br></div></div>