boto thirdparty tests sometimes fail in teardown due to a 404 when deregistering images

Bug #1494865 reported by Matt Riedemann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Fix Released
Undecided
Unassigned

Bug Description

This seems like something that the boto thirdparty tests should be handling gracefully, i.e. ignore 404s on delete requests:

http://logs.openstack.org/37/217237/1/gate/gate-tempest-dsvm-full/bf16872/logs/tempest.txt.gz?level=TRACE#_2015-09-11_17_24_48_003

<Response><Errors><Error><Code>ImageNotFound</Code><Message>Image aki-00000011 could not be found.</Message></Error></Errors><RequestID>req-472eebb8-00ce-4c31-ade4-1157a660032a</RequestID></Response>
2015-09-11 17:24:48.003 8221 ERROR tempest.thirdparty.boto.test [-] Cleanup failed APIClientEC2.deregister_image(aki-00000011)
2015-09-11 17:24:48.003 8221 ERROR tempest.thirdparty.boto.test Traceback (most recent call last):
2015-09-11 17:24:48.003 8221 ERROR tempest.thirdparty.boto.test File "tempest/thirdparty/boto/test.py", line 272, in resource_cleanup
2015-09-11 17:24:48.003 8221 ERROR tempest.thirdparty.boto.test function(*pos_args, **kw_args)
2015-09-11 17:24:48.003 8221 ERROR tempest.thirdparty.boto.test File "tempest/services/botoclients.py", line 68, in func
2015-09-11 17:24:48.003 8221 ERROR tempest.thirdparty.boto.test return getattr(conn, name)(*args, **kwargs)
2015-09-11 17:24:48.003 8221 ERROR tempest.thirdparty.boto.test File "/opt/stack/new/tempest/.tox/full/local/lib/python2.7/site-packages/boto/ec2/connection.py", line 394, in deregister_image
2015-09-11 17:24:48.003 8221 ERROR tempest.thirdparty.boto.test params, verb='POST')
2015-09-11 17:24:48.003 8221 ERROR tempest.thirdparty.boto.test File "/opt/stack/new/tempest/.tox/full/local/lib/python2.7/site-packages/boto/connection.py", line 1227, in get_status
2015-09-11 17:24:48.003 8221 ERROR tempest.thirdparty.boto.test raise self.ResponseError(response.status, response.reason, body)
2015-09-11 17:24:48.003 8221 ERROR tempest.thirdparty.boto.test EC2ResponseError: EC2ResponseError: 404 Not Found
2015-09-11 17:24:48.003 8221 ERROR tempest.thirdparty.boto.test <?xml version="1.0"?>
2015-09-11 17:24:48.003 8221 ERROR tempest.thirdparty.boto.test <Response><Errors><Error><Code>ImageNotFound</Code><Message>Image aki-00000011 could not be found.</Message></Error></Errors><RequestID>req-472eebb8-00ce-4c31-ade4-1157a660032a</RequestID></Response>
2015-09-11 17:24:48.003 8221 ERROR tempest.thirdparty.boto.test
2015-09-11 17:24:48.030 8221 ERROR tempest.test [-] teardown of resources failed: 1 cleanUp operation failed
2015-09-11 17:24:48.030 8221 ERROR tempest.test Traceback (most recent call last):
2015-09-11 17:24:48.030 8221 ERROR tempest.test File "tempest/test.py", line 293, in tearDownClass
2015-09-11 17:24:48.030 8221 ERROR tempest.test teardown()
2015-09-11 17:24:48.030 8221 ERROR tempest.test File "tempest/thirdparty/boto/test.py", line 283, in resource_cleanup
2015-09-11 17:24:48.030 8221 ERROR tempest.test raise exceptions.TearDownException(num=fail_count)
2015-09-11 17:24:48.030 8221 ERROR tempest.test TearDownException: 1 cleanUp operation failed
2015-09-11 17:24:48.030 8221 ERROR tempest.test

http://logstash.openstack.org/#eyJzZWFyY2giOiJtZXNzYWdlOlwiVGVhckRvd25FeGNlcHRpb246IDEgY2xlYW5VcCBvcGVyYXRpb24gZmFpbGVkXCIgQU5EIG1lc3NhZ2U6XCJib3RvXCIgQU5EIHRhZ3M6XCJ0ZW1wZXN0LnR4dFwiIiwiZmllbGRzIjpbXSwib2Zmc2V0IjowLCJ0aW1lZnJhbWUiOiJjdXN0b20iLCJncmFwaG1vZGUiOiJjb3VudCIsInRpbWUiOnsiZnJvbSI6IjIwMTUtMDktMDFUMTc6NDk6MzUrMDA6MDAiLCJ0byI6IjIwMTUtMDktMTFUMTc6NDk6MzUrMDA6MDAiLCJ1c2VyX2ludGVydmFsIjoiMCJ9LCJzdGFtcCI6MTQ0MTk5MzkxNzY1OSwibW9kZSI6IiIsImFuYWx5emVfZmllbGQiOiIifQ==

278 hits in 10 days, check and gate, all failures.

Tags: boto
Matt Riedemann (mriedem)
tags: added: boto
Matt Riedemann (mriedem)
summary: boto thirdparty tests sometimes fail in teardown due to a 404 when
- deleting images
+ deregistering images
Revision history for this message
Matt Riedemann (mriedem) wrote :
Revision history for this message
Jordan Pittier (jordan-pittier) wrote :

Third party tests are gone from Tempest. I am closing this issue.

Changed in tempest:
status: New → Fix Released
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.