
The patch adds a functionality for detecting two smallest flavors available in the system in case, creation of resources is not allowed and m1.nano and m1.micro flavors are not available. Change-Id: Idc4fcd784385113a71fc8c33edd9c30be9c2bfd0 Story: 2002932 Task: 22919
21 lines
602 B
YAML
21 lines
602 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
|
|
register: result
|
|
|
|
- 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 0 \
|
|
{{ item.name }}
|
|
with_items:
|
|
- { name: "m1.nano", ram: 64 }
|
|
- { name: "m1.micro", ram: 128 }
|