Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions etc/kayobe/ansible/pulp-host-image-promote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
name: "{{ repository_name }}_{{ promotion_tag }}"
base_path: "{{ base_path }}/{{ promotion_tag }}"
register: distribution_details
until: distribution_details is success
retries: 3
delay: 5

- name: Fail if the image does not exist
fail:
Expand All @@ -34,6 +37,10 @@
base_path: "{{ base_path }}/{{ promotion_tag }}"
content_guard: release
state: present
register: content_guard_result
until: content_guard_result is success
retries: 3
delay: 5

- name: Print version tag and os
debug:
Expand Down
26 changes: 26 additions & 0 deletions etc/kayobe/ansible/pulp-host-image-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
password: "{{ remote_pulp_password }}"
file: "{{ found_files.files[0].path }}"
state: present
register: upload_result
until: upload_result is success
retries: 3
delay: 60

- name: Get sha256 hash
ansible.builtin.stat:
Expand All @@ -40,6 +44,10 @@
sha256: "{{ file_stats.stat.checksum }}"
relative_path: "{{ found_files.files[0].path | basename }}"
state: present
register: file_content_result
until: file_content_result is success
retries: 3
delay: 5

- name: Ensure file repo exists
pulp.squeezer.file_repository:
Expand All @@ -48,6 +56,10 @@
password: "{{ remote_pulp_password }}"
name: "{{ repository_name }}"
state: present
register: file_repo_result
until: file_repo_result is success
retries: 3
delay: 5

- name: Add content to file repo
pulp.squeezer.file_repository_content:
Expand All @@ -58,6 +70,10 @@
present_content:
- relative_path: "{{ found_files.files[0].path | basename }}"
sha256: "{{ file_stats.stat.checksum }}"
register: file_repo_content_result
until: file_repo_content_result is success
retries: 3
delay: 5

- name: Create a new publication to point to this version
pulp.squeezer.file_publication:
Expand All @@ -67,6 +83,9 @@
repository: "{{ repository_name }}"
state: present
register: publication_details
until: publication_details is success
retries: 3
delay: 5

- name: Update distribution for latest version
pulp.squeezer.file_distribution:
Expand All @@ -79,6 +98,9 @@
content_guard: development
state: present
register: latest_distribution_details
until: latest_distribution_details is success
retries: 3
delay: 5

- name: Create distribution for given version
pulp.squeezer.file_distribution:
Expand All @@ -91,6 +113,10 @@
content_guard: development
state: present
when: latest_distribution_details.changed
register: distribution_result
until: distribution_result is success
retries: 3
delay: 5

- name: Update new images file with versioned path
lineinfile:
Expand Down
2 changes: 1 addition & 1 deletion etc/kayobe/kolla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ kolla_build_customizations: "{{ kolla_build_customizations_common | combine(koll

# Dict mapping Kolla Dockerfile ARG names to their values.
kolla_build_args:
node_exporter_version: "1.5.0" # kolla has 1.4.0
node_exporter_version: "1.5.0" # kolla has 1.4.0
node_exporter_sha256sum: "af999fd31ab54ed3a34b9f0b10c28e9acee9ef5ac5a5d5edfdde85437db7acbb"

###############################################################################
Expand Down
24 changes: 24 additions & 0 deletions etc/kayobe/kolla/config/prometheus/system.rules
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,30 @@ groups:
summary: Host clock not synchronising (instance {{ $labels.instance }})
description: "Clock not synchronising. Ensure NTP is configured on this host."

- alert: HostNetworkBondDegraded
expr: (node_bonding_active - node_bonding_slaves) != 0
for: 2m
labels:
severity: warning
annotations:
summary: Host network bond degraded (instance {{ $labels.instance }})
description: "Bond {{ $labels.master }} degraded on {{ $labels.instance }}"
{% endraw %}

{% if alertmanager_warn_network_bond_single_link | bool %}
{% raw %}
- alert: HostNetworkBondSingleLink
expr: node_bonding_slaves == 1
for: 2m
labels:
severity: warning
annotations:
summary: Host network bond with a single link (instance {{ $labels.instance }})
description: "Bond {{ $labels.master }} configured with a single link on {{ $labels.instance }}"
{% endraw %}
{% endif %}

{% raw %}
- alert: HostConntrackLimit
expr: node_nf_conntrack_entries / node_nf_conntrack_entries_limit > 0.8
for: 5m
Expand Down
4 changes: 4 additions & 0 deletions etc/kayobe/stackhpc-monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
# of free memory is lower than this value an alert will be triggered.
alertmanager_low_memory_threshold_gib: 5

# Whether to raise an alert if any network bond is configured with a single
# link. Change to false to disable this alert.
alertmanager_warn_network_bond_single_link: true

###############################################################################
# Exporter configuration

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
features:
- |
Adds a new Prometheus alert ``HostNetworkBondDegraded`` which will be
raised when at least one bond member is down.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
features:
- |
Adds a new Prometheus alert ``HostNetworkBondSingleLink`` which will be
raised when a bond is configured with only one member. This can happen when
NetworkManager detects that a bond member is down at boot time. This alert
can be disabled by setting ``alertmanager_warn_network_bond_single_link``
to ``false``.