
It seems nova has changed defaults on who can create zero-sized disk instances [1] and now os_tempest jobs failed with Only volume-backed servers are allowed for flavors with zero disk. Changing the disk to 1 fixes the same. [1] https://review.openstack.org/#/c/603910/ Change-Id: Id7467d037a7b0b4cb46add587395b21f28fb9df7
20 lines
581 B
YAML
20 lines
581 B
YAML
- name: Generate tempest.conf as demo user (tool will autodiscover flavors)
|
|
shell: |
|
|
./generate-tempestconf.sh
|
|
args:
|
|
chdir: "{{ tempestconf_src_relative_path }}"
|
|
executable: /bin/bash
|
|
|
|
- name: Create m1.nano and m1.micro flavors for demo user
|
|
shell: |
|
|
set -x
|
|
openstack flavor create --os-cloud {{ cloud_admin }} \
|
|
--public \
|
|
--ram {{ item.ram }} \
|
|
--vcpus 1 \
|
|
--disk 1 \
|
|
{{ item.name }}
|
|
with_items:
|
|
- { name: "m1.nano", ram: 64 }
|
|
- { name: "m1.micro", ram: 128 }
|