From 08765b1d5d4582752981ec5def79fb78d82b6b35 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 1dae10dd07..5fc098276f 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.39.5