Remove excessive exceptions in logs due to failed fetch call

Bug #1582347 reported by Lauren Taylor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-swiftclient
New
Undecided
Unassigned

Bug Description

For a happy path deploy, a couple objects are pulled from Swift and if not there, saved over to swift.

Some of these calls try to 'fetch' the data, and if not there...it is not always a bad thing. Maybe it is the first deploy? For every deploy, we now see exceptions about a get that 404's, then an upload to it. We need to clear these from the log so that they don't happen. Example:

**********************************************************************
2016-05-15 09:18:33.888 2464 INFO swiftclient [-] REQ: curl -i https://<ip>:8080/v1/AUTH_2e8f02ea5be0415ea8410a0e6a49780b/powervm_nvram/3bbcedcf-cadd-440b-a5e8-6a1ab2ab5430_slot_map -X GET -H "X-Auth-Token: c1d8fe32a1454f36..."
2016-05-15 09:18:33.888 2464 INFO swiftclient [-] RESP STATUS: 404 Not Found
2016-05-15 09:18:33.888 2464 INFO swiftclient [-] RESP HEADERS: {u'Date': u'Sun, 15 May 2016 13:18:33 GMT', u'Content-Length': u'70', u'X-Trans-Id': u'tx948a6cbc30934ef6b6c24-0057387729', u'Content-Type': u'text/html; charset=UTF-8', u'Server': u'Apache'}
2016-05-15 09:18:33.888 2464 INFO swiftclient [-] RESP BODY: <html><h1>Not Found</h1><p>The resource could not be found.</p></html>
2016-05-15 09:18:33.889 2464 ERROR swiftclient [-] Object GET failed: https://<ip>:8080/v1/AUTH_2e8f02ea5be0415ea8410a0e6a49780b/powervm_nvram/3bbcedcf-cadd-440b-a5e8-6a1ab2ab5430_slot_map 404 Not Found [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<
2016-05-15 09:18:33.889 2464 ERROR swiftclient Traceback (most recent call last):
2016-05-15 09:18:33.889 2464 ERROR swiftclient File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1565, in _retry
2016-05-15 09:18:33.889 2464 ERROR swiftclient service_token=self.service_token, **kwargs)
2016-05-15 09:18:33.889 2464 ERROR swiftclient File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1116, in get_object
2016-05-15 09:18:33.889 2464 ERROR swiftclient http_response_content=body)
2016-05-15 09:18:33.889 2464 ERROR swiftclient ClientException: Object GET failed: https://<ip>:8080/v1/AUTH_2e8f02ea5be0415ea8410a0e6a49780b/powervm_nvram/3bbcedcf-cadd-440b-a5e8-6a1ab2ab5430_slot_map 404 Not Found [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<
2016-05-15 09:18:33.889 2464 ERROR swiftclient
2016-05-15 09:18:33.889 2464 ERROR swiftclient.service [-] Object GET failed: https://<ip>:8080/v1/AUTH_2e8f02ea5be0415ea8410a0e6a49780b/powervm_nvram/3bbcedcf-cadd-440b-a5e8-6a1ab2ab5430_slot_map 404 Not Found [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<
2016-05-15 09:18:33.889 2464 ERROR swiftclient.service Traceback (most recent call last):
2016-05-15 09:18:33.889 2464 ERROR swiftclient.service File "/usr/lib/python2.7/dist-packages/swiftclient/service.py", line 1076, in _download_object_job
2016-05-15 09:18:33.889 2464 ERROR swiftclient.service headers, body = conn.get_object(container, obj, **get_args)
2016-05-15 09:18:33.889 2464 ERROR swiftclient.service File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1666, in get_object
2016-05-15 09:18:33.889 2464 ERROR swiftclient.service headers=headers)
2016-05-15 09:18:33.889 2464 ERROR swiftclient.service File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1565, in _retry
2016-05-15 09:18:33.889 2464 ERROR swiftclient.service service_token=self.service_token, **kwargs)
2016-05-15 09:18:33.889 2464 ERROR swiftclient.service File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1116, in get_object
2016-05-15 09:18:33.889 2464 ERROR swiftclient.service http_response_content=body)
2016-05-15 09:18:33.889 2464 ERROR swiftclient.service ClientException: Object GET failed: https://<ip>:8080/v1/AUTH_2e8f02ea5be0415ea8410a0e6a49780b/powervm_nvram/3bbcedcf-cadd-440b-a5e8-6a1ab2ab5430_slot_map 404 Not Found [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<
2016-05-15 09:18:33.889 2464 ERROR swiftclient.service
2016-05-15 09:18:35.213 2464 INFO swiftclient [-] REQ: curl -i https://<ip>:8080/v1/AUTH_2e8f02ea5be0415ea8410a0e6a49780b/powervm_nvram/3bbcedcf-cadd-440b-a5e8-6a1ab2ab5430_slot_map -I -H "X-Auth-Token: 2630c5b747784f52..."
2016-05-15 09:18:35.213 2464 INFO swiftclient [-] RESP STATUS: 404 Not Found
2016-05-15 09:18:35.213 2464 INFO swiftclient [-] RESP HEADERS: {u'Date': u'Sun, 15 May 2016 13:18:35 GMT', u'X-Trans-Id': u'tx639edbf69680413d93e30-005738772b', u'Content-Type': u'text/html; charset=UTF-8', u'Server': u'Apache'}
2016-05-15 09:18:35.214 2464 ERROR swiftclient [-] Object HEAD failed: https://<ip?:8080/v1/AUTH_2e8f02ea5be0415ea8410a0e6a49780b/powervm_nvram/3bbcedcf-cadd-440b-a5e8-6a1ab2ab5430_slot_map 404 Not Found
2016-05-15 09:18:35.214 2464 ERROR swiftclient Traceback (most recent call last):
2016-05-15 09:18:35.214 2464 ERROR swiftclient File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1565, in _retry
2016-05-15 09:18:35.214 2464 ERROR swiftclient service_token=self.service_token, **kwargs)
2016-05-15 09:18:35.214 2464 ERROR swiftclient File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1166, in head_object
2016-05-15 09:18:35.214 2464 ERROR swiftclient http_response_content=body)
2016-05-15 09:18:35.214 2464 ERROR swiftclient ClientException: Object HEAD failed: https://<ip>:8080/v1/AUTH_2e8f02ea5be0415ea8410a0e6a49780b/powervm_nvram/3bbcedcf-cadd-440b-a5e8-6a1ab2ab5430_slot_map 404 Not Found
2016-05-15 09:18:35.214 2464 ERROR swiftclient
**********************************************************************

Lauren Taylor (lmtaylor)
Changed in python-swiftclient:
assignee: nobody → Lauren Taylor (lmtaylor)
assignee: Lauren Taylor (lmtaylor) → nobody
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.