Grab correct net UUID for CI Nova tests

putting net names in the net_id field doesn't really work.
Since it's a runtime error it doesn't actually fail Rally
like a normal config error, hence it went unoticed.

Easy enough to grab the correct id while templating and insert
it.

Change-Id: I94720e90e0d9cfe00c4b1e495a1fd24739cd7632
This commit is contained in:
jkilpatr 2017-03-17 15:48:12 -04:00
parent e29cdbf21c
commit 7d4413f364
7 changed files with 15 additions and 9 deletions

View File

@ -19,6 +19,7 @@
- browbeat/common
- browbeat/browbeat
- browbeat/browbeat-network
- browbeat/template-configs
- browbeat/statsd-ironic
- name: Disable sshd dns

View File

@ -16,6 +16,7 @@
- browbeat/common
- browbeat/browbeat
- browbeat/browbeat-network
- browbeat/template-configs
- name: Run Browbeat
hosts: undercloud

View File

@ -22,11 +22,6 @@
- name: Load CI vars
include_vars: "{{ lookup('env','HW_ENV_DIR') }}/all.yml"
- name: Template Browbeat configuration
template:
"src={{ browbeat_config_file }} \
dest={{ ansible_env.HOME }}/browbeat/browbeat-config.yaml"
- name: Install Pip
retries: 10
delay: 60

View File

@ -0,0 +1,9 @@
---
- name: Get Network ID
shell: "source {{ ansible_env.HOME }}/overcloudrc; neutron net-list | grep {{ browbeat_pri_net_name }} | cut -f 2 -d'|'"
register: nova_test_net_name
- name: Template Browbeat configuration
template:
"src={{ browbeat_config_file }} \
dest={{ ansible_env.HOME }}/browbeat/browbeat-config.yaml"

View File

@ -101,13 +101,13 @@ rally:
file: rally/nova/nova-boot-snapshot-cc.yml
image_name: cirros
flavor_name: m1.tiny
net_id: browbeat-private
net_id: {{ nova_test_net_name.stdout }}
- name: boot-list
enabled: true
file: rally/nova/nova-boot-list-cc.yml
image_name: cirros
flavor_name: m1.tiny
net_id: browbeat-private
net_id: {{ nova_test_net_name.stdout }}
- name: glance
enabled: true
concurrency:

View File

@ -51,7 +51,7 @@ perfkit:
os_type: rhel
openstack_image_username: centos
openstack_floating_ip_pool: browbeat_public
openstack_network: browbeat_private
openstack_network: nova_test_net_name.stdout
benchmarks:
- name: fio-centos-m1-small
enabled: false
@ -128,7 +128,7 @@ rally:
file: rally/nova/nova-boot-snapshot-cc.yml
image_name: cirros
flavor_name: m1.tiny
net_id: browbeat-private
net_id: {{ nova_test_net_name.stdout }}
- name: plugins
enabled: true
concurrency: