]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
rpm: retry installing the package if the mirror server is busy 1554/head
authorXiubo Li <xiubli@redhat.com>
Thu, 27 Aug 2020 05:40:52 +0000 (01:40 -0400)
committerXiubo Li <xiubli@redhat.com>
Mon, 31 Aug 2020 23:53:21 +0000 (19:53 -0400)
commita6976700cb5298fb0946338e8bbc5262c002ebff
treecd476d8863811781df559e05479e87172449f957
parent8271c95bf9abf546e1f561ec9e39b9c8871bf706
rpm: retry installing the package if the mirror server is busy

When installing some packages, if the mirror server failed with
503 code, which means the mirror server temporarily not available,
we should retry it later. But the yum tool just skips it and
retries other mirrors, which may not contain them.

For the cephfs suites, there maybe will fire the many test cases
at the same time, and for each test case it may fire several nodes
to install tens of packages at the same time. This may cause the
mirror server overloaded.

We need one safe method to retry it.

Fixes: https://tracker.ceph.com/issues/47166
Signed-off-by: Xiubo Li <xiubli@redhat.com>
teuthology/task/install/rpm.py