--- - hosts: localhost tasks: - name: 'set_test_facts' set_fact: outdir: '{{ test_dir }}/task_out' run_at: 30 repeat_every: 60 until_time: 300 sched_job_dir: '{{ test_dir }}/sched_jobs' sched_poll_int: 15 hapxy_fail_run_at: 120 kill_signal: 'SIGKILL' targets: 'aic-haproxy' sched_out_file: '{{ test_dir }}/tmp/sched_daemon.out' j2_dir: '{{ test_dir }}/templates' inv_bin: '{{ test_dir }}/../bin/erisinv' rally_config: '{{ lookup("env", "ERIS_CONFIG_DIR") }}/sre1.json' scenario: '{{ test_dir }}/scenarios/boot-and-delete-for-duration.json' rally_log: '{{ test_dir }}/tmp/rally.log' rally_out: '{{ test_dir }}/tmp/rally.out' #- name: 'start_scheduler' # shell: sched_daemon --jobdir {{ sched_job_dir }} --poll-interval {{ sched_poll_int }} > {{ sched_out_file }} 2>&1 # register: sched_daemon_out # async: 350 # poll: 0 - name: 'start_free_monitor' template: src: '{{ j2_dir }}/free_monitor.j2' dest: '{{ sched_job_dir }}/free_monitor.json' - name: 'start_top_monitor' template: src: '{{ j2_dir }}/top_monitor.j2' dest: '{{ sched_job_dir }}/top_monitor.json' - name: 'start_netstat_monitor' template: src: '{{ j2_dir }}/netstat_monitor.j2' dest: '{{ sched_job_dir }}/netstat_monitor.json' - name: 'create_rally_db' command: rally-manage db recreate register: rally_manage_out failed_when: rally_manage_out.rc != 0 - name: 'create_deployment' command: rally deployment create --name=sre1 --filename={{ rally_config }} register: create_dep_out failed_when: create_dep_out.rc != 0 - name: 'check_deployment' command: rally deployment check --deployment=sre1 register: rally_dep_chk_out failed_when: rally_dep_chk_out.rc != 0 #- name: 'run_rally_task' # shell: rally --log-file={{ rally_log }} task start --deployment=sre1 --filename={{ scenario }} > {{ rally_out }} 2>&1 # async: 300 # poll: 0 # register: rally_run_out - name: 'create_hapxy_fail' template: src: '{{ j2_dir }}/haproxy_failure.j2' dest: '{{ sched_job_dir }}/haproxy_failure.json' #- name: 'main_waiter' # async_status: jid={{ rally_run_out.ansible_job_id }} # register: main_waiter_status # until: main_waiter_status.finished # retries: 1000 - name: 'stop_the_scheduler' template: src: '{{ j2_dir }}/stop_command.j2' dest: '{{ sched_job_dir }}/stop_command.json' ...