openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #24274
Re: Ceilometer-api Auth Error
Hi Guys
Sory to bother again. I've changed all the configuration from localhost to
the correct IP - address as Bruno guided me, and restarted all over agian.
id name enabled 68c5e7308a234d889d9591b51891a30a admin True
0b0318f87f384247ae8b658f844ed9a4 project_one True
0300e74768a8445aa268f20a9846a7c1 service True
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":
>
> "MIIOMwYJKoZIhvcNAQcCoIIOJDCCDiACAQExCTAHBgUrDgMCGjCCDQwGCSqGSIb3DQEHAaCCDP0Eggz5eyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAx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9XSwgIm5hbWUiOiAiY2VpbG9tZXRlciJ9LCAibWV0YWRhdGEiOiB7ImlzX2FkbWluIjogMCwgInJvbGVzIjogWyI5ZmUyZmY5ZWU0Mzg0YjE4OTRhOTA4NzhkM2U5MmJhYiJdfX19MYH-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:
>
>
> MIIOMwYJKoZIhvcNAQcCoIIOJDCCDiACAQExCTAHBgUrDgMCGjCCDQwGCSqGSIb3DQEHAaCCDP0Eggz5eyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wNi0wNlQxNjo0NjoyMC4wMDM5NjIiLCAiZXhwaXJlcyI6ICIyMDEzLTA2LTA3VDE2OjQ2OjE5WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIiIsICJlbmFibGVkIjogdH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BhMCVVMxDjAMBgNVBAgTBVVuc2V0MQ4wDAYDVQQHEwVVbnNldDEOMAwGA1UEChMFVW5zZXQxGDAWBgNVBAMTD3d3dy5leGFtcGxlLmNvbQIBATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASBgBmGby0RD8RVoS5VC5N-fbr-CCoqxfvUum7WX19FZNIXR871gGWSYXUa0hCsaluRpR2iG2qjcPpbAgwK10M0EPU8UenM5G7AqOHEoKJh25QC2gMp5ERXaMJLLqOuRSLS6p7WrTbD6R5nhFfJi4Kw2-N2KzyaIH1H--+13kjSFvJ2
>
>
> =======================================
> (4) Now you're good to go:
> =======================================
>
> curl -X GET -H 'X-Auth-Token:
>
> MIIOMwYJKoZIhvcNAQcCoIIOJDCCDiACAQExCTAHBgUrDgMCGjCCDQwGCSqGSIb3DQEHAaCCDP0Eggz5eyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wNi0wNlQxNjo0NjoyMC4wMDM5NjIiLCAiZXhwaXJlcyI6ICIyMDEzLTA2LTA3VDE2OjQ2OjE5WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIiIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogIjY3MGY1ZGQ0MDcwZDQ0YjZhODMwODI3N2EyMzZkMWFmIiwgIm5hbWUiOiAiYWRtaW4ifX0sICJzZXJ2aWNlQ2F0YWxvZyI6IFt7ImVuZHBvaW50cyI6IFt7ImFkbWluVVJMIjogImh0dHA6Ly8xNzcuNzAuMTA1LjEzNDo4Nzc0L3YyLzY3MGY1ZGQ0MDcwZDQ0YjZhODMwODI3N2EyMzZkMWFmIiwgInJlZ2lvbiI6ICJSZWdpb25PbmUiLCAiaW50ZXJuYWxVUkwiOiAiaHR0cDovLzE3Ny43MC4xMDUuMTM0Ojg3NzQvdjIvNjcwZjVkZDQwNzBkNDRiNmE4MzA4Mjc3YTIzNmQxYWYi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Tc3LjcwLjEwNS4xMzQ6MzUzNTcvdjIuMCIsICJyZWdpb24iOiAiUmVnaW9uT25lIiwgImludGVybmFsVVJMIjogImh0dHA6Ly8xNzcuNzAuMTA1LjEzNDo1MDAwL3YyLjAiLCAiaWQiOiAiMTA4NTY3MjM1YzZjNDM1ZGEyNGYxNzUzZmNmMDRhNGIiLCAicHVibGljVVJMIjogImh0dHA6Ly8xNzcuNzAuMTA1LjEzNDo1MDAwL3YyLjAifV0sICJlbmRwb2ludHNfbGlua3MiOiBbXSwgInR5cGUiOiAiaWRlbnRpdHkiLCAibmFtZSI6ICJrZXlzdG9uZSJ9XSwgInVzZXIiOiB7InVzZXJuYW1lIjogImNlaWxvbWV0ZXIiLCAicm9sZXNfbGlua3MiOiBbXSwgImlkIjogImE5OGVjMDY4ZjVmMzQ5NDM5YWNlZjQzMWU4MjZkN2ZmIiwgInJvbGVzIjogW3sibmFtZSI6ICJfbWVtYmVyXyJ9XSwgIm5hbWUiOiAiY2VpbG9tZXRlciJ9LCAibWV0YWRhdGEiOiB7ImlzX2FkbWluIjogMCwgInJvbGVzIjogWyI5ZmUyZmY5ZWU0Mzg0YjE4OTRhOTA4NzhkM2U5MmJhYiJdfX19MYH-MIH8AgEBMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgTBVVuc2V0MQ4wDAYDVQQHEwVVbnNldDEOMAwGA1UEChMFVW5zZXQxGDAWBgNVBAMTD3d3dy5leGFtcGxlLmNvbQIBATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASBgBmGby0RD8RVoS5VC5N-fbr-CCoqxfvUum7WX19FZNIXR871gGWSYXUa0hCsaluRpR2iG2qjcPpbAgwK10M0EPU8UenM5G7AqOHEoKJh25QC2gMp5ERXaMJLLqOuRSLS6p7WrTbD6R5nhFfJi4Kw2-N2KzyaIH1H--+13kjSFvJ2'
> 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
> >
>
References