From a1a3720f7b4824c5f3d8fa31056886e1bb46d764 Mon Sep 17 00:00:00 2001
From: Jakub Libosvar <libosvar@redhat.com>
Date: Tue, 31 Jan 2017 20:11:59 +0100
Subject: [PATCH] tempest: Pin Ubuntu image to one version

The tests running with Ubuntu image used to pass and then suddenly all
of them stopped working. The reason was the public key was added to the
authorized_keys to root directory instead of ubuntu user directory. This
patch pins the used version to specific release date so we don't get
broken in the future with the same issue again.

Also this patch decreases amount of memory per guest to 512M as it
appears to work fine.

Change-Id: I93d7d4e72c1708017afecf22defbebc10bf6bcf7
---
 neutron/tests/contrib/hooks/ubuntu_image | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/neutron/tests/contrib/hooks/ubuntu_image b/neutron/tests/contrib/hooks/ubuntu_image
index e48a26aba1d..ad710b8b832 100644
--- a/neutron/tests/contrib/hooks/ubuntu_image
+++ b/neutron/tests/contrib/hooks/ubuntu_image
@@ -1,5 +1,5 @@
 DOWNLOAD_DEFAULT_IMAGES=False
-IMAGE_URLS="http://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img,"
-DEFAULT_INSTANCE_TYPE="ds1G"
-DEFAULT_INSTANCE_USER="ubuntu"
+IMAGE_URLS="http://cloud-images.ubuntu.com/releases/16.04/release-20170113/ubuntu-16.04-server-cloudimg-amd64-disk1.img,"
+DEFAULT_INSTANCE_TYPE=ds512M
+DEFAULT_INSTANCE_USER=ubuntu
 BUILD_TIMEOUT=392