From effb276cbd7d61c6e5ee2d93eb2a7d6baa1d5baa Mon Sep 17 00:00:00 2001 From: morganrol Date: Tue, 23 Mar 2021 18:48:59 +0100 Subject: [SDC] Add a timer before certifying The goal is to reduce the number of errors on SDC due to the processing time on certification Initially a re-try was attempted on exception but no exception is raised so use a Timer to reduce the stress on certification Issue-ID: TEST-315 Signed-off-by: morganrol Change-Id: I0a67d006597c3094f55f93893126865d7ead33fb --- src/onaptests/steps/onboard/service.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/onaptests/steps/onboard/service.py b/src/onaptests/steps/onboard/service.py index b591f8d..6300a43 100644 --- a/src/onaptests/steps/onboard/service.py +++ b/src/onaptests/steps/onboard/service.py @@ -69,13 +69,8 @@ class ServiceOnboardStep(BaseStep): # checkin is done if needed # If service is replayed, no need to try to re-onboard the model if not service.distributed: - try: - service.checkin() - except (APIError, ResourceNotFound): - # Retry as checkin may be a bit long - # Temp workaround to avoid internal race in SDC - time.sleep(5) - service.checkin() + time.sleep(30) + service.checkin() service.onboard() -- cgit 1.2.3-korg