← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1246383] Re: Trusts expires_at field is rounded down, doesn't match docs

 

unassigning, there really isn't much work for keystone here... as dolph
mentioned it'll be fixed with mysql 5.6

** Changed in: keystone
     Assignee: Juan Manuel Ollé (juan-m-olle) => (unassigned)

** Changed in: keystone
       Status: Confirmed => Won't Fix

-- 
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/1246383

Title:
  Trusts expires_at field is rounded down, doesn't match docs

Status in OpenStack Identity (keystone):
  Won't Fix

Bug description:
  The API docs[1] state:

  "expires_at (string, ISO 8601 extended format date time with
  microseconds)"

  and in the examples:

  "expires_at": "2013-02-27T18:30:59.999999Z"

  However this doesn't match the actual behaviour of the API, which
  rounds down the microseconds component.  Rounding down seems perfectly
  reasonable, but we should probably modify the docs to match, if this
  is correct behaviour:

  Creating a trust with this post body:

  {
      "trust": {
          "expires_at": "2013-10-30T16:47:57.964539Z",
          "impersonation": true,
          "project_id": "b5d498f9631244b59912ce2a0025cf8d",
          "roles": [
              {
                  "name": "Member"
              }
          ],
          "trustee_user_id": "f55efd1d617e4367891d202a811d7728",
          "trustor_user_id": "c46925e946c24683bd29143851525f7d"
      }
  }

  
  Results in a trust which looks like this:
  {
      "trust": {
          "expires_at": "2013-10-30T16:47:57.000000Z",
          "id": "f2588d87f82d4e539db0bd06e5a0a2ab",
          "impersonation": true,
          "links": {
              "self": "http://127.0.0.1:5000/v3/OS-TRUST/trusts/f2588d87f82d4e539db0bd06e5a0a2ab";
          },
          "project_id": "b5d498f9631244b59912ce2a0025cf8d",
          "roles": [
              {
                  "id": "fb2876a05f724d3e8fe0f562e8737a50",
                  "links": {
                      "self": "http://127.0.0.1:5000/v3/roles/fb2876a05f724d3e8fe0f562e8737a50";
                  },
                  "name": "Member"
              }
          ],
          "roles_links": {
              "next": null,
              "previous": null,
              "self": "http://127.0.0.1:5000/v3/OS-TRUST/trusts/f2588d87f82d4e539db0bd06e5a0a2ab/roles";
          },
          "trustee_user_id": "f55efd1d617e4367891d202a811d7728",
          "trustor_user_id": "c46925e946c24683bd29143851525f7d"
      }
  }

  [1] https://github.com/openstack/identity-api/blob/master/openstack-
  identity-api/v3/src/markdown/identity-api-v3-os-trust-ext.md

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