From 7b01c53fa14a3996698a1fc0790dea78a082ddf8 Mon Sep 17 00:00:00 2001 From: Vasu Kulkarni Date: Sun, 10 Jun 2018 15:50:55 -0700 Subject: [PATCH] need to debug why check_status is being ignored, for now catch the command failed error, log and ignore so that tests can pass. Signed-off-by: Vasu Kulkarni --- teuthology/task/internal/redhat.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/teuthology/task/internal/redhat.py b/teuthology/task/internal/redhat.py index 878d26b591..eac9734912 100644 --- a/teuthology/task/internal/redhat.py +++ b/teuthology/task/internal/redhat.py @@ -9,6 +9,7 @@ from teuthology.config import config as teuthconfig from teuthology.parallel import parallel from teuthology.orchestra import run from teuthology.task.install.redhat import set_deb_repo +from teuthology.exceptions import CommandFailedError log = logging.getLogger(__name__) @@ -53,8 +54,12 @@ def _subscribe_stage_cdn(remote, teuthconfig): def _unsubscribe_stage_cdn(remote): - remote.run(args=['sudo', 'subscription-manager', 'unregister'], - check_status=False) + try: + remote.run(args=['sudo', 'subscription-manager', 'unregister'], + check_status=False) + except CommandFailedError: + # FIX ME + log.info("unregistring subscription-manager failed, ignoring") @contextlib.contextmanager -- 2.39.5