From 2e5f1c3f577e2b124c31b8131955ce79310a54c5 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 22 Dec 2015 16:55:16 -0700 Subject: [PATCH] Downburst: Remove the test user's password So that console logins are possible Signed-off-by: Zack Cerza --- teuthology/provision.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/teuthology/provision.py b/teuthology/provision.py index fe5114117e..9a5b80473f 100644 --- a/teuthology/provision.py +++ b/teuthology/provision.py @@ -180,13 +180,17 @@ class Downburst(object): user_info = { 'user': self.user, + # Remove the user's password so console logins are possible + 'runcmd': [ + ['passwd', '-d', self.user], + ] } # On CentOS/RHEL/Fedora, write the correct mac address if os_type in ['centos', 'rhel', 'fedora']: - user_info['runcmd'] = [ + user_info['runcmd'].extend([ ['sed', '-ie', 's/HWADDR=".*"/HWADDR="%s"/' % mac_address, '/etc/sysconfig/network-scripts/ifcfg-eth0'], - ] + ]) user_fd = tempfile.NamedTemporaryFile(delete=False) yaml.safe_dump(user_info, user_fd) self.user_path = user_fd.name -- 2.39.5