[openstack-dev] [Ceilometer] Token's project (tenant) not passed to API layer (v2.py) from auth_token.py
Julien Danjou
julien at danjou.info
Tue Sep 24 08:16:02 UTC 2013
On Tue, Sep 24 2013, Pendergrass, Eric wrote:
> Hi, I'm struggling with a problem related to tokens. I have one token for
> which the project ID gets passed to v2.MeterController.get_all() in the
> kwargs:
>
>
>
> (Pdb) kwargs
>
> {'project': u'10032339952700', 'meter': u'network.outgoing.bytes'}
project_id you meant?
> As far as I can tell the token data is roughly the same, except for the
> details about the tenant. I'm stepping through the auth_token code trying
> to find the cause.
You rather want to audit ceilometer.api.controllers.v2._query_to_kwargs
which adds the project a user is scoped to if he's not an admin.
I guess that's the difference between your 2 users/tokens.
--
Julien Danjou
/* Free Software hacker * independent consultant
http://julien.danjou.info */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130924/aee92c47/attachment.pgp>
More information about the OpenStack-dev
mailing list