← Back to team overview

openstack team mailing list archive

Re: Ceilometer-api Auth Error

 

Hi guys
(Sorry about the previous e-mail - I have sent it by mistake)

I've changed all the configuration from localhost to the correct ip_addr -
as Bruno guided me, and started all over again.

Here's the output of all the tenants I have in OpenStack:

keystone tenant-list
+----------------------------------+-------------+---------+
|                id                |     name    | enabled |
+----------------------------------+-------------+---------+
| 68c5e7308a234d889d9591b51891a30a |    admin    |   True  |
| 0b0318f87f384247ae8b658f844ed9a4 | project_one |   True  |
| 0300e74768a8445aa268f20a9846a7c1 |   service   |   True  |
+----------------------------------+-------------+---------+

I have created the ceilometer user in the keystone with the following
command:

keystone user-create --name=ceilometer --pass=ceilometer_pass --tenant-id
68c5e7308a234d889d9591b51891a30a --email=ceilometer@xxxxxxxxxx

Just to check if everything was ok:

keystone user-get ceilometer
+----------+----------------------------------+
| Property |              Value               |
+----------+----------------------------------+
|  email   |      ceilometer@xxxxxxxxxx       |
| enabled  |               True               |
 |    id    | a47c062e52f4407baf19db1a8613f5bf |
|   name   |            ceilometer            |
| tenantId | 68c5e7308a234d889d9591b51891a30a |
+----------+----------------------------------+

Then I created a service for ceilometer:

keystone service-create --name=ceilometer -–type=metering
-–description=”Ceilometer Service”

And then i createted an Endpoint in Keystone for ceilometer by using the
following command:

keystone endpoint-create --region RegionOne --service_id
 22881e9089b342a58bde91712f090c6b --publicurl "http://10.0.1.167:8777/";
--adminurl "http://10.10.10.53:8777/"; --internalurl "
http://10.10.10.53:8777/";

Cheking the endpoint list I get:

keystone endpoint-list
+----------------------------------+-----------+-----------------------------------------+------------------------------------------+------------------------------------------+----------------------------------+
|                id                |   region  |                publicurl
             |               internalurl                |
adminurl                 |            service_id            |
+----------------------------------+-----------+-----------------------------------------+------------------------------------------+------------------------------------------+----------------------------------+
| 4375fcf13fb843f497ae01a186e95098 | RegionOne |
http://10.0.1.167:8776/v1/$(tenant_id)s |
http://10.10.10.51:8776/v1/$(tenant_id)s |
http://10.10.10.51:8776/v1/$(tenant_id)s | a2a9c0733d124d2389c58cec06e24eae
|
| 5a37d2960f094677b3068f7b112addef | RegionOne |
http://10.0.1.167:9696/         |         http://10.10.10.51:9696/
|         http://10.10.10.51:9696/         |
9fe761c9d83647f2953b5fbe037aa548 |
| 5cf12f7972de48e2bf342a3c961334d3 | RegionOne |
http://10.0.1.167:5000/v2.0       |       http://10.10.10.51:5000/v2.0
  |      http://10.10.10.51:35357/v2.0       |
e50dff43e6184d15a3764fc220a7272a |
| 9a8b00e0065643d4b100de944d7a30b0 | RegionOne |
http://10.0.1.167:8773/services/Cloud  |
http://10.10.10.51:8773/services/Cloud  |
http://10.10.10.51:8773/services/Admin  | 0908f8a92c2e406b9f99839d9d8076c2 |
| c85f6c95b5804d88a728f69cb1e125c5 | RegionOne |
http://10.0.1.167:9292/v2        |        http://10.10.10.51:9292/v2
 |        http://10.10.10.51:9292/v2        |
fc70a5946d2c4fadb36ce14461c2a7a0 |
| ea7d0c2d4d8d4f37b6f505994a30a7ea | RegionOne |
http://10.0.1.167:8777/         |         http://10.10.10.51:8777/
|         http://10.10.10.51:8777/         |
22881e9089b342a58bde91712f090c6b |
| f4543edef18d4a42a22a2d566bca72d2 | RegionOne |
http://10.0.1.167:8774/v2/$(tenant_id)s |
http://10.10.10.51:8774/v2/$(tenant_id)s |
http://10.10.10.51:8774/v2/$(tenant_id)s | 0d780e90409e45ceaa870f5c0b16d6a6
|
+----------------------------------+-----------+-----------------------------------------+------------------------------------------+------------------------------------------+----------------------------------+



