register: add retry mechanism

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
This commit is contained in:
Emilien Macchi 2019-06-25 14:43:50 -04:00
parent 93dbc5167d
commit 655075c552

View File

@ -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