tripleo-quickstart-extras/roles/create-zuul-based-reproducer
Sorin Sbarnea fce23f7646 lint: enabled whitespace fixes
Adds two checks that were used in order repos (liketq)but not on this
one.

Change-Id: I4ccaf3dc78777b4b661fa17382f2feef8eb0d03e
2020-01-05 14:07:37 +00:00
..
defaults Add fresh-box-setup script for zuul-reproducer first run 2019-05-09 18:20:13 +03:00
meta Design new role for zuul-based reproducer 2019-02-08 11:39:09 -05:00
tasks ansible-lint: removed skip of 206 2019-10-25 17:15:40 +01:00
templates lint: enabled whitespace fixes 2020-01-05 14:07:37 +00:00
README.md update tqe openstack -> opendev 2019-04-22 13:17:19 -06:00

create-zuul-based-reproducer

This role creates a launcher-playbook and a wrapper Bash script to allow users to reproduce CI jobs using a local Zuul installation.

Role Variables

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

  • reproducer_zuul_based_quickstart_script: Bash script to kick the generated launcher playbook
  • reproducer_zuul_based_quickstart_readme_file: The documentation file with user instructions
  • reproducer_zuul_based_launcher_playbook: Template to create a launcher playbook with variable to reproduce the job run
  • launcher_env_setup_playbook: Template to create a playbook to set up the launcher environment 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

This role generates a launcher-playbook:

  • hosts: localhost tasks:

    • name: Add the localhost to the inventory add_host: name: "localhost" groups: "localhost" ansible_host: 127.0.0.1 ansible_connection: local

    • name: Add the primary to the inventory add_host: name: "localhost" groups: "primary" ansible_fqdn: "localhost" ansible_user: "{{ lookup('env', 'USER') }}" ansible_private_key_file: "/home/{{ ansible_user }}/.ssh/{{ user_pri_key | default('id_rsa') }}" ansible_host: "localhost"

  • import_playbook: playbooks/pre.yaml

  • hosts: localhost vars: depends_on: - https://review.opendev.org/xxxxxx zuul_yaml: >- - project: check: jobs: - tripleo-ci-centos-7-multinode-1ctlr-featureset010-dlrn-hash-tag

    - job:
        name: tripleo-ci-centos-7-multinode-1ctlr-featureset010-dlrn-hash-tag
        parent: tripleo-ci-centos-7-multinode-1ctlr-featureset010
        vars:
          mirror_fqdn: mirror.regionone.rdo-cloud.rdoproject.org
          featureset_override:
            dlrn_hash_tag:
              8127e43f39ac9b9e14d4a5a10bcbf41f122f32d7_d2efe5df
            dlrn_hash_tag_newest:
              ca4990cebac0be87ee4a7273f519574bc1027c8f_a1ff18dc
    

    tasks:

    • include_role: name: ansible-role-tripleo-ci-reproducer

License

Apache 2.0

Author Information

OpenStack