Retries for getting packages via http are not working in fuel-mirror

Bug #1539025 reported by Alexandr Kostrikov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Bulat Gaifullin
8.0.x
Fix Released
High
Bulat Gaifullin
Mitaka
Fix Released
High
Bulat Gaifullin

Bug Description

Expected:
When fuel-mirror faces 404, it should retry it

Actual:
Only such stacktrace is in logs:
return self.opener.open(request)\n', ' File "/usr/lib64/python2.7/urllib2.py", line 410, in open\n', ' response = meth(req, response)\n', ' File "/usr/lib64/python2.7/urllib2.py", line 523, in http_response\n', " 'http', request, response, code, msg, hdrs)\n", ' File "/usr/lib64/python2.7/urllib2.py", line 448, in error\n', ' return self._call_chain(*args)\n', ' File "/usr/lib64/python2.7/urllib2.py", line 382, in _call_chain\n', ' result = func(*args)\n', ' File "/usr/lib64/python2.7/urllib2.py", line 531, in http_error_default\n', ' raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)\n', 'HTTPError: HTTP Error 404: Not Found\n',

Revision history for this message
Ivan Ponomarev (ivanzipfer) wrote :

Please provide fuel version

Changed in fuel:
status: New → Incomplete
Changed in fuel:
milestone: none → 8.0
status: Incomplete → New
Changed in fuel:
status: New → Confirmed
tags: added: team-enhancements
summary: - Retries are not working in fuel-mirror
+ Retries for getting packages via http are not working in fuel-mirror
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-mirror (master)

Fix proposed to branch: master
Review: https://review.openstack.org/273972

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
Ihor Kalnytskyi (ikalnytskyi) wrote :

We have a similar issue here - bug 1524855.

I believe we should fix it not by adding retries, but by fixing mirrors. Moreover, apt-get/yum doesn't make retries for 404. So I insist to do not introduce workarounds, but by fixing the original problem.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-mirror (master)

Reviewed: https://review.openstack.org/273972
Committed: https://git.openstack.org/cgit/openstack/fuel-mirror/commit/?id=3677dc62e40d87811a4ed217958ef848a65634eb
Submitter: Jenkins
Branch: master

commit 3677dc62e40d87811a4ed217958ef848a65634eb
Author: Bulat Gaifullin <email address hidden>
Date: Fri Jan 29 13:06:59 2016 +0300

    Fixed retries for server errors

    The code does not properly handle situation when server returns http error.
    Also added option 'retries_delay' to specify timeout between retries
    Also disabled retries for 404 code

    Change-Id: Ie5b2e720d453ef6e398400d27e631607b56e2937
    Closes-Bug: #1539025

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-mirror (stable/8.0)

Fix proposed to branch: stable/8.0
Review: https://review.openstack.org/275254

Andrey Maximov (maximov)
tags: added: hit-hcf
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-mirror (stable/8.0)

Reviewed: https://review.openstack.org/275254
Committed: https://git.openstack.org/cgit/openstack/fuel-mirror/commit/?id=6f8e1a005446eb49981fe93bd9a67ca944c0a763
Submitter: Jenkins
Branch: stable/8.0

commit 6f8e1a005446eb49981fe93bd9a67ca944c0a763
Author: Bulat Gaifullin <email address hidden>
Date: Fri Jan 29 13:06:59 2016 +0300

    Fixed retries for server errors

    The code does not properly handle situation when server returns http error.
    Also added option 'retries_delay' to specify timeout between retries
    Also disabled retries for 404 code

    Change-Id: Ie5b2e720d453ef6e398400d27e631607b56e2937
    Closes-Bug: #1539025
    (cherry picked from commit 3677dc62e40d87811a4ed217958ef848a65634eb)

Revision history for this message
Alexandr Kostrikov (akostrikov-mirantis) wrote :

There were no reproduces in swarm job.
Fix has not been broken since 8.0

Changed in fuel:
status: Fix Committed → Fix Released
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.