From 2375be5dfe6287358d878d527b369c16fa6ef1a4 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Wed, 12 Sep 2018 10:31:35 +0800 Subject: [PATCH] Fix packer-1.2.5-functional-orange failing We test packer with flavor t2.micro against Orange cloud, vm can be launched and active, but guest OS and sshd process launch slowly, that cause packer check ssh connection timeout. Closes: theopenlab/openlab#80 --- playbooks/packer-functional-public-clouds/run.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/playbooks/packer-functional-public-clouds/run.yaml b/playbooks/packer-functional-public-clouds/run.yaml index deb762417c136..b810ae50c9a01 100644 --- a/playbooks/packer-functional-public-clouds/run.yaml +++ b/playbooks/packer-functional-public-clouds/run.yaml @@ -10,7 +10,9 @@ set -ex set -o pipefail pip install python-openstackclient - flavor=$(openstack flavor list -f value -c ID -c RAM -c VCPUs --sort-column RAM --sort-column VCPUs | head -n 1 | awk '{print $1}') + # Using second smallest flavor, because first one might cause testing failed. + # See https://github.com/theopenlab/openlab/issues/80 + flavor=$(openstack flavor list -f value -c ID -c RAM -c VCPUs --sort-column RAM --sort-column VCPUs | awk 'NR==2{print $1}') network=$(openstack network show openlab-jobs-net -f value -c id) src_img_name=$(openstack image list |grep -Eo "cirros.*0.4.0.*-disk") image_name="packer-cirros-openstack-$(date +%s)"