Skip to content

Commit 4009c5d

Browse files
authored
Merge branch 'stackhpc:stackhpc/yoga' into stackhpc/yoga
2 parents 8c6ab45 + 1c8e53b commit 4009c5d

File tree

15 files changed

+136
-101
lines changed

15 files changed

+136
-101
lines changed

doc/source/configuration/monitoring.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,12 @@ If you want to add an alerting rule, there are many good examples of alerts are
127127
available `here <https://awesome-prometheus-alerts.grep.to/>`__. They simply
128128
need to be added to one of the ``*.rules`` files in the prometheus configuration
129129
directory.
130+
131+
Ceph Monitoring
132+
===============
133+
134+
There is code in the globals.yml file to extract the ceph mgr nodes from the
135+
mgrs group and list them as the endpoints for prometheus. Additionally,
136+
depending on your configuration, you may need set the
137+
``kolla_enable_prometheus_ceph_mgr_exporter`` variable to ``true`` in order to
138+
enable the ceph mgr exporter.

etc/kayobe/ansible/cephadm-gather-keys.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@
4343
path: "{{ kayobe_env_config_path }}/kolla/config/{{ kolla_service_to_key_dir[item.name] }}"
4444
loop: "{{ kolla_ceph_services | selectattr('required') }}"
4545
loop_control:
46-
label:
47-
service: "{{ item.name }}"
46+
label: "{{ item.name }}"
4847
delegate_to: localhost
4948

5049
- name: Save Ceph keys to Kayobe configuration
@@ -59,9 +58,7 @@
5958
dest: "{{ kayobe_env_config_path }}/kolla/config/{{ kolla_service_to_key_dir[item.0.name] }}/ceph.{{ cephadm_user }}.keyring"
6059
loop: "{{ query('subelements', kolla_ceph_services | selectattr('required'), 'keys') }}"
6160
loop_control:
62-
label:
63-
service: "{{ item.0.name }}"
64-
key: "{{ item.1 }}"
61+
label: "{{ item.0.name }}: {{ item.1 }}"
6562
delegate_to: localhost
6663
notify: Please add and commit the Kayobe configuration
6764

@@ -74,9 +71,7 @@
7471
dest: "{{ kayobe_env_config_path }}/kolla/config/{{ kolla_service_to_conf_dir[item.0.name] }}/ceph.conf"
7572
loop: "{{ query('subelements', kolla_ceph_services | selectattr('required'), 'keys') }}"
7673
loop_control:
77-
label:
78-
service: "{{ item.0.name }}"
79-
key: "{{ item.1 }}"
74+
label: "{{ item.0.name }}: {{ item.1 }}"
8075
delegate_to: localhost
8176
notify: Please add and commit the Kayobe configuration
8277

etc/kayobe/ansible/smartmon-tools.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
- hosts: overcloud
33

44
tasks:
5-
- name: Ensure smartmon-tools and nvme-cli is installed
5+
- name: Ensure smartmon-tools, jq, nvme-cli and cron/cronie is installed
66
package:
77
name:
88
- smartmontools
99
- nvme-cli
1010
- jq
11+
- "{{ 'cron' if ansible_facts['distribution'] == 'Ubuntu' else 'cronie' }}"
1112
state: present
1213
become: true
1314

etc/kayobe/environments/ci-aio/stackhpc-ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
# Docker namespace to use for Kolla images. Default is 'kolla'.
66
kolla_docker_namespace: stackhpc-dev
77

8-
# Do not enable central logging if using Rocky Linux 9. It does not have elasticsearch
9-
kolla_enable_central_logging: "{{ os_release != '9' }}"
10-
118
###############################################################################
129
# Network configuration.
1310

