403 Forbidden - Timestamp failed validation in EC2 unit tests

Bug #1399817 reported by Johannes Erdfelt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Johannes Erdfelt

Bug Description

EC2 unit tests can sometimes fail:

Traceback (most recent call last):
  File "/home/johannes/openstack/nova/nova/tests/unit/api/ec2/test_api.py", line 287, in test_xmlns_version_matches_request_version
    self.ec2.get_all_instances()
  File "/home/johannes/virtualenvs/migrations/local/lib/python2.7/site-packages/boto/ec2/connection.py", line 586, in get_all_instances
    max_results=max_results)
  File "/home/johannes/virtualenvs/migrations/local/lib/python2.7/site-packages/boto/ec2/connection.py", line 682, in get_all_reservations
    [('item', Reservation)], verb='POST')
  File "/home/johannes/virtualenvs/migrations/local/lib/python2.7/site-packages/boto/connection.py", line 1182, in get_list
    raise self.ResponseError(response.status, response.reason, body)
EC2ResponseError: EC2ResponseError: 403 Forbidden
<html>
 <head>
  <title>403 Forbidden</title>
 </head>
 <body>
  <h1>403 Forbidden</h1>
  Timestamp failed validation.<br /><br />

 </body>
</html>

It can happen in one of a number of EC2 unit tests. My latest test run failed in these tests:

nova.tests.unit.api.ec2.test_api.ApiEc2TestCase.test_authorize_revoke_security_group_cidr
nova.tests.unit.api.ec2.test_api.ApiEc2TestCase.test_create_delete_security_group
nova.tests.unit.api.ec2.test_api.ApiEc2TestCase.test_xmlns_version_matches_request_version

I've seen it in other EC2 related test cases too. Usually running again will produce a failure in a different test case or none.

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

Changed in nova:
assignee: nobody → Johannes Erdfelt (johannes.erdfelt)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/139749
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=39e2a51e4d8817fe156a9a1b1471ecbb835326f3
Submitter: Jenkins
Branch: master

commit 39e2a51e4d8817fe156a9a1b1471ecbb835326f3
Author: Johannes Erdfelt <email address hidden>
Date: Fri Dec 5 14:55:52 2014 -0800

    Cleanup timeutils override in tests/functional/test_servers

    The ServersTest._force_reclaim helper method sets up a timeutils
    override but never removes it. This allows the override to potentially
    leak into other tests causing spurious failures in completely unrelated
    tests.

    Change-Id: I637a1dd6301e5645a47dbd65026acfab83e6ae26
    Closes-bug: 1399817

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → kilo-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: kilo-1 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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