Dan Smith | c2772c2 | 2022-04-08 08:48:49 -0700 | [diff] [blame] | 1 | - name: Generate statistics |
| 2 | shell: |
| 3 | executable: /bin/bash |
| 4 | cmd: | |
| 5 | source {{ devstack_conf_dir }}/stackrc |
Dan Smith | cace404 | 2023-10-23 11:21:24 -0700 | [diff] [blame] | 6 | source {{ devstack_conf_dir }}/inc/python |
| 7 | setup_devstack_virtualenv |
| 8 | $PYTHON {{ devstack_conf_dir }}/tools/get-stats.py \ |
Dan Smith | c2772c2 | 2022-04-08 08:48:49 -0700 | [diff] [blame] | 9 | --db-user="$DATABASE_USER" \ |
| 10 | --db-pass="$DATABASE_PASSWORD" \ |
| 11 | --db-host="$DATABASE_HOST" \ |
| 12 | {{ apache_logs }} > {{ stage_dir }}/performance.json |
| 13 | vars: |
| 14 | apache_logs: >- |
| 15 | {% for i in debian_suse_apache_deref_logs.results | default([]) + redhat_apache_deref_logs.results | default([]) %} |
| 16 | --apache-log="{{ i.stat.path }}" |
| 17 | {% endfor %} |
Dan Smith | 1b601c7 | 2022-04-25 07:47:56 -0700 | [diff] [blame] | 18 | ignore_errors: yes |