@@ -54,8 +51,6 @@ stackhpc_repo_centos_stream_9_docker_version: "{{ stackhpc_pulp_repo_centos_stre
5451
stackhpc_repo_rhel_9_treasuredata_4_version: "{{ stackhpc_pulp_repo_rhel_9_treasuredata_4_version }}"
5552
stackhpc_repo_rhel_9_mariadb_10_6_version: "{{ stackhpc_pulp_repo_rhel_9_mariadb_10_6_version }}"
5653
stackhpc_repo_rhel_9_influxdb_version: "{{ stackhpc_pulp_repo_rhel_9_influxdb_version }}"
57-
stackhpc_repo_rocky_9_crb_version: "{{ stackhpc_pulp_repo_rocky_9_1_crb_version }}"
58-
stackhpc_repo_rocky_9_highavailability_version: "{{ stackhpc_pulp_repo_rocky_9_1_highavailability_version }}"
5954
stackhpc_repo_epel_9_version: "{{ stackhpc_pulp_repo_epel_9_version }}"
6055
## Use derived vars from etc/kayobe/pulp.yml to switch between
6156
## minor Rocky versions using stackhpc_pulp_repo_rocky_x_minor_version
@@ -65,6 +60,9 @@ stackhpc_repo_rocky_extras_version: "{{ stackhpc_pulp_repo_rocky_8_extras_versio
6560
stackhpc_repo_rocky_9_baseos_version: "{{ stackhpc_pulp_repo_rocky_9_baseos_version }}"
6661
stackhpc_repo_rocky_9_appstream_version: "{{ stackhpc_pulp_repo_rocky_9_appstream_version }}"
6762
stackhpc_repo_rocky_9_extras_version: "{{ stackhpc_pulp_repo_rocky_9_extras_version }}"
63+
stackhpc_repo_rocky_9_crb_version: "{{ stackhpc_pulp_repo_rocky_9_crb_version }}"
64+
stackhpc_repo_rocky_9_highavailability_version: "{{ stackhpc_pulp_repo_rocky_9_highavailability_version }}"
65+
stackhpc_pulp_repo_rocky_9_minor_version: 1
6866

6967
# Rocky-and-CI-specific Pulp urls
7068
stackhpc_include_os_minor_version_in_repo_url: true

etc/kayobe/environments/ci-builder/stackhpc-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ stackhpc_repo_centos_stream_9_docker_version: "{{ stackhpc_pulp_repo_centos_stre
7575
stackhpc_repo_rhel_9_treasuredata_4_version: "{{ stackhpc_pulp_repo_rhel_9_treasuredata_4_version }}"
7676
stackhpc_repo_rhel_9_mariadb_10_6_version: "{{ stackhpc_pulp_repo_rhel_9_mariadb_10_6_version }}"
7777
stackhpc_repo_rhel_9_influxdb_version: "{{ stackhpc_pulp_repo_rhel_9_influxdb_version }}"
78-
stackhpc_repo_rocky_9_crb_version: "{{ stackhpc_pulp_repo_rocky_9_1_crb_version }}"
79-
stackhpc_repo_rocky_9_highavailability_version: "{{ stackhpc_pulp_repo_rocky_9_1_highavailability_version }}"
8078
stackhpc_repo_epel_9_version: "{{ stackhpc_pulp_repo_epel_9_version }}"
8179
## Use derived vars from etc/kayobe/pulp.yml to switch between
8280
## minor Rocky versions using stackhpc_pulp_repo_rocky_x_minor_version
@@ -86,6 +84,8 @@ stackhpc_repo_rocky_extras_version: "{{ stackhpc_pulp_repo_rocky_8_extras_versio
8684
stackhpc_repo_rocky_9_baseos_version: "{{ stackhpc_pulp_repo_rocky_9_baseos_version }}"
8785
stackhpc_repo_rocky_9_appstream_version: "{{ stackhpc_pulp_repo_rocky_9_appstream_version }}"
8886
stackhpc_repo_rocky_9_extras_version: "{{ stackhpc_pulp_repo_rocky_9_extras_version }}"
87+
stackhpc_repo_rocky_9_crb_version: "{{ stackhpc_pulp_repo_rocky_9_crb_version }}"
88+
stackhpc_repo_rocky_9_highavailability_version: "{{ stackhpc_pulp_repo_rocky_9_highavailability_version }}"
8989

