summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kopec <xkopec42@gmail.com>2019-01-29 12:08:20 +0000
committerMartin Kopec <xkopec42@gmail.com>2019-02-25 11:11:31 +0100
commit9de6b6f7d7b230c52bc036d5a3c3144f4e8a71e5 (patch)
tree8fec4ae22899028b7573dd5fbe189cecc9faaa87
parent74eedd7a7bc8827841a4e4b5cd05b9f38e71ee52 (diff)
Multi host support
The patch modifies the role in order to run different test sets on different nodes. Change-Id: I873c1066712fc9015575897a560b8d2e110cc5bf
-rw-r--r--.gitignore1
-rw-r--r--README.md63
-rw-r--r--defaults/main.yml59
-rw-r--r--group_vars/compute46
-rw-r--r--group_vars/controller5
-rw-r--r--group_vars/undercloud45
-rw-r--r--infrared_plugin/main.yml48
-rw-r--r--infrared_plugin/plugin.spec28
-rw-r--r--playbook.yaml25
-rw-r--r--tasks/artifacts.yml28
-rw-r--r--tasks/main.yml115
-rw-r--r--tasks/run_tests.yml77
-rw-r--r--templates/baremetal.json4
13 files changed, 320 insertions, 224 deletions
diff --git a/.gitignore b/.gitignore
index 172bf57..f3909c2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
.tox
+roles
diff --git a/README.md b/README.md
index cd82666..f3aecc8 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# ansible-role-openstack-certification
-An Ansible role to automate the certification process
+An Ansible role to automate the certification process.
## Pre-requisites
@@ -24,12 +24,12 @@ in details.
| openstack_certification_supported_apis_and_extensions | False | N/A | Array | List of supported APIs and extensions. |
| openstack_certification_enable_rhsm_repo | False | Yes | Bool | When No/False, RHSM registration will be omitted. |
| openstack_certification_repo_file | False | N/A | String | Path to a repo file, which will be copied to the host. |
-| openstack_certification_tempest_conf_path | False | N/A | String | Path to a tempest configuration file. |
+| openstack_certification_uc_tempest_conf | True | N/A | String | Path to a tempest configuration file on undercloud node. |
| openstack_certification_overcloud_node_ip | False | "" | String | IP address of a controller/compute node for director test. |
| openstack_certification_baremetal_driver | False | pxe_ipmitool | String | Ironic driver used for the certification. |
-| openstack_certification_instackenv | False | /home/stack/instackenv.json | String | Path to the instackenv.json file. |
-| openstack_certification_stackrc | False | /home/stack/stackrc | String | Path to the undercloud rc file. |
-| openstack_certification_overcloudrc | True | /home/stack/overcloudrc | String | Path to the overcloud rc file. |
+| openstack_certification_uc_instackenv | False | /home/stack/instackenv.json | String | Path to the instackenv.json file on undercloud. |
+| openstack_certification_uc_stackrc | False | /home/stack/stackrc | String | Path to the undercloud rc file on undercloud. |
+| openstack_certification_uc_overcloudrc | True | /home/stack/overcloudrc | String | Path to the overcloud rc file on undercloud. |
| openstack_certification_container_names | False | [] | Array | List of container images for trusted_container test. |
## Variables details
@@ -173,26 +173,47 @@ Available options for `openstack_certification_supported_apis_and_extensions` ar
## Example
+To run the role from the repository:
```
----
-- hosts: undercloud
- remote_user: stack
- become: yes
- vars:
- openstack_certification_supported_apis_and_extensions:
- - volumes
- - backups
- roles:
- - openstack-certification
+$ git clone https://github.com/redhat-cip/ansible-role-openstack-certification.git
+$ cd ansible-role-openstack-certification
+$ mkdir roles && ln -s $(pwd) roles/openstack-certification
+```
+Then set required variables in the `playbook.yaml` and define hosts file:
+```
+$ cat hosts
+[controller]
+<IP> ansible_user=<user>
+
+[compute]
+<IP> ansible_user=<user>
+
+[undercloud]
+<IP> ansible_user=<user>
+```
+And run it:
+```
+$ ansible-playbook playbook.yaml -i hosts
+```
+If you have more groups defined in your hosts file, you can limit groups which
+the tests are supposed to be executed on by:
+```
+$ ansible-playbook playbook.yaml -i hosts -l controller,compute
+```
+or replace ``all`` in playbook.yaml by list of the groups, for example:
+```
+hosts:
+ - compute
+ - controller
```
## Usage with InfraRed
-Run the following steps to run the plugin:
+Run the following steps to execute the role by infrared:
1. Install infrared and add ansible-role-openstack-certification plugin by
providing the url to this repo:
```
- (infrared)$ ir plugin add https://github.com/kopecmartin/ansible-role-openstack-certification.git --src-path infrared_plugin
+ (infrared)$ ir plugin add https://github.com/redhat-cip/ansible-role-openstack-certification.git --src-path infrared_plugin
```
2. You can verify that the plugin is imported by:
```
@@ -202,7 +223,13 @@ providing the url to this repo:
```
$ ln -s $(pwd)/plugins $(pwd)/plugins/ansible-role-openstack-certification/infrared_plugin/roles
```
-4. Run the plugin:
+4. Copy group_vars to infrared workspace:
+ ```
+ $ cp -r plugins/ansible-role-openstack-certification/group_vars/ .workspaces/active/
+ ```
+If you want to change the test set for a node, just modify group_vars as needed.
+
+5. Run the plugin:
```
(infrared)$ ir ansible-role-openstack-certification
```
diff --git a/defaults/main.yml b/defaults/main.yml
index b2290ce..dd3bd17 100644
--- a/defaults/main.yml
+++ b/defaults/main.yml
@@ -29,56 +29,6 @@ openstack_certification_dest_dir: "{{ lookup('env', 'PWD') }}"
#
openstack_certification_test_type: test
-# If one wants to enable test (default behavior)
-# make sure to set openstack_certification_test_type: test
-#
-openstack_certification_tests:
- - self_check
- - supportable
- - director
- - tempest_config
-# - sahara
-# - cinder_consistency_groups
-# - cinder_volumes
-# - manila_share_extend
-# - manila_share_managed
-# - manila_share_shrink
-# - manila_shares
-# - manila_snapshot_managed
-# - manila_snapshot_mountable
-# - manila_snapshot_revert_to_snapshot
-# - manila_snapshot_share_from_snapshot
-# - manila_snapshots
-# - neutron_address_scope
-# - neutron_agents
-# - neutron_attribute_extensions
-# - neutron_availability_zones
-# - neutron_dhcp_extra
-# - neutron_flavor
-# - neutron_gateway_extra
-# - neutron_gman
-# - neutron_ip_availability
-# - neutron_ipv4
-# - neutron_ipv6
-# - neutron_l2_multi_provider
-# - neutron_l3_extra_route
-# - neutron_l3_flavors
-# - neutron_l3_ha
-# - neutron_lbaasv2
-# - neutron_metering
-# - neutron_mtu
-# - neutron_qos
-# - neutron_rbac
-# - neutron_security_groups
-# - neutron_service_types
-# - neutron_subnet_allocation
-# - neutron_subnet_default_pool
-# - neutron_tags
-# - neutron_trunk
-# - baremetal
-# - trusted_container
-
-
# If one wants to enable tags rather than test
# make sure to set openstack_certification_test_type: tag
#
@@ -166,8 +116,7 @@ openstack_certification_supported_apis_and_extensions:
- data-sources
- plugins
-# openstack_certification_tempest_conf_path: /home/stack/tempest/etc/tempest.conf
-openstack_certification_tempest_conf_path_is_remote: true
+# openstack_certification_uc_tempest_conf: /home/stack/tempest/etc/tempest.conf
openstack_certification_enable_rhsm_repo: true
openstack_certification_install_rpms: >-
[ 'redhat-certification',
@@ -185,9 +134,9 @@ openstack_certification_overcloud_node_ip: ""
openstack_certification_baremetal_driver: pxe_ipmitool
# TripleO files
-openstack_certification_instackenv: /home/stack/instackenv.json
-openstack_certification_stackrc: /home/stack/stackrc
-openstack_certification_overcloudrc: /home/stack/overcloudrc
+openstack_certification_uc_instackenv: /home/stack/instackenv.json
+openstack_certification_uc_stackrc: /home/stack/stackrc
+openstack_certification_uc_overcloudrc: /home/stack/overcloudrc
# Container certification specific
openstack_certification_container_names: []
diff --git a/group_vars/compute b/group_vars/compute
new file mode 100644
index 0000000..20a349f
--- /dev/null
+++ b/group_vars/compute
@@ -0,0 +1,46 @@
+openstack_certification_tests:
+ - trusted_container
+ - supportable
+ - self_check
+ - sosreport
+ - director
+ - tempest_config
+ - sahara
+ - cinder_consistency_groups
+ - cinder_volumes
+ - manila_share_extend
+ - manila_share_managed
+ - manila_share_shrink
+ - manila_shares
+ - manila_snapshot_managed
+ - manila_snapshot_mountable
+ - manila_snapshot_revert_to_snapshot
+ - manila_snapshot_share_from_snapshot
+ - manila_snapshots
+ - neutron_address_scope
+ - neutron_agents
+ - neutron_attribute_extensions
+ - neutron_availability_zones
+ - neutron_dhcp_extra
+ - neutron_flavor
+ - neutron_gateway_extra
+ - neutron_gman
+ - neutron_ip_availability
+ - neutron_ipv4
+ - neutron_ipv6
+ - neutron_l2_multi_provider
+ - neutron_l3_extra_route
+ - neutron_l3_flavors
+ - neutron_l3_ha
+ - neutron_lbaasv2
+ - neutron_metering
+ - neutron_mtu
+ - neutron_qos
+ - neutron_rbac
+ - neutron_security_groups
+ - neutron_service_types
+ - neutron_subnet_allocation
+ - neutron_subnet_default_pool
+ - neutron_tags
+ - neutron_trunk
+ - baremetal
diff --git a/group_vars/controller b/group_vars/controller
new file mode 100644
index 0000000..3076225
--- /dev/null
+++ b/group_vars/controller
@@ -0,0 +1,5 @@
+openstack_certification_tests:
+ - trusted_container
+ - supportable
+ - self_check
+ - sosreport
diff --git a/group_vars/undercloud b/group_vars/undercloud
new file mode 100644
index 0000000..516a04b
--- /dev/null
+++ b/group_vars/undercloud
@@ -0,0 +1,45 @@
+openstack_certification_tests:
+ - supportable
+ - self_check
+ - sosreport
+ - director
+ - tempest_config
+ - sahara
+ - cinder_consistency_groups
+ - cinder_volumes
+ - manila_share_extend
+ - manila_share_managed
+ - manila_share_shrink
+ - manila_shares
+ - manila_snapshot_managed
+ - manila_snapshot_mountable
+ - manila_snapshot_revert_to_snapshot
+ - manila_snapshot_share_from_snapshot
+ - manila_snapshots
+ - neutron_address_scope
+ - neutron_agents
+ - neutron_attribute_extensions
+ - neutron_availability_zones
+ - neutron_dhcp_extra
+ - neutron_flavor
+ - neutron_gateway_extra
+ - neutron_gman
+ - neutron_ip_availability
+ - neutron_ipv4
+ - neutron_ipv6
+ - neutron_l2_multi_provider
+ - neutron_l3_extra_route
+ - neutron_l3_flavors
+ - neutron_l3_ha
+ - neutron_lbaasv2
+ - neutron_metering
+ - neutron_mtu
+ - neutron_qos
+ - neutron_rbac
+ - neutron_security_groups
+ - neutron_service_types
+ - neutron_subnet_allocation
+ - neutron_subnet_default_pool
+ - neutron_tags
+ - neutron_trunk
+ - baremetal
diff --git a/infrared_plugin/main.yml b/infrared_plugin/main.yml
index d6b3544..93f60f1 100644
--- a/infrared_plugin/main.yml
+++ b/infrared_plugin/main.yml
@@ -1,12 +1,36 @@
---
# This file and plugin.spec are required by Infrared project
-
- hosts: undercloud
remote_user: stack
become: true
+ pre_tasks:
+ - name: Set openstack_certification_uc_tempest_conf
+ set_fact:
+ openstack_certification_uc_tempest_conf: "{{ test.openstack_certification_uc_tempest_conf }}"
+ when: test.openstack_certification_uc_tempest_conf is defined
+
+ - name: Set openstack_certification_uc_overcloudrc
+ set_fact:
+ openstack_certification_uc_overcloudrc: "{{ test.openstack_certification_uc_overcloudrc }}"
+ when: test.openstack_certification_uc_overcloudrc is defined
+ tasks:
+ - name: Download overcloudrc to the slave
+ fetch:
+ src: "{{ openstack_certification_uc_overcloudrc }}"
+ dest: /tmp/overcloudrc
+ flat: true
+
+ - name: Download tempest.conf to the slave
+ fetch:
+ src: "{{ openstack_certification_uc_tempest_conf }}"
+ dest: /tmp/tempest.conf
+ flat: true
+
+- hosts: "{{ test.openstack_nodes }}"
+ remote_user: stack
+ become: true
roles:
- ansible-role-openstack-certification
-
pre_tasks:
- name: Set openstack_certification_output_format
set_fact:
@@ -28,21 +52,6 @@
openstack_certification_test_type: "{{ test.openstack_certification_test_type }}"
when: test.openstack_certification_test_type
- - name: Set openstack_certification_tests
- set_fact:
- openstack_certification_tests: "{{ test.openstack_certification_tests }}"
- when: test.openstack_certification_tests
-
- - name: Set openstack_certification_tags
- set_fact:
- openstack_certification_tags: "{{ test.openstack_certification_tags }}"
- when: test.openstack_certification_tags is defined
-
- - name: Set openstack_certification_programs
- set_fact:
- openstack_certification_programs: "{{ test.openstack_certification_programs }}"
- when: test.openstack_certification_programs is defined
-
- name: Set openstack_certification_supported_apis_and_extensions
set_fact:
openstack_certification_supported_apis_and_extensions: "{{ test.openstack_certification_supported_apis_and_extensions }}"
@@ -57,8 +66,3 @@
set_fact:
openstack_certification_repo_file: "{{ test.openstack_certification_repo_file }}"
when: test.openstack_certification_repo_file is defined
-
- - name: Set openstack_certification_tempest_conf_path
- set_fact:
- openstack_certification_tempest_conf_path: "{{ test.openstack_certification_tempest_conf_path }}"
- when: test.openstack_certification_tempest_conf_path is defined
diff --git a/infrared_plugin/plugin.spec b/infrared_plugin/plugin.spec
index 89ba9d2..e0bf2d9 100644
--- a/infrared_plugin/plugin.spec
+++ b/infrared_plugin/plugin.spec
@@ -16,7 +16,7 @@ subparsers:
type: Bool
help: |
Enable downloading the results file (/var/rhcert/results.xml)
- default: No
+ default: false
openstack_certification_output_filename:
type: Value
help: |
@@ -27,19 +27,6 @@ subparsers:
help: |
Type of suite of tests to run. (values: test, tag, program).
default: test
- openstack_certification_tests:
- type: ListValue
- help: |
- List of tests to run.
- default: self_check,supportable,director
- openstack_certification_tags:
- type: ListValue
- help: |
- List of tags to run.
- openstack_certification_programs:
- type: ListValue
- help: |
- List of programs to run.
openstack_certification_supported_apis_and_extensions:
type: ListValue
help: |
@@ -48,12 +35,21 @@ subparsers:
type: Bool
help: |
When No/False, RHSM registration will be omitted.
- default: Yes
+ default: true
openstack_certification_repo_file:
type: Value
help: |
Path to a repo file, which will be copied to the host.
- openstack_certification_tempest_conf_path:
+ openstack_certification_uc_tempest_conf:
type: Value
help: |
Path to a tempest configuration file.
+ openstack_certification_uc_overcloudrc:
+ type: Value
+ help: |
+ Path to overcloud credentials file.
+ openstack_nodes:
+ type: Value
+ help: |
+ OpenStack nodes the role will be executed on.
+ default: undercloud,controller
diff --git a/playbook.yaml b/playbook.yaml
new file mode 100644
index 0000000..dd71e9a
--- /dev/null
+++ b/playbook.yaml
@@ -0,0 +1,25 @@
+---
+- hosts: undercloud
+ remote_user: stack
+ become: true
+ vars:
+ openstack_certification_uc_tempest_conf: <path>
+ openstack_certification_uc_overcloudrc: <path>
+ tasks:
+ - name: Download overcloudrc to the slave
+ fetch:
+ src: "{{ openstack_certification_uc_overcloudrc }}"
+ dest: /tmp/overcloudrc
+ flat: true
+
+ - name: Download tempest.conf to the slave
+ fetch:
+ src: "{{ openstack_certification_uc_tempest_conf }}"
+ dest: /tmp/tempest.conf
+ flat: true
+
+- hosts: all
+ remote_user: stack
+ become: true
+ roles:
+ - openstack-certification
diff --git a/tasks/artifacts.yml b/tasks/artifacts.yml
new file mode 100644
index 0000000..bc229a7
--- /dev/null
+++ b/tasks/artifacts.yml
@@ -0,0 +1,28 @@
+---
+- name: Retrieve certification test results
+ become: true
+ shell: rhcert-ci print --format {{ openstack_certification_output_format }} | tail -n +2 | tee {{ openstack_certification_output_filename }}
+ args:
+ creates: '{{ openstack_certification_output_filename }}'
+
+- name: Download output file
+ become: true
+ fetch:
+ src: '{{ openstack_certification_output_filename }}'
+ dest: "{{ openstack_certification_dest_dir }}/{{ openstack_certification_output_filename.split('.')[0] }}_{{ ansible_hostname }}.{{ openstack_certification_output_filename.split('.')[1] }}"
+ flat: true
+
+- block:
+ - name: Compress results file
+ become: true
+ archive:
+ path: /var/rhcert/results.xml
+ format: gz
+
+ - name: Download results file
+ become: true
+ fetch:
+ src: '/var/rhcert/results.xml.gz'
+ dest: "{{ openstack_certification_dest_dir }}/certification_{{ ansible_hostname }}.xml.gz"
+ flat: true
+ when: openstack_certification_results_download|bool
diff --git a/tasks/main.yml b/tasks/main.yml
index 5372486..074333a 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -2,118 +2,11 @@
- name: Install Red Hat Certification rpms
include: prepare.yml
-- name: Test if rhosp-release is available (OSP10 and above)
- package:
- list: rhosp-release
- register: rhosp_status
+- name: Run tests
+ include: run_tests.yml
-- name: Install rhosp-release
- become: true
- package:
- name: rhosp-release
- when: rhosp_status.results|length >= 1
-
-- name: Combine all certification tags, tests and programs
- set_fact:
- all_certification_types: '{{ openstack_certification_tags }} + {{ openstack_certification_tests }} + {{ openstack_certification_programs }}'
-
-- block:
- - name: Register keystone_auth_url
- shell: "source {{ openstack_certification_overcloudrc }} && echo \"$OS_AUTH_URL\""
- register: keystone_auth_url
-
- - name: Register admin_username
- shell: "source {{ openstack_certification_overcloudrc }} && echo \"$OS_USERNAME\""
- register: admin_username
-
- - name: Register admin_password
- shell: "source {{ openstack_certification_overcloudrc }} && echo \"$OS_PASSWORD\""
- register: admin_password
-
- - name: Register admin_tenant_name
- shell: "source {{ openstack_certification_overcloudrc }} && echo \"$OS_TENANT_NAME\""
- register: admin_tenant_name
-
- - name: Register admin_project_name
- shell: "source {{ openstack_certification_overcloudrc }} && echo \"$OS_PROJECT_NAME\""
- register: admin_project_name
-
- - name: Create the test_config.json file
- become: true
- template:
- src: test_config.json.j2
- dest: /etc/redhat-certification-openstack/test_config.json
-
- - name: copy the tempest configuration file
- become: true
- copy:
- src: '{{ openstack_certification_tempest_conf_path }}'
- dest: /etc/redhat-certification-openstack
- remote_src: '{{ openstack_certification_tempest_conf_path_is_remote|bool }}'
- when: openstack_certification_tempest_conf_path is defined
- when: "'baremetal' not in all_certification_types"
-
-- name: Create the baremetal.json file
- become: true
- template:
- src: baremetal.json
- dest: /etc/redhat-certification-openstack/baremetal.json
- when: "'baremetal' in all_certification_types"
-
-- name: Run certification test suite with tag argument
- become: true
- shell: >
- set -x
- rhcert-ci clean all && rhcert-ci run --tag {{ item }} && rhcert-ci save
- with_items: "{{ openstack_certification_tags }}"
- ignore_errors: true
- when: openstack_certification_test_type == "tag"
-
-- name: Run certification test suite with program argument
- become: true
- shell: >
- set -x
- rhcert-ci clean all && rhcert-ci run --program {{ item }} && rhcert-ci save
- with_items: "{{ openstack_certification_programs }}"
- ignore_errors: true
- when: openstack_certification_test_type == "program"
-
-- name: Run certification test suite with test argument
- become: true
- shell: >
- set -x
- rhcert-ci clean all && rhcert-ci run --test {{" --test ".join(openstack_certification_tests)}} && rhcert-ci save
- ignore_errors: true
- when: openstack_certification_test_type != "tag" and openstack_certification_test_type != "program"
-
-- name: Retrieve certification test results
- become: true
- shell: rhcert-ci print --format {{ openstack_certification_output_format }} | tail -n +2 | tee {{ openstack_certification_output_filename }}
- args:
- creates: '{{ openstack_certification_output_filename }}'
-
-- name: Download output file
- become: true
- fetch:
- src: '{{ openstack_certification_output_filename }}'
- dest: "{{ openstack_certification_dest_dir }}/{{ openstack_certification_output_filename }}"
- flat: true
-
-- block:
- - name: Compress results file
- become: true
- archive:
- path: /var/rhcert/results.xml
- dest: /home/stack/certification.xml.gz
- format: gz
-
- - name: Download results file
- become: true
- fetch:
- src: 'certification.xml.gz'
- dest: "{{ openstack_certification_dest_dir }}/certification.xml.gz"
- flat: true
- when: openstack_certification_results_download|bool
+- name: Download artifacts
+ include: artifacts.yml
- name: Tempest cleanup
become: true
diff --git a/tasks/run_tests.yml b/tasks/run_tests.yml
new file mode 100644
index 0000000..7b75c73
--- /dev/null
+++ b/tasks/run_tests.yml
@@ -0,0 +1,77 @@
+---
+- name: Copy overcloudrc
+ become: true
+ copy:
+ src: /tmp/overcloudrc
+ dest: /etc/redhat-certification-openstack/overcloudrc
+
+- name: Copy tempest.conf
+ become: true
+ copy:
+ src: /tmp/tempest.conf
+ dest: /etc/redhat-certification-openstack/tempest.conf
+
+- name: Combine all certification tags, tests and programs
+ set_fact:
+ all_certification_types: '{{ openstack_certification_tags }} + {{ openstack_certification_tests }} + {{ openstack_certification_programs }}'
+
+- block:
+ - name: Register keystone_auth_url
+ shell: "source /etc/redhat-certification-openstack/overcloudrc && echo \"$OS_AUTH_URL\""
+ register: keystone_auth_url
+
+ - name: Register admin_username
+ shell: "source /etc/redhat-certification-openstack/overcloudrc && echo \"$OS_USERNAME\""
+ register: admin_username
+
+ - name: Register admin_password
+ shell: "source /etc/redhat-certification-openstack/overcloudrc && echo \"$OS_PASSWORD\""
+ register: admin_password
+
+ - name: Register admin_tenant_name
+ shell: "source /etc/redhat-certification-openstack/overcloudrc && echo \"$OS_TENANT_NAME\""
+ register: admin_tenant_name
+
+ - name: Register admin_project_name
+ shell: "source /etc/redhat-certification-openstack/overcloudrc && echo \"$OS_PROJECT_NAME\""
+ register: admin_project_name
+
+ - name: Create the test_config.json file
+ become: true
+ template:
+ src: test_config.json.j2
+ dest: /etc/redhat-certification-openstack/test_config.json
+ when: "'baremetal' not in all_certification_types"
+
+- name: Create the baremetal.json file
+ become: true
+ template:
+ src: baremetal.json
+ dest: /etc/redhat-certification-openstack/baremetal.json
+ when: "'undercloud' in group_names and 'baremetal' in all_certification_types"
+
+- name: Run certification test suite with tag argument
+ become: true
+ shell: >
+ set -x
+ rhcert-ci clean all && rhcert-ci run --tag {{ item }} && rhcert-ci save
+ with_items: "{{ openstack_certification_tags }}"
+ ignore_errors: true
+ when: openstack_certification_test_type == "tag"
+
+- name: Run certification test suite with program argument
+ become: true
+ shell: >
+ set -x
+ rhcert-ci clean all && rhcert-ci run --program {{ item }} && rhcert-ci save
+ with_items: "{{ openstack_certification_programs }}"
+ ignore_errors: true
+ when: openstack_certification_test_type == "program"
+
+- name: Run certification test suite with test argument
+ become: true
+ shell: >
+ set -x
+ rhcert-ci clean all && rhcert-ci run --test {{" --test ".join(openstack_certification_tests)}} && rhcert-ci save
+ ignore_errors: true
+ when: openstack_certification_test_type != "tag" and openstack_certification_test_type != "program"
diff --git a/templates/baremetal.json b/templates/baremetal.json
index ac773db..e8f2084 100644
--- a/templates/baremetal.json
+++ b/templates/baremetal.json
@@ -1,5 +1,5 @@
{
"driver_name": "{{ openstack_certification_baremetal_driver }}",
- "instackenv_path": "{{ openstack_certification_instackenv }}",
- "stackrc_path": "{{ openstack_certification_stackrc }}"
+ "instackenv_path": "{{ openstack_certification_uc_instackenv }}",
+ "stackrc_path": "{{ openstack_certification_uc_stackrc }}"
}