Aggregates Extension XML and JSON return different format timestamp

Bug #1054225 reported by Matthew Treinish
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Won't Fix
Wishlist
Unassigned

Bug Description

The response to aggregate create returns different format timestamps for XML and JSON requests.

For XML a sample response is:
<?xml version='1.0' encoding='UTF-8'?>
<aggregate>
  <name>name</name>
  <availability_zone>nova</availability_zone>
  <deleted>False</deleted>
  <created_at>2012-09-21 16:49:02.265059</created_at>
  <updated_at>None</updated_at>
  <deleted_at>None</deleted_at>
  <id>1</id>
</aggregate>

and for JSON:
{
    "aggregate": {
        "availability_zone": "nova",
        "created_at": "2012-09-21T15:49:27.263099",
        "deleted": false,
        "deleted_at": null,
        "id": 1,
        "name": "name",
        "updated_at": null
    }
}

The 'created_at' field is using 2 different formats:

2012-09-21T15:49:27.263099
vs
2012-09-21 16:49:02.265059

Changed in nova:
status: New → Confirmed
importance: Undecided → Low
importance: Low → Medium
Revision history for this message
Matthew Treinish (treinish) wrote :

This timestamp format should probably be made consistent with the rest of the API.

So instead of:

2012-09-21T15:49:27.263099
or
2012-09-21 16:49:02.265059

it should be:
2012-08-20T21:11:09Z

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

see https://bugs.launchpad.net/nova/+bug/721297 - looks like the EC2 API picked the following

2010-11-01T08:25:09.771Z

-- dims

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/15231

Changed in nova:
assignee: nobody → Davanum Srinivas (dims-v)
status: Confirmed → In Progress
tags: added: v2-api-inconsitency
tags: added: v2-api-inconsistency
removed: v2-api-inconsitency
Changed in nova:
assignee: Davanum Srinivas (dims-v) → nobody
Thierry Carrez (ttx)
Changed in nova:
status: In Progress → Confirmed
Changed in nova:
assignee: nobody → Giampaolo Lauria (lauria)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/19659

Changed in nova:
status: Confirmed → In Progress
Changed in nova:
assignee: Giampaolo Lauria (lauria) → nobody
status: In Progress → New
Changed in nova:
assignee: nobody → jagan kumar kotipatruni (jagankumar-k)
tags: added: v3-api
Ruby Loo (rloo)
Changed in nova:
status: New → In Progress
Revision history for this message
Tracy Jones (tjones-i) wrote :

all reviews are abandoned for this and it has not been updated in a long time. moving back to triaged. Please set to in progress if you plan on working on it

Changed in nova:
status: In Progress → Triaged
Sean Dague (sdague)
Changed in nova:
assignee: jagan kumar kotipatruni (jagankumar-k) → nobody
importance: Medium → Wishlist
Revision history for this message
Joe Gordon (jogo) wrote :

we are dropping support for XML in Juno

Changed in nova:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.