Commit 279840ca authored by Pilou's avatar Pilou
Browse files

Merge branch 'wip-backup' into 'master'

backup: retry a lot because it fails often

Closes #338 and #339

See merge request !458
parents c9e6ac86 ee7d244c
Pipeline #1848 failed with stage
in 17 minutes and 20 seconds
......@@ -331,7 +331,7 @@ class Libvirt(object):
def pets_get(self):
return self.ansible.get_global_variable('libvirt_pets')
@retry.retry(sh.ErrorReturnCode_1, 1)
@retry.retry(sh.ErrorReturnCode_1, 13)
def backup_create_pet_upload(self, openstack, pet):
pathname = self.host_image_name(pet)
log.info(f"backup upload {pathname} to {pet}")
......
......@@ -35,7 +35,10 @@ class OpenStackBase(object):
_tty_out=False,
_out=lambda x: log.info(x.strip()),
_err=lambda x: log.info(x.strip()),
_env={'OS_CLIENT_CONFIG_FILE': self.config_file},
_env={
'OS_CLIENT_CONFIG_FILE': self.config_file,
'PATH': os.getenv('PATH'),
},
)
......
......@@ -63,7 +63,7 @@
- name: install enough
shell: |
set -e
docker run --rm enoughcommunity/enough:latest install --no-tty --no-version internal/data/install.sh > /usr/local/bin/enough
docker run --rm enoughcommunity/enough:latest install --no-tty --no-tag internal/data/install.sh > /usr/local/bin/enough
test -s /usr/local/bin/enough
chmod +x /usr/local/bin/enough
args:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment