Bug 11974

Summary: Make wiki logging more resilient to network issues
Product: [Infrastructure] AutoBuilder Reporter: Joshua Lock <joshuagloe>
Component: autobuilderAssignee: Joshua Lock <joshuagloe>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: infras.ab.watcher, Infras.watcher, pidge
Version: 2.4   
Target Milestone: 2.4 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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