From: Vasu Kulkarni Date: Sun, 10 Jun 2018 14:27:54 +0000 (-0700) Subject: Enable standard rhel repos as well after stage cdn configuration X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=50d2d1270f61bfdefe6000a5170bc96f27f845e7;p=teuthology.git Enable standard rhel repos as well after stage cdn configuration Signed-off-by: Vasu Kulkarni --- 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): """