← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1634568] Re: Inconsistency between v3 API and keystone token timestamps

 

this looks OK to me now...

stevemar@ubuntu:/opt/stack$ source ~/devstack/openrc admin admin
WARNING: setting legacy OS_TENANT_NAME to support cli tools.
<<this sets the auth and version to 3>>

stevemar@ubuntu:/opt/stack$ openstack token issue
+------------+-----------------------------------+
| Field      | Value          
+------------+-----------------------------------+
| expires    | 2016-12-13T15:33:12+0000
| id         | gAAAAABYvnjb554MXv4_MMDN7d6JAQ
| project_id | e8228d4835664159abdcaeb4bf8a26ac
| user_id    | 08bdbf92b87d47469aa40d4b10217f40
+------------+-----------------------------------+

stevemar@ubuntu:/opt/stack$ openstack token issue --os-identity-api-
version 2 --os-auth-url http://172.16.240.201:5000/v2.0

Ignoring domain related config project_domain_id because identity API version is 2.0
Ignoring domain related config user_domain_id because identity API version is 2.0
Ignoring domain related config project_domain_id because identity API version is 2.0
Ignoring domain related config user_domain_id because identity API version is 2.0
Ignoring domain related config project_domain_id because identity API version is 2.0
Ignoring domain related config user_domain_id because identity API version is 2.0

+------------+---------------------------------
| Field      | Value               
+------------+---------------------------------
| expires    | 2016-12-13T15:33:50+0000
| id         | oz1E2HQwVIJqhdz9D703gvFJTbM
| project_id | e8228d4835664159abdcaeb4bf8a26ac
| user_id    | 08bdbf92b87d47469aa40d4b10217f40
+------------+---------------------------------

** Changed in: keystone
       Status: In Progress => Invalid

** Changed in: keystone
     Assignee: Lance Bragstad (lbragstad) => (unassigned)

** Changed in: keystone
   Importance: High => Undecided

** Changed in: keystone
    Milestone: ocata-2 => None

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1634568

Title:
  Inconsistency between v3 API and keystone token timestamps

Status in OpenStack Identity (keystone):
  Invalid

Bug description:
  The v3 API spec for tokens documents the format of timestamps[1]. It
  says the format is like "CCYY-MM-DDThh:mm:ss±hh:mm".

  By this, the timestamps returned by keystone should be like
  2016-10-17T15:17:03+00:00. But they actually show up like this:

  V3:
  "issued_at": "2016-10-17T15:17:03.000000Z",
  "expires_at": "2016-10-17T16:17:03.000000Z",

  V2:
  "issued_at": "2016-10-17T15:17:56.000000Z",
  "expires": "2016-10-17T16:17:56Z",

  Tempest has checks that the timestamp ends in Z.

  [1] http://developer.openstack.org/api-ref/identity/v3/?expanded
  =validate-and-show-information-for-token-detail#id19

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1634568/+subscriptions


References