Bug 11974 - Make wiki logging more resilient to network issues
Summary: Make wiki logging more resilient to network issues
Status: RESOLVED FIXED
Alias: None
Product: AutoBuilder
Classification: Infrastructure
Component: autobuilder (show other bugs)
Version: 2.4
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.4 M4
Assignee: Joshua Lock
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-08-24 13:34 UTC by Joshua Lock
Modified: 2017-09-13 09:08 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Lock 2017-08-24 13:34:26 UTC
We recently observed the AB controller locking up when wiki API requests were slow to complete due to the wiki being backed up at the time.

The use of requests API in YPWiki should make use of the timeout property

http://requests.readthedocs.io/en/master/user/quickstart/#timeouts
http://requests.readthedocs.io/en/master/user/advanced/#timeouts

Furthermore we need to understand whether the status plugin can block the controller and if so work on a non-blocking solution.
Comment 1 Joshua Lock 2017-09-13 09:08:55 UTC
Timeout implemented and deployed to both clusters:

http://git.yoctoproject.org/clean/cgit.cgi/yocto-autobuilder/commit/?id=9bf6162d6602beed384072caf0127d1dd2e6e4b3