From 50d2d1270f61bfdefe6000a5170bc96f27f845e7 Mon Sep 17 00:00:00 2001 From: Vasu Kulkarni Date: Sun, 10 Jun 2018 07:27:54 -0700 Subject: [PATCH] Enable standard rhel repos as well after stage cdn configuration Signed-off-by: Vasu Kulkarni --- teuthology/task/internal/redhat.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/teuthology/task/internal/redhat.py b/teuthology/task/internal/redhat.py index 1dae10dd0..5fc098276 100644 --- a/teuthology/task/internal/redhat.py +++ b/teuthology/task/internal/redhat.py @@ -48,6 +48,7 @@ def _subscribe_stage_cdn(remote, teuthconfig): '--auto-attach' ], timeout=720) + _enable_rhel_repos(remote) def _unsubscribe_stage_cdn(remote): @@ -88,6 +89,14 @@ def setup_additional_repo(ctx, config): yield +def _enable_rhel_repos(remote): + rhel_7_rpms = ['rhel-7-server-rpms', + 'rhel-7-server-optional-rpms', + 'rhel-7-server-extras-rpms'] + for repo in rhel_7_rpms: + remote.run(args=['sudo', 'subscription-manager', + 'repos', '--enable={r}'.format(r=repo)]) + @contextlib.contextmanager def setup_base_repo(ctx, config): """ -- 2.47.3