Skip to content

Commit 211a3e1

Browse files
Adding retry to the ceilometer_cpu metric task (#185)
* Adding retry to the ceilometer_cpu metric task There is not enough time for that metric to be scraped. We should add a retry to the task. Worst case scenario the metric can take 2 minutes to appear. Co-authored-by: Emma Foley <[email protected]>
1 parent 02cb479 commit 211a3e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

roles/telemetry_autoscaling/tasks/creating_stack.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@
7272
# source ~/overcloudrc;
7373
{{ openstack_cmd }} metric list
7474
register: result
75-
failed_when: '"ceilometer_cpu" not in result.stdout'
75+
retries: 12
76+
delay: 10
77+
until: '"ceilometer_cpu" in result.stdout'
7678

7779
- name: Print the result
7880
ansible.builtin.debug:

0 commit comments

Comments
 (0)