]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Install git on downbursted VMs during cloud-init
authorDavid Galloway <dgallowa@redhat.com>
Fri, 26 Aug 2016 20:44:42 +0000 (16:44 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 30 Aug 2016 22:22:21 +0000 (18:22 -0400)
Fixes: http://tracker.ceph.com/issues/17154
Signed-off-by: David Galloway <dgallowa@redhat.com>
teuthology/provision/downburst.py

index b42ae4cfae3ad513b086a9b4423a69e395396ae5..7794d94afc56cc81af58fa8388635184d6c170b1 100644 (file)
@@ -180,6 +180,13 @@ class Downburst(object):
                 ['passwd', '-d', self.user],
             ]
         }
+        # Install git on downbursted VMs to clone upstream linux-firmware.
+        # Issue #17154
+        if 'packages' not in user_info:
+            user_info['packages'] = list()
+        user_info['packages'].extend([
+            'git',
+        ])
         # On CentOS/RHEL/Fedora, write the correct mac address
         if os_type in ['centos', 'rhel', 'fedora']:
             user_info['runcmd'].extend([
@@ -189,11 +196,7 @@ class Downburst(object):
         # On Ubuntu, starting with 16.04, we need to install 'python' to get
         # python2.7, which ansible needs
         elif os_type == 'ubuntu':
-            if 'packages' not in user_info:
-                user_info['packages'] = list()
-            user_info['packages'].extend([
-                'python',
-            ])
+            user_info['packages'].append('python')
         user_fd = tempfile.NamedTemporaryFile(delete=False)
         yaml.safe_dump(user_info, user_fd)
         self.user_path = user_fd.name