]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
provision/downburst: install pip for centos
authorKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Sat, 5 Apr 2025 16:34:13 +0000 (18:34 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Thu, 21 Aug 2025 22:57:54 +0000 (00:57 +0200)
By some reason, ansible is not install pip3 for centos:

  Unable to find any of pip3 to use.  pip needs to be installed.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@clyso.com>
teuthology/provision/downburst.py

index 6f456107cd2a385a9a1e64bca641b4d3045bc122..d12ff0c81254b8ecbcbe9cd6cd8bde8ddd58ccae 100644 (file)
@@ -265,6 +265,8 @@ class Downburst(object):
         # to install 'python' to get python2.7, which ansible needs
         if os_type in ('ubuntu', 'fedora'):
             user_info['packages'].append('python')
+        if os_type in ('centos'):
+            user_info['packages'].append('python3-pip')
         user_fd = tempfile.NamedTemporaryFile(delete=False, mode='wt')
         user_str = "#cloud-config\n" + yaml.safe_dump(user_info)
         user_fd.write(user_str)