Timeout occurs in repo(aptly) operation

Bug #2000315 reported by ZhangXiao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
ZhangXiao

Bug Description

Occasionally, in some server, aptly operations like remove_repo, upload_pkg may failed by timeout:

13:38:22 2022-12-19 05:38:22,089 - repo_manager - INFO: Aptly connected, version: StarlingX_Master_v1.0.0
13:38:23 2022-12-19 05:38:23,043 - repo_manager - DEBUG: deb-local-binary find, can be used
13:39:44 2022-12-19 05:39:31,530 - downloader - ERROR: HTTPConnectionPool(host='wrcp-22-12-debian-test-patches-stx-repomgr', port=8080): Read timed out. (read timeout=60)
13:39:44 2022-12-19 05:39:31,530 - downloader - ERROR: Failed to create repository deb-local-binary

Changed in starlingx:
assignee: nobody → ZhangXiao (zhangxiao-windriver)
Revision history for this message
ZhangXiao (zhangxiao-windriver) wrote :

Only occurred in some slow build servers, occasionally.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to root (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/root/+/868862

Changed in starlingx:
status: New → In Progress
Ghada Khalil (gkhalil)
tags: added: stx.build stx.debian
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to root (master)

Reviewed: https://review.opendev.org/c/starlingx/root/+/868862
Committed: https://opendev.org/starlingx/root/commit/495064aa4ef517ab6a9598d67270c5550477ade8
Submitter: "Zuul (22348)"
Branch: master

commit 495064aa4ef517ab6a9598d67270c5550477ade8
Author: Zhang Xiao <email address hidden>
Date: Wed Dec 21 15:58:45 2022 +0800

    aptly_deb_usage: use union interface __wait_for_task

    function wait_for_task_by_id of aptly_api can only wait for 60 seconds
    or timeout. It is not enough for large repository in some slow build
    servers. Make a function called __wait_for_task to wait a task for
    longer time and sync all aptly tasks with this function.

    Enlarge the timeout of db.clean to 5 minutes.

    Test Plan:
    PASS: download; build-pkgs -a; build-image

    Closes-bug: 2000315
    Signed-off-by: Zhang Xiao <email address hidden>
    Change-Id: I624d50edfccd57bf3d060baaa373766c4cc43bc5

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Medium
tags: added: stx.8.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.