tripleo-quickstart-extras/roles/create-reproducer-script
Sagi Shnaidman a21afc0329 Support custom sequence of playbooks to run
When reproducing CI job sometimes needs to run a specific set of
playbooks only. Support this by pasing PLAYBOOKS variable in
env_source script.
Usage example:
- one needs to run everything before undercloud installation:
 * PLAYBOOKS="quickstart.yml" ./reproduce-quickstart.sh (in case of
multinode)
 * PLAYBOOKS:-"ovb-setup.yml" ./reproduce-quickstart.sh (in case of
OVB job)
- one needs to deploy everything before overcloud deployment:
 * PLAYBOOKS="quickstart.yml multinode-undercloud.yml multinode-overcloud-prep.yml"
  ./reproduce-quickstart.sh (in case of multinode)
 * PLAYBOOKS="ovb-setup.yml baremetal-full-undercloud.yml baremetal-full-overcloud-prep.yml"
  ./reproduce-quickstart.sh (in case of OVB)
List of used playbooks is in toci_gate_test-oooq.sh script
in tripleo-ci repo:
http://git.openstack.org/cgit/openstack-infra/tripleo-ci/tree/toci_gate_test-oooq.sh#n157

Change-Id: I6388c5e20d499a2e6c5e06f23de9851ef53b40a6
2018-05-02 16:26:13 +03:00
..
defaults Rework create reproducing script 2018-04-02 03:26:58 +03:00
meta Add reproducer script for OVB and multinode jobs 2017-12-16 22:21:33 +00:00
tasks Reduce reproducer redudancy 2018-04-30 13:24:08 +02:00
templates Support custom sequence of playbooks to run 2018-05-02 16:26:13 +03:00
README.md Add reproducer script for OVB and multinode jobs 2017-12-16 22:21:33 +00:00

README.md

create-reproducer-script

This role creates a script to reproduce OVB and multinode jobs.

Role Variables

For the defaults of these variables, see the defaults/main.yml file in this role.

  • env_vars_to_source_file: env_vars_to_src.sh
  • reproducer_quickstart_script: reproducer-quickstart.sh.j2 From the extras-common role:
  • artcl_collect_dir: "{{ local_working_dir }}/collected_files"

Dependencies

The role is run within the collect-logs role.

Example Playbook

---
- name: Create a file to reproduce the job
  hosts: localhost
  roles:
    - create-reproducer-script

License

Apache 2.0

Author Information

OpenStack