Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
register: add retry mechanism
Browse files Browse the repository at this point in the history
Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1715958
A regression in Satellite added a delay to the registration to happen.
To counter this problem we retry 5 times with a delay of 10 seconds between
retries.

Change-Id: Iaa578d608f64612b20deefe7b2ea1006b041654d
Closes-Bug: #1834242
  • Loading branch information
EmilienM committed Jun 26, 2019
1 parent 93dbc51 commit 655075c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tasks/register.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@
tags:
- rhsm
- rhsm_register
# Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1715958
# A regression in Satellite added a delay to the registration to happen.
# To counter this problem we retry 5 times with a delay of 10 seconds between
# retries.
retries: 5
delay: 10
until: not subscrition_result.failed

0 comments on commit 655075c

Please sign in to comment.