]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
kernel: Update kernel using `DEBIAN_FRONTEND noninteractive` 1225/head
authorDavid Galloway <dgallowa@redhat.com>
Fri, 19 Oct 2018 12:23:34 +0000 (08:23 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Fri, 19 Oct 2018 12:23:34 +0000 (08:23 -0400)
Fixes: https://tracker.ceph.com/issues/36499
Signed-off-by: David Galloway <dgallowa@redhat.com>
teuthology/task/kernel.py

index 0f3957a13a90ddb0137b91be21aeee11c51f157e..d29b2e8c5e16249df26254097812b898abde3536 100644 (file)
@@ -1064,7 +1064,8 @@ def get_latest_image_version_deb(remote, ostype):
     # Ubuntu is a depend in a depend.
     if 'ubuntu' in ostype:
         try:
-            remote.run(args=['sudo', 'apt-get', '-y', 'install',
+            remote.run(args=['sudo', 'DEBIAN_FRONTEND=noninteractive',
+                             'apt-get', '-y', 'install',
                              'linux-image-current-generic'])
             remote.run(args=['dpkg', '-s', 'linux-image-current-generic'],
                        stdout=output)
@@ -1077,7 +1078,8 @@ def get_latest_image_version_deb(remote, ostype):
         except run.CommandFailedError:
             # Non precise ubuntu machines (like trusty) don't have
             # linux-image-current-generic so use linux-image-generic instead.
-            remote.run(args=['sudo', 'apt-get', '-y', 'install',
+            remote.run(args=['sudo', 'DEBIAN_FRONTEND=noninteractive',
+                             'apt-get', '-y', 'install',
                              'linux-image-generic'], stdout=output)
             remote.run(args=['dpkg', '-s', 'linux-image-generic'],
                        stdout=output)