Skip to content

Commit

Permalink
Fix packer-1.2.5-functional-orange failing
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kiwik committed Sep 12, 2018
1 parent 4f1f8d3 commit 2375be5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion playbooks/packer-functional-public-clouds/run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit 2375be5

Please sign in to comment.