From: Vasu Kulkarni Date: Sun, 10 Jun 2018 21:41:42 +0000 (-0700) Subject: unsubscribe at the start of the test as well, if nodes are not freshly reimaged X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=40f388c10541cbda4bd156b83e9b9ffb58f8f65e;p=teuthology.git unsubscribe at the start of the test as well, if nodes are not freshly reimaged then they may have subscription from old configuration Signed-off-by: Vasu Kulkarni --- diff --git a/teuthology/task/internal/redhat.py b/teuthology/task/internal/redhat.py index c306ce2001..878d26b591 100644 --- a/teuthology/task/internal/redhat.py +++ b/teuthology/task/internal/redhat.py @@ -33,6 +33,7 @@ def setup_stage_cdn(ctx, config): def _subscribe_stage_cdn(remote, teuthconfig): + _unsubscribe_stage_cdn(remote) cdn_config = teuthconfig.get('cdn-config', dict()) server_url = cdn_config.get('server-url', 'subscription.rhsm.stage.redhat.com:443/subscription') base_url = cdn_config.get('base-url', 'https://cdn.stage.redhat.com') @@ -53,7 +54,7 @@ def _subscribe_stage_cdn(remote, teuthconfig): def _unsubscribe_stage_cdn(remote): remote.run(args=['sudo', 'subscription-manager', 'unregister'], - check_status=False) + check_status=False) @contextlib.contextmanager