Skip to content

Commit d5cf134

Browse files
authored
Change retry timing for SUSEConnect (#347)
Retry less time but wait double the time between each retry. Without this change, the retry is orking properly in detecting the error and run the command again, in particular zypper error 7. Problem is, in PAYG images, the first retry that does not fails for a collision with another zypper process, report some modules as not Registered: it is something not expected for a PAYG image. Waiting more time can give time to the image itself (cloudregister) to register all modules.
1 parent 1023fb5 commit d5cf134

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ansible/playbooks/registration.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
ansible.builtin.command: SUSEConnect -s
2121
register: repos
2222
until: repos.rc == 0
23-
retries: 10
24-
delay: 60
23+
retries: 5
24+
delay: 120
2525
failed_when: repos.rc != 0
2626
changed_when: false
2727

0 commit comments

Comments
 (0)