Skip to content

Commit

Permalink
Merge pull request apache#318 from theopenlab/fix-packer-orange
Browse files Browse the repository at this point in the history
Fix packer-1.2.5-functional-orange failing
  • Loading branch information
liusheng authored Sep 12, 2018
2 parents 4f1f8d3 + 2375be5 commit b8d5f86
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 b8d5f86

Please sign in to comment.