My credentials in OpenStack are

user: ceilometer
password: ceilometer_pass
tenantid: 68c5e7308a234d889d9591b51891a30a
tenantName: admin

I have attached my ceilometer.conf file in case any of you doesn't mind to
double check it.

After having configured everything, I simply asked for a valid token using
the procedures recommended:

curl -X 'POST' -v http://localhost:5000/v2.0/tokens -d
'{"auth":{"passwordCredentials":{"username": "ceilometer",
"password":"ceilometer_pass"},
"tenantId":"68c5e7308a234d889d9591b51891a30a"}}' -H 'Content-type:
application/json' | python -mjson.tool > out.txt

The output of this command seems ok and it is attached as out.txt

Afterwards I used the token provided by the output of the previous command
and used curl again as shown next:

curl -X GET -H
'X-Auth-Token:MIILcgYJKoZIhvcNAQcCoIILYzCCC18CAQExCTAHBgUrDgMCGjCCCksGCSqGSIb3DQEHAaCCCjwEggo4eyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wNi0wN1QxMDo0OToyNS4xODc4MTgiLCAiZXhwaXJlcyI6ICIyMDEzLTA2LTA4VDEwOjQ5OjI1WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogbnVsbCwgImVuYWJsZWQiOiB0cnVlLCAiaWQiOiAiNjhjNWU3MzA4YTIzNGQ4ODlkOTU5MWI1MTg5MWEzMGEiLCAibmFtZSI6ICJhZG1pbiJ9fSwgInNlcnZpY2VDYXRhbG9nIjogW3siZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovLzEwLjEwLjEwLjUxOjg3NzQvdjIvNjhjNWU3MzA4YTIzNGQ4ODlkOTU5MWI1MTg5MWEzMGEiLCAicmVnaW9uIjogIlJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vMTAuMTAuMTAuNTE6ODc3NC92Mi82OGM1ZTczMDhhMjM0ZDg4OWQ5NTkxYjUxODkxYTMwYSIsICJpZCI6ICI2NzIxMjhkZmYwZGQ0YmQ4OGZhMDM5M2M4YzRjYzI5ZSIsICJwdWJsaWNVUkwiOiAiaHR0cDovLzEwLjAuMS4xNjc6ODc3NC92Mi82OGM1ZTczMDhhMjM0ZDg4OWQ5NTkxYjUxODkxYTMwYSJ9XSwgImVuZHBvaW50c19saW5rcyI6IFtdLCAidHlwZSI6ICJjb21wdXRlIiwgIm5hbWUiOiAibm92YSJ9LCB7ImVuZHBvaW50cyI6IFt7ImFkbWluVVJMIjogImh0dHA6Ly8xMC4xMC4xMC41MTo5Njk2LyIsICJyZWdpb24iOiA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MTAuMC4xLjE2Nzo1MDAwL3YyLjAifV0sICJlbmRwb2ludHNfbGlua3MiOiBbXSwgInR5cGUiOiAiaWRlbnRpdHkiLCAibmFtZSI6ICJrZXlzdG9uZSJ9XSwgInVzZXIiOiB7InVzZXJuYW1lIjogImNlaWxvbWV0ZXIiLCAicm9sZXNfbGlua3MiOiBbXSwgImlkIjogImE0N2MwNjJlNTJmNDQwN2JhZjE5ZGIxYTg2MTNmNWJmIiwgInJvbGVzIjogW3sibmFtZSI6ICJfbWVtYmVyXyJ9XSwgIm5hbWUiOiAiY2VpbG9tZXRlciJ9LCAibWV0YWRhdGEiOiB7ImlzX2FkbWluIjogMCwgInJvbGVzIjogWyI5ZmUyZmY5ZWU0Mzg0YjE4OTRhOTA4NzhkM2U5MmJhYiJdfX19MYH-MIH8AgEBMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgTBVVuc2V0MQ4wDAYDVQQHEwVVbnNldDEOMAwGA1UEChMFVW5zZXQxGDAWBgNVBAMTD3d3dy5leGFtcGxlLmNvbQIBATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASBgAAsCdub4ER-5FAmdWSjH8-QPt5r8YCv5xI9QaPnJrCug4+5fP5KUyfEbMkFADpLHkD3r82AMT2OPXIfsGeMgBTOc5wyyvAA5ZMuYUt2F5+K3VcD-MRAyFI0atsUQxpkkI3o7jsx5hgKJD9QSEDEnHWDfBnBaiSC-fs7ZBxlJagu'
"http://localhost:8777/v2/resources";