9090
# Rocky-and-CI-specific Pulp urls
9191
stackhpc_include_os_minor_version_in_repo_url: true

etc/kayobe/environments/ci-multinode/globals.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ os_distribution: "{{ lookup('pipe', '. /etc/os-release && echo $ID') | trim }}"
5151

5252
# OS release. Valid options are "8-stream" when os_distribution is "centos", or
5353
# "focal" when os_distribution is "ubuntu".
54-
#os_release:
55-
54+
os_release: >-
55+
{{ (lookup('pipe', '. /etc/os-release && echo $VERSION_CODENAME') | trim) if os_distribution == 'ubuntu' else
56+
(lookup('pipe', '. /etc/os-release && echo $VERSION_ID') | trim | split('.') | first) if os_distribution == 'rocky' else
57+
'stream-8' }}
5658
###############################################################################
5759

5860
# Avoid a reboot.

etc/kayobe/environments/ci-multinode/networks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ internal_vlan: 101
8181

8282
# External network
8383
external_cidr: 192.168.38.0/24
84-
external_mtu: 1450
84+
external_mtu: "{{ ansible_facts.default_ipv4.mtu - 50 }}"
8585
external_allocation_pool_start: 192.168.38.3
8686
external_allocation_pool_end: 192.168.38.128
8787
external_vlan: 102

etc/kayobe/environments/ci-multinode/stackhpc-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ stackhpc_repo_centos_stream_9_docker_version: "{{ stackhpc_pulp_repo_centos_stre
5151
stackhpc_repo_rhel_9_treasuredata_4_version: "{{ stackhpc_pulp_repo_rhel_9_treasuredata_4_version }}"
5252
stackhpc_repo_rhel_9_mariadb_10_6_version: "{{ stackhpc_pulp_repo_rhel_9_mariadb_10_6_version }}"
5353
stackhpc_repo_rhel_9_influxdb_version: "{{ stackhpc_pulp_repo_rhel_9_influxdb_version }}"
54-
stackhpc_repo_rocky_9_crb_version: "{{ stackhpc_pulp_repo_rocky_9_1_crb_version }}"
55-
stackhpc_repo_rocky_9_highavailability_version: "{{ stackhpc_pulp_repo_rocky_9_1_highavailability_version }}"
5654
stackhpc_repo_epel_9_version: "{{ stackhpc_pulp_repo_epel_9_version }}"
5755
## Use derived vars from etc/kayobe/pulp.yml to switch between
5856
## minor Rocky versions using stackhpc_pulp_repo_rocky_x_minor_version
@@ -62,6 +60,8 @@ stackhpc_repo_rocky_extras_version: "{{ stackhpc_pulp_repo_rocky_8_extras_versio
6260
stackhpc_repo_rocky_9_baseos_version: "{{ stackhpc_pulp_repo_rocky_9_baseos_version }}"
6361
stackhpc_repo_rocky_9_appstream_version: "{{ stackhpc_pulp_repo_rocky_9_appstream_version }}"
6462
stackhpc_repo_rocky_9_extras_version: "{{ stackhpc_pulp_repo_rocky_9_extras_version }}"
63+
stackhpc_repo_rocky_9_crb_version: "{{ stackhpc_pulp_repo_rocky_9_crb_version }}"
64+
stackhpc_repo_rocky_9_highavailability_version: "{{ stackhpc_pulp_repo_rocky_9_highavailability_version }}"
6565

6666
# Rocky-and-CI-specific Pulp urls
6767
stackhpc_include_os_minor_version_in_repo_url: true

0 commit comments

Comments
 (0)