Nova-compute wouldn't retry image download when gets "Corrupt image download" error
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Stanislav Dmitriev | ||
| Victoria |
In Progress
|
Undecided
|
Unassigned | ||
| Wallaby |
In Progress
|
Undecided
|
Unassigned | ||
| Xena |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
Nova-compute wouldn't retry image download when gets "Corrupt image download" error from glanceclient.
There is a configuration option num_retries (equal 3 by default) in glance section of nova-config file, so nova-compute supposed to retry image download if it failed, but it wouldn't work in case of next exception:
2021-11-02 10:42:34.192 6 ERROR nova.compute.
2021-11-02 10:42:34.192 6 ERROR nova.compute.
2021-11-02 10:42:34.192 6 ERROR nova.compute.
2021-11-02 10:42:34.192 6 ERROR nova.compute.
2021-11-02 10:42:34.192 6 ERROR nova.compute.
2021-11-02 10:42:34.192 6 ERROR nova.compute.
2021-11-02 10:42:34.192 6 ERROR nova.compute.
2021-11-02 10:42:34.192 6 ERROR nova.compute.
It wouldn't work because IOError exception is not in retry_excs list:
https:/
retry_excs = (glanceclient.
so try-except block doesn't catch and download retry never happens
| Changed in nova: | |
| status: | New → Confirmed |
| summary: |
Nova-compute wouldn't retry image download when gets "Corrupt image - download" error + download" erro |
| summary: |
Nova-compute wouldn't retry image download when gets "Corrupt image - download" erro + download" error |
| Changed in nova: | |
| assignee: | nobody → S.A.Dmitriev (sdmitriev1) |

Fix proposed to branch: master /review. opendev. org/c/openstack /nova/+ /818503
Review: https:/