← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1156445] Re: ec2 api does not work for aws-java-sdk

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => havana-1

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

Title:
  ec2 api does not work for aws-java-sdk

Status in OpenStack Compute (Nova):
  Fix Released
Status in OpenStack Compute (nova) grizzly series:
  Fix Released

Bug description:
  ec2 api does not work for aws-java-sdk anymore since commit
  cb72ff1fa700f5a8be172df5a14dd479bf75fa36

  I try to use aws-java-sdk-1.0.11.jar and aws-java-sdk-1.4.1.jar to
  make queries to nova. However, it always causes "Timestamp is invalid"
  error for any aws-java-sdk requests.

  2013-03-18 12:19:29.242 ERROR nova.api.ec2.ec2utils [req-0e4d4c31-2c5e-439e-9030-9161abc47a8d 1458120d63784bb49858437c275dc59e 7dd8607e7d294efc845ccf68f8d282b7] Timestamp is invalid.
  2013-03-18 12:19:29.242 1458 TRACE nova.api.ec2.ec2utils Traceback (most recent call last):
  2013-03-18 12:19:29.242 1458 TRACE nova.api.ec2.ec2utils   File "/usr/lib/python2.7/dist-packages/nova/api/ec2/ec2utils.py", line 200, in is_ec2_timestamp_expired
  2013-03-18 12:19:29.242 1458 TRACE nova.api.ec2.ec2utils     "%Y-%m-%dT%H:%M:%SZ")
  2013-03-18 12:19:29.242 1458 TRACE nova.api.ec2.ec2utils   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/timeutils.py", line 61, in parse_strtime
  2013-03-18 12:19:29.242 1458 TRACE nova.api.ec2.ec2utils     return datetime.datetime.strptime(timestr, fmt)
  2013-03-18 12:19:29.242 1458 TRACE nova.api.ec2.ec2utils   File "/usr/lib/python2.7/_strptime.py", line 325, in _strptime
  2013-03-18 12:19:29.242 1458 TRACE nova.api.ec2.ec2utils     (data_string, format))
  2013-03-18 12:19:29.242 1458 TRACE nova.api.ec2.ec2utils ValueError: time data '2013-03-18T04:16:35.924Z' does not match format '%Y-%m-%dT%H:%M:%SZ'
  2013-03-18 12:19:29.242 1458 TRACE nova.api.ec2.ec2utils

  
  If revert commit cb72ff1fa700f5a8be172df5a14dd479bf75fa36, it can work well for aws-java-sdk-1.0.11.jar and aws-java-sdk-1.4.1.jar

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