Retry ostree installer task on losetup error
This uses a previous change that added ability to retry and simply extends the conditions when it fires. JIRA: RHELCMP-1863 Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
3c72755814
commit
a294a05726
@ -286,4 +286,5 @@ class OstreeInstallerThread(WorkerThread):
|
||||
mounts=[compose.topdir],
|
||||
chown_paths=[output_dir],
|
||||
weight=compose.conf["runroot_weights"].get("ostree_installer"),
|
||||
log_dir=self.logdir,
|
||||
)
|
||||
|
@ -14,6 +14,7 @@
|
||||
# along with this program; if not, see <https://gnu.org/licenses/>.
|
||||
|
||||
import os
|
||||
import re
|
||||
from six.moves import shlex_quote
|
||||
import kobo.log
|
||||
from kobo.shortcuts import run
|
||||
@ -95,6 +96,8 @@ class Runroot(kobo.log.LoggingBase):
|
||||
for line in f:
|
||||
if "losetup: cannot find an unused loop device" in line:
|
||||
return True
|
||||
if re.match("losetup: .* failed to set up loop device", line):
|
||||
return True
|
||||
except Exception:
|
||||
pass
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user