]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume tests pre-instrall python-apt to prevent auto-install failing later 30294/head
authorAlfredo Deza <adeza@redhat.com>
Tue, 3 Sep 2019 14:00:14 +0000 (10:00 -0400)
committerAlfredo Deza <adeza@redhat.com>
Tue, 10 Sep 2019 15:44:04 +0000 (11:44 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 40cac7b9510f7904c2f9dfb1294d809e04bdcf7e)

src/ceph-volume/ceph_volume/tests/functional/playbooks/deploy.yml

index c0fe8fea9455e62192986731621858e974c6ae34..0b65a17256156400242dd37e7810e794324a6c0c 100644 (file)
@@ -17,6 +17,9 @@
     delegate_facts_host: True
     dashboard_enabled: False
 
+  environment:
+    DEBIAN_FRONTEND: noninteractive
+
   pre_tasks:
     # If we can't get python2 installed before any module is used we will fail
     # so just try what we can to get it installed
       when:
         - systempython2.stat is undefined or systempython2.stat.exists == false
 
+    # Ansible will try to auto-install python-apt, in some systems this might be
+    # python3-apt, or python-apt, and it has caused whole runs to fail because
+    # it is trying to do an interactive prompt
+    - name: install python-apt and aptitude in debian based systems
+      raw: sudo apt-get -y install "{{ item }}"
+      ignore_errors: yes
+      with_items:
+        - python3-apt
+        - python-apt
+        - aptitude
+
     - name: install python2 for fedora
       raw: sudo dnf -y install python creates=/usr/bin/python
       ignore_errors: yes