From 4f337519fcc055d8f2ef16bf272897ae92e06c73 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Fri, 26 Aug 2016 17:51:49 -0400 Subject: [PATCH] Install redhat-lsb-core on downbursted centos VMs for `lsb_release` Signed-off-by: David Galloway --- teuthology/provision/downburst.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/teuthology/provision/downburst.py b/teuthology/provision/downburst.py index 7794d94af..8eaa705c7 100644 --- a/teuthology/provision/downburst.py +++ b/teuthology/provision/downburst.py @@ -187,12 +187,14 @@ class Downburst(object): user_info['packages'].extend([ 'git', ]) - # On CentOS/RHEL/Fedora, write the correct mac address + # On CentOS/RHEL/Fedora, write the correct mac address and + # install redhab-lsb-core for `lsb_release` if os_type in ['centos', 'rhel', 'fedora']: user_info['runcmd'].extend([ ['sed', '-ie', 's/HWADDR=".*"/HWADDR="%s"/' % mac_address, '/etc/sysconfig/network-scripts/ifcfg-eth0'], ]) + user_info['packages'].append('redhat-lsb-core') # On Ubuntu, starting with 16.04, we need to install 'python' to get # python2.7, which ansible needs elif os_type == 'ubuntu': -- 2.47.3