From 587d560e6685ed7460d5f51dbaa1edde1fc27175 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Tue, 8 Nov 2022 17:14:06 +0100 Subject: Stop using docker install script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As this script fails vs xenial, let's update ubuntu and install the official package. Change-Id: Iba4124429bcd80280f6c5d128758ca72f00bb8f7 Signed-off-by: Cédric Ollivier --- functest/core/cloudify.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'functest/core/cloudify.py') diff --git a/functest/core/cloudify.py b/functest/core/cloudify.py index 416fe523e..966d33645 100644 --- a/functest/core/cloudify.py +++ b/functest/core/cloudify.py @@ -29,7 +29,7 @@ class Cloudify(singlevm.SingleVm2): __logger = logging.getLogger(__name__) filename = ('/home/opnfv/functest/images/' - 'ubuntu-16.04-server-cloudimg-amd64-disk1.img') + 'ubuntu-18.04-server-cloudimg-amd64.img') flavor_ram = 4096 flavor_vcpus = 2 flavor_disk = 40 @@ -64,9 +64,8 @@ class Cloudify(singlevm.SingleVm2): scpc.put(self.cloudify_archive, remote_path=os.path.basename(self.cloudify_archive)) (_, stdout, stderr) = self.ssh.exec_command( - "sudo wget https://get.docker.com/ -O script.sh && " - "sudo chmod +x script.sh && " - "sudo ./script.sh && " + "sudo apt-get update && " + "sudo apt-get install -y docker.io && " "sudo docker load -i " f"~/{os.path.basename(self.cloudify_archive)} && " "sudo docker run --name cfy_manager_local -d " -- cgit 1.2.3-korg