Despite everything, the response is still the same :(

<html>
 <head>
  <title>401 Unauthorized</title>
 </head>
 <body>
  <h1>401 Unauthorized</h1>
  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 /><br />
Authentication required
</body>
</html>

I am really thankful for all your help and sorry for the looooong email
(just want to make sure you have all the info you need).

Thank you in advance,

Claudio Marques


claudio@xxxxxxxxxxxx
http://www.onesource.pt/


2013/6/6 Bruno Oliveira <brunnop.oliveira@xxxxxxxxx>

> Working with ceilometer-keystone-auth can be tricky...
> I had the same issue before, so here's the deal to get past it.
>
> I'm taking that:
>
> A. you're curl' ing within the same server where ceilometer-api is running,
> so where you see "localhost", change for the hostname or ip_addr
> of the proper ceilometer-api host
>
> B. That you have already setup/created a user, service and endpoint for it
>
> ================================
> (1) *First things first, for my credentials they are:
> ================================
>
> >> user: ceilometer
> >> password: SECRET
> >> tenantid: 670f5dd4070d44b6a8308277a236d1af
> >> tenantName: admin
>
>  +----------+----------------------------------+
> | Property |              Value               |
> +----------+----------------------------------+
> |  email   |      ceilometer@xxxxxxxxxxx      |
> | enabled  |               True               |
> |    id    | a98ec068f5f349439acef431e826d7ff |
> |   name   |            ceilometer            |
> | tenantId | 670f5dd4070d44b6a8308277a236d1af |
> +----------+----------------------------------+
>
>
> ================================
> (2) Curl to get a valid token:
> ================================
>
> $ curl -X 'POST' -v http://localhost:5000/v2.0/tokens -d
> '{"auth":{"passwordCredentials":{"username": "ceilometer",
> "password":"SECRET"}, "tenantId":"670f5dd4070d44b6a8308277a236d1af"}}'
> -H 'Content-type: application/json' | python -mjson.tool
>
>
> Optionally you can use "tenantName" instead of "tenantId"
>
>
> $ curl -X 'POST' -v http://localhost:5000/v2.0/tokens -d
> '{"auth":{"passwordCredentials":{"username": "ceilometer",
> "password":"SECRET"}, "tenantName":"admin"}}' -H 'Content-type:
> application/json'  | python -mjson.tool
>
>
> NOTE1: notice that the curl you did to get credentials is, afaik, no
> longer valid for v2.0;
> Now you also got to tell the "tenantId" or the "tenantName";
>
> NOTE2:  python mjson.tool is just for the sake of having something
> legible in your terminal
>
>
> Your output should be something pretty big:
>
> ========BEGIN OF CURL AUTH RETURN =========
>
> {
>     "access": {
>         "metadata": {
>             "is_admin": 0,
>             "roles": [
>                 "9fe2ff9ee4384b1894a90878d3e92bab"
>             ]
>         },
>         "serviceCatalog": [
>             {
>                 "endpoints": [
>                     {
>                         "adminURL":
> "http://177.x.y.z:8774/v2/670f5dd4070d44b6a8308277a236d1af";,
>                         "id": "9856d6387e1341668894d3de0648c4dc",
>                         "internalURL":
> "http://177.x.y.z:8774/v2/670f5dd4070d44b6a8308277a236d1af";,
>                         "publicURL":
> "http://177.x.y.z:8774/v2/670f5dd4070d44b6a8308277a236d1af";,
>                         "region": "RegionOne"
>                     }
>                 ],
>                 "endpoints_links": [],
>                 "name": "nova",
>                 "type": "compute"
>             },
>             {
>                 "endpoints": [
>                     {
>                         "adminURL": "http://177.x.y.z:9696/";,
>                         "id": "36d7fd2574914214a1ccdd134733e398",
>                         "internalURL": "http://177.x.y.z:9696/";,
>                         "publicURL": "http://177.x.y.z:9696/";,
>                         "region": "RegionOne"
>                     }
>                 ],
>                 "endpoints_links": [],
>                 "name": "quantum",
>                 "type": "network"
>             },
>             {
>                 "endpoints": [
>                     {
>                         "adminURL": "http://177.x.y.z:3333";,
>                         "id": "3f65aa3dc4b24ebdb55cd3c4f39430d0",
>                         "internalURL": "http://177.x.y.z:3333";,
>                         "publicURL": "http://177.x.y.z:3333";,
>                         "region": "RegionOne"
>                     }
>                 ],
>                 "endpoints_links": [],
>                 "name": "s3",
>                 "type": "s3"
>             },
>             {
>                 "endpoints": [
>                     {
>                         "adminURL": "http://177.x.y.z:9292";,
>                         "id": "72637289af824206893f9f536133bd95",
>                         "internalURL": "http://177.x.y.z:9292";,
>                         "publicURL": "http://177.x.y.z:9292";,
>                         "region": "RegionOne"
>                     }
>                 ],
>                 "endpoints_links": [],
>                 "name": "glance",
>                 "type": "image"
>             },
>             {
>                 "endpoints": [
>                     {
>                         "adminURL": "http:// http://177.x.y.z:8777";,
>                         "id": "40e18f4dedb9446888a1cc32654f9878",
>                         "internalURL": "http:// http://177.x.y.z:8777";,
>                         "publicURL": "http:// http://177.x.y.z:8777";,
>                         "region": "RegionOne"
>                     }
>                 ],
>                 "endpoints_links": [],
>                 "name": "ceilometer",
>                 "type": "metering"
>             },
>             {
>                 "endpoints": [
>                     {
>                         "adminURL":
> "http://177.x.y.z:8776/v1/670f5dd4070d44b6a8308277a236d1af";,
>                         "id": "587f31274f184bda9af3969acc8fbe31",
>                         "internalURL":
> "http://177.x.y.z:8776/v1/670f5dd4070d44b6a8308277a236d1af";,
>                         "publicURL":
> "http://177.x.y.z:8776/v1/670f5dd4070d44b6a8308277a236d1af";,
>                         "region": "RegionOne"
>                     }
>                 ],
>                 "endpoints_links": [],
>                 "name": "cinder",
>                 "type": "volume"
>             },
>             {
>                 "endpoints": [
>                     {
>                         "adminURL": "http://177.x.y.z:8773/services/Admin
> ",
>                         "id": "6745d07e501f4b24a7f77fe020ab56a3",
>                         "internalURL": "
> http://177.x.y.z:8773/services/Cloud";,
>                         "publicURL": "http://177.x.y.z:8773/services/Cloud
> ",
>                         "region": "RegionOne"
>                     }
>                 ],
>                 "endpoints_links": [],
>                 "name": "ec2",
>                 "type": "ec2"
>             },
>             {
>                 "endpoints": [
>                     {
>                         "adminURL": "http://177.x.y.z:8080";,
>                         "id": "3d70fbc33a574398a9edf5e4ca8973f6",
>                         "internalURL":
> "http://177.x.y.z:8080/v1/AUTH_670f5dd4070d44b6a8308277a236d1af";,
>                         "publicURL":
> "http://177.x.y.z:8080/v1/AUTH_670f5dd4070d44b6a8308277a236d1af";,
>                         "region": "RegionOne"
>                     }
>                 ],
>                 "endpoints_links": [],
>                 "name": "swift",
>                 "type": "object-store"
>             },
>             {
>                 "endpoints": [
>                     {
>                         "adminURL": "http://177.x.y.z:35357/v2.0";,
>                         "id": "108567235c6c435da24f1753fcf04a4b",
>                         "internalURL": "http://177.x.y.z:5000/v2.0";,
>                         "publicURL": "http://177.x.y.z:5000/v2.0";,
>                         "region": "RegionOne"
>                     }
>                 ],
>                 "endpoints_links": [],
>                 "name": "keystone",
>                 "type": "identity"
>             }
>         ],
>         "token": {
>             "expires": "2013-06-07T16:46:19Z",
>             "id":
>
> "MIIOMwYJKoZIhvcNAQcCoIIOJDCCDiACAQExCTAHBgUrDgMCGjCCDQwGCSqGSIb3DQEHAaCCDP0Eggz5eyJhY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kN2ZmIiwgInJvbGVzIjogW3sibmFtZSI6ICJfbWVtYmVyXyJ9XSwgIm5hbWUiOiAiY2VpbG9tZXRlciJ9LCAibWV0YWRhdGEiOiB7ImlzX2FkbWluIjogMCwgInJvbGVzIjogWyI5ZmUyZmY5ZWU0Mzg0YjE4OTRhOTA4NzhkM2U5MmJhYiJdfX19MYH-MIH8AgEBMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgTBVVuc2V0MQ4wDAYDVQQHEwVVbnNldDEOMAwGA1UEChMFVW5zZXQxGDAWBgNVBAMTD3d3dy5leGFtcGxlLmNvbQIBATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASBgBmGby0RD8RVoS5VC5N-fbr-CCoqxfvUum7WX19FZNIXR871gGWSYXUa0hCsaluRpR2iG2qjcPpbAgwK10M0EPU8UenM5G7AqOHEoKJh25QC2gMp5ERXaMJLLqOuRSLS6p7WrTbD6R5nhFfJi4Kw2-N2KzyaIH1H--+13kjSFvJ2",
>             "issued_at": "2013-06-06T16:46:20.003962",
>             "tenant": {
>                 "description": "",
>                 "enabled": true,
>                 "id": "670f5dd4070d44b6a8308277a236d1af",
>                 "name": "admin"
>             }
>         },
>         "user": {
>             "id": "a98ec068f5f349439acef431e826d7ff",
>             "name": "ceilometer",
>             "roles": [
>                 {
>                     "name": "_member_"
>                 }
>             ],
>             "roles_links": [],
>             "username": "ceilometer"
>         }
>     }
> }
>
> ========END OF CURL AUTH RETURN =========
>
>
> =======================================
> (3) If you got it up to this far, get the value in [token][id].
> =======================================
>
>     In my case:
>
>
> MIIOMwYJKoZIhvcNAQcCoIIOJDCCDiACAQExCTAHBgUrDgMCGjCCDQwGCSqGSIb3DQEHAaCCDP0Eggz5eyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wNi0wNlQxNjo0NjoyMC4wMDM5NjIiLCAiZXhwaXJlcyI6ICIyMDEzLTA2LTA3VDE2OjQ2OjE5WiIsICJpZCI6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UyZmY5ZWU0Mzg0YjE4OTRhOTA4NzhkM2U5MmJhYiJdfX19MYH-MIH8AgEBMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgTBVVuc2V0MQ4wDAYDVQQHEwVVbnNldDEOMAwGA1UEChMFVW5zZXQxGDAWBgNVBAMTD3d3dy5leGFtcGxlLmNvbQIBATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASBgBmGby0RD8RVoS5VC5N-fbr-CCoqxfvUum7WX19FZNIXR871gGWSYXUa0hCsaluRpR2iG2qjcPpbAgwK10M0EPU8UenM5G7AqOHEoKJh25QC2gMp5ERXaMJLLqOuRSLS6p7WrTbD6R5nhFfJi4Kw2-N2KzyaIH1H--+13kjSFvJ2
>
>
> =======================================
> (4) Now you're good to go:
> =======================================
>
> curl -X GET -H 'X-Auth-Token:
>
> MIIOMwYJKoZIhvcNAQcCoIIOJDCCDiACAQExCTAHBgUrDgMCGjCCDQwGCSqGSIb3DQEHAaCCDP0Eggz5eyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wNi0wNlQxNjo0NjoyMC4wMDM5NjIiLCAiZXhwaXJlcyI6ICIyMDEzLTA2LTA3VDE2OjQ2OjE5WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIiIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogIjY3MGY1ZGQ0MDcwZDQ0YjZhODMwODI3N2EyMzZkMWFmIiwgIm5hbWUiOiAiYWRtaW4ifX0sICJzZXJ2aWNlQ2F0YWxvZyI6IFt7ImVuZHBvaW50cyI6IFt7ImFkbWluVVJMIjogImh0dHA6Ly8xNzcuNzAuMTA1LjEzNDo4Nzc0L3YyLzY3MGY1ZGQ0MDcwZDQ0YjZhODMwODI3N2EyMzZkMWFmIiwgInJlZ2lvbiI6ICJSZWdpb25PbmUiLCAiaW50ZXJuYWxVUkwiOiAiaHR0cDovLzE3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2'
>  http://localhost:8777/v2/resources | python -mjson.tool
>
>
> That will return what you're looking for...
>
> Hope it helps to guide you through.
> --
>
> Bruno Oliveira
> Developer, Software Engineer
> +55 11 9-6193-3987
> skype: brunnop.oliveira
> brunnop.oliveira@xxxxxxxxx
>
>
>
>
>
> On Thu, Jun 6, 2013 at 10:42 AM, Doug Hellmann
> <doug.hellmann@xxxxxxxxxxxxx> wrote:
> >
> >
> >
> > On Thu, Jun 6, 2013 at 7:22 AM, Claudio Marques <claudio@xxxxxxxxxxxx>
> > wrote:
> >>
> >> Hi Stackers
> >>
> >>
> >> 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.
> >>
> >> 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.
> >>
> >> My ceilometer.conf file is like this:
> >>
> >> [DEFAULT]
> >> os_username=admin
> >> os_password=admin_pass
> >> os_tenant_name=admin
> >> os_auth_url=http://10.0.1.167:5000/v2.0/
> >> signing_dirname = /tmp/keystone-signing-ceilometer
> >> metering_api_port=8777
> >> auth_strategy=keystone
> >> nova_control_exchange=nova
> >> hypervisor_inspector=libvirt
> >> libvirt_type=qemu
> >> glance_control_exchange=glance
> >> quantum_control_exchange=quantum
> >> debug=true
> >> verbose=true
> >>
> >> log_dir=/var/log/ceilometer
> >> rpc_backend=ceilometer.openstack.common.rpc.impl_kombu
> >> rabbit_host=localhost
> >> rabbit_port=5672
> >> rabbit_userid=guest
> >> rabbit_password=guest
> >> rabbit_retry_backoff=2
> >> rabbit_max_retries=0
> >> rabbit_use_ssl=False
> >>
> >> database_connection=mongodb://10.0.1.25:27017/ceilometer
> >> sql_connection_debug=0
> >> cinder_control_exchange=cinder
> >> enable_v1_api=true
> >>
> >> [keystone_authtoken]
> >>
> >> auth_host = localhost
> >> auth_port = 5000
> >> admin_user = admin
> >> admin_password = admin_pass
> >> admin_tenant_name = admin
> >> auth_uri = http://10.0.1.167:5000/v2.0/
> >>
> >> What auth chould i pass in order to get metrics form ceilometer?
> >
> >
> > 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.
> >
> > Doug
> >
> >>
> >>
> >> Thank's for any reply
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> Mailing list: https://launchpad.net/~openstack
> >> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> >> Unsubscribe : https://launchpad.net/~openstack
> >> More help   : https://help.launchpad.net/ListHelp
> >>
> >
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~openstack
> > Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~openstack
> > More help   : https://help.launchpad.net/ListHelp
> >
>
{
    "access": {
        "metadata": {
            "is_admin": 0,
            "roles": [
                "9fe2ff9ee4384b1894a90878d3e92bab"
            ]
        },
        "serviceCatalog": [
            {
                "endpoints": [
                    {
                        "adminURL": "http://10.10.10.51:8774/v2/68c5e7308a234d889d9591b51891a30a";,
                        "id": "672128dff0dd4bd88fa0393c8c4cc29e",
                        "internalURL": "http://10.10.10.51:8774/v2/68c5e7308a234d889d9591b51891a30a";,
                        "publicURL": "http://10.0.1.167:8774/v2/68c5e7308a234d889d9591b51891a30a";,
                        "region": "RegionOne"
                    }
                ],
                "endpoints_links": [],
                "name": "nova",
                "type": "compute"
            },
            {
                "endpoints": [
                    {
                        "adminURL": "http://10.10.10.51:9696/";,
                        "id": "9330667c9dac4aedb81227f7a542d990",
                        "internalURL": "http://10.10.10.51:9696/";,
                        "publicURL": "http://10.0.1.167:9696/";,
                        "region": "RegionOne"
                    }
                ],
                "endpoints_links": [],
                "name": "quantum",
                "type": "network"
            },
            {
                "endpoints": [
                    {
                        "adminURL": "http://10.10.10.51:9292/v2";,
                        "id": "2dcdae25baa24f5296c33e124f280293",
                        "internalURL": "http://10.10.10.51:9292/v2";,
                        "publicURL": "http://10.0.1.167:9292/v2";,
                        "region": "RegionOne"
                    }
                ],
                "endpoints_links": [],
                "name": "glance",
                "type": "image"
            },
            {
                "endpoints": [
                    {
                        "adminURL": "http://10.10.10.51:8777/";,
                        "id": "08589c45d20c4d28ae5fbc0a096f92c7",
                        "internalURL": "http://10.10.10.51:8777/";,
                        "publicURL": "http://10.0.1.167:8777/";,
                        "region": "RegionOne"
                    }
                ],
                "endpoints_links": [],
                "name": "ceilometer",
                "type": "metering"
            },
            {
                "endpoints": [
                    {
                        "adminURL": "http://10.10.10.51:8776/v1/68c5e7308a234d889d9591b51891a30a";,
                        "id": "2f1b50312aa94befa122390ec6cd3ac0",
                        "internalURL": "http://10.10.10.51:8776/v1/68c5e7308a234d889d9591b51891a30a";,
                        "publicURL": "http://10.0.1.167:8776/v1/68c5e7308a234d889d9591b51891a30a";,
                        "region": "RegionOne"
                    }
                ],
                "endpoints_links": [],
                "name": "cinder",
                "type": "volume"
            },
            {
                "endpoints": [
                    {
                        "adminURL": "http://10.10.10.51:8773/services/Admin";,
                        "id": "19e2af7ad7e148bf8b04188f06202d4b",
                        "internalURL": "http://10.10.10.51:8773/services/Cloud";,
                        "publicURL": "http://10.0.1.167:8773/services/Cloud";,
                        "region": "RegionOne"
                    }
                ],
                "endpoints_links": [],
                "name": "ec2",
                "type": "ec2"
            },
            {
                "endpoints": [
                    {
                        "adminURL": "http://10.10.10.51:35357/v2.0";,
                        "id": "2c8c7e1d00424328909c3b15f3b2c893",
                        "internalURL": "http://10.10.10.51:5000/v2.0";,
                        "publicURL": "http://10.0.1.167:5000/v2.0";,
                        "region": "RegionOne"
                    }
                ],
                "endpoints_links": [],
                "name": "keystone",
                "type": "identity"
            }
        ],
        "token": {
            "expires": "2013-06-08T10:49:25Z",
            "id": "MIILcgYJKoZIhvcNAQcCoIILYzCCC18CAQExCTAHBgUrDgMCGjCCCksGCSqGSIb3DQEHAaCCCjwEggo4eyJhY2Nlc3MiOiB7InRva2VuIjogeyJp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sZXNfbGlua3MiOiBbXSwgImlkIjogImE0N2MwNjJlNTJmNDQwN2JhZjE5ZGIxYTg2MTNmNWJmIiwgInJvbGVzIjogW3sibmFtZSI6ICJfbWVtYmVyXyJ9XSwgIm5hbWUiOiAiY2VpbG9tZXRlciJ9LCAibWV0YWRhdGEiOiB7ImlzX2FkbWluIjogMCwgInJvbGVzIjogWyI5ZmUyZmY5ZWU0Mzg0YjE4OTRhOTA4NzhkM2U5MmJhYiJdfX19MYH-MIH8AgEBMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgTBVVuc2V0MQ4wDAYDVQQHEwVVbnNldDEOMAwGA1UEChMFVW5zZXQxGDAWBgNVBAMTD3d3dy5leGFtcGxlLmNvbQIBATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASBgAAsCdub4ER-5FAmdWSjH8-QPt5r8YCv5xI9QaPnJrCug4+5fP5KUyfEbMkFADpLHkD3r82AMT2OPXIfsGeMgBTOc5wyyvAA5ZMuYUt2F5+K3VcD-MRAyFI0atsUQxpkkI3o7jsx5hgKJD9QSEDEnHWDfBnBaiSC-fs7ZBxlJagu",
            "issued_at": "2013-06-07T10:49:25.187818",
            "tenant": {
                "description": null,
                "enabled": true,
                "id": "68c5e7308a234d889d9591b51891a30a",
                "name": "admin"
            }
        },
        "user": {
            "id": "a47c062e52f4407baf19db1a8613f5bf",
            "name": "ceilometer",
            "roles": [
                {
                    "name": "_member_"
                }
            ],
            "roles_links": [],
            "username": "ceilometer"
        }
    }
}

Attachment: ceilometer.conf
Description: Binary data


Follow ups

References