[ATMOSPHERE-527] [stable/zed] Improve NeutronNetworkOutOfIPs alarm (#2064)
This is an automated cherry-pick of #2063
/assign larainema
diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml
index b5fece9..ba0f2dd 100644
--- a/zuul.d/jobs.yaml
+++ b/zuul.d/jobs.yaml
@@ -8,6 +8,13 @@
pre-run: zuul.d/playbooks/linters/pre.yml
- job:
+ name: atmosphere-tox-promtool-test
+ parent: tox
+ pre-run: zuul.d/playbooks/promtool/pre.yml
+ vars:
+ tox_envlist: promtool-test
+
+- job:
name: atmosphere-tox-py3
parent: tox
diff --git a/zuul.d/playbooks/promtool/pre.yml b/zuul.d/playbooks/promtool/pre.yml
new file mode 100644
index 0000000..8c5f70f
--- /dev/null
+++ b/zuul.d/playbooks/promtool/pre.yml
@@ -0,0 +1,34 @@
+# Copyright (c) 2024 VEXXHOST, Inc.
+# SPDX-License-Identifier: Apache-2.0
+
+- hosts: all
+ tasks:
+ - name: Install promtool
+ block:
+ - name: Create temporary file to download
+ ansible.builtin.tempfile:
+ state: file
+ suffix: .tar.gz
+ register: promtool_file
+
+ - name: Download Prometheus
+ ansible.builtin.get_url:
+ url: https://github.com/prometheus/prometheus/releases/download/v2.55.0/prometheus-2.55.0.linux-amd64.tar.gz
+ dest: "{{ promtool_file.path }}"
+ checksum: sha256:7a6b6d5ea003e8d59def294392c64e28338da627bf760cf268e788d6a8832a23
+
+ - name: Extract Prometheus into /usr/local/bin
+ become: true
+ ansible.builtin.unarchive:
+ src: "{{ promtool_file.path }}"
+ dest: /usr/local/bin
+ remote_src: true
+ extra_opts:
+ - --strip-components=1
+ include:
+ - prometheus-2.55.0.linux-amd64/promtool
+ always:
+ - name: Remove temporary file
+ ansible.builtin.file:
+ path: "{{ promtool_file.path }}"
+ state: absent
diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml
index 68a0cf7..a1930e3 100644
--- a/zuul.d/project.yaml
+++ b/zuul.d/project.yaml
@@ -18,6 +18,7 @@
jobs:
- atmosphere-chart-vendor
- atmosphere-linters
+ - atmosphere-tox-promtool-test
- atmosphere-tox-py3
- atmosphere-build-collection:
dependencies: &molecule_check_dependencies