Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mediabot-fleet-hourly-r2.zip: Réussi
- README.md: Réussi
- apercu.png: Réussi
- dashboard.py: Réussi
- deploy.py: Réussi
- ensure_metrics.py: Réussi
- fleet.json: Réussi
- install.yml: Réussi
- metrics_support.py: Réussi
- platform_support.py: Réussi
- probe.py: Réussi
- probe_tasks.yml: Réussi
- routes.py: Réussi
- test_fleet.py: Réussi
- test_r2.py: Réussi
- test_unified.py: Réussi
- test_ambiguous_target_rejected (test_fleet.Fleet.test_ambiguous_target_rejected) ... ok
- test_binding_matches_exporter_identity_not_port (test_fleet.Fleet.test_binding_matches_exporter_identity_not_port) ... [CIBLE] teuk-dev -> mediabot / teuk-dev
- [CIBLE] teuk-undernet -> mediabot / teuk-undernet
- [CIBLE] nbot-epiknet -> mediabot / nbot-epiknet
- [CIBLE] ubot-undernet -> mediabot / ubot-undernet
- [CIBLE] witch-undernet -> mediabot / witch-undernet
- [CIBLE] mediabot-libera -> mediabot / mediabot-libera
- ok
- test_every_counter_is_hourly_and_scoped (test_fleet.Fleet.test_every_counter_is_hourly_and_scoped) ... ok
- test_exact_six_and_same_host_two_distinct_configs (test_fleet.Fleet.test_exact_six_and_same_host_two_distinct_configs) ... ok
- test_hostile_labels_are_json_escaped (test_fleet.Fleet.test_hostile_labels_are_json_escaped) ... ok
- test_missing_target_rejected_before_install (test_fleet.Fleet.test_missing_target_rejected_before_install) ... ok
- test_no_mutating_remote_action (test_fleet.Fleet.test_no_mutating_remote_action) ... ok
- test_six_collapsed_rows_and_all_sources_bound (test_fleet.Fleet.test_six_collapsed_rows_and_all_sources_bound) ... ok
- test_unique_ids_no_top_level_overlaps (test_fleet.Fleet.test_unique_ids_no_top_level_overlaps) ... ok
- test_absent_metrics_section_defaults_9108 (test_r2.R2.test_absent_metrics_section_defaults_9108) ... ok
- test_activation_failure_restores_config (test_r2.R2.test_activation_failure_restores_config) ... ok
- test_ambiguous_scrapes_refused (test_r2.R2.test_ambiguous_scrapes_refused) ... ok
- test_configured_metrics_port_ignores_partyline (test_r2.R2.test_configured_metrics_port_ignores_partyline) ... ok
- test_existing_exporter_is_not_reconfigured (test_r2.R2.test_existing_exporter_is_not_reconfigured) ... ok
- test_only_new_loopback_tunnel_forwards (test_r2.R2.test_only_new_loopback_tunnel_forwards) ... ok
- test_remote_delegation_overrides_local_connection (test_r2.R2.test_remote_delegation_overrides_local_connection) ... ok
- test_reuse_does_not_create_tunnel_or_restart (test_r2.R2.test_reuse_does_not_create_tunnel_or_restart) ... [OK] Collecte réutilisée : ubot-undernet
- ok
- test_absence_uses_no_legacy_table (test_unified.Unified.test_absence_uses_no_legacy_table) ... ok
- test_deleted_resource_excluded (test_unified.Unified.test_deleted_resource_excluded) ... ok
- test_foreign_provider_is_not_adopted (test_unified.Unified.test_foreign_provider_is_not_adopted) ... ok
- test_other_organization_excluded (test_unified.Unified.test_other_organization_excluded) ... ok
- test_unified_current_content_and_read_only (test_unified.Unified.test_unified_current_content_and_read_only) ... ok
- test_wait_accepts_v2_query_structure (test_unified.Unified.test_wait_accepts_v2_query_structure) ... /usr/lib/python3.13/unittest/mock.py:2247: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f32c83324d0>
- def __init__(self, name, parent):
- ResourceWarning: Enable tracemalloc to get the object allocation traceback
- /usr/lib/python3.13/unittest/mock.py:2247: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f32c8332890>
- def __init__(self, name, parent):
- ResourceWarning: Enable tracemalloc to get the object allocation traceback
- /usr/lib/python3.13/unittest/mock.py:2247: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f32c83322f0>
- def __init__(self, name, parent):
- ResourceWarning: Enable tracemalloc to get the object allocation traceback
- /usr/lib/python3.13/unittest/mock.py:2247: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f32c8332980>
- def __init__(self, name, parent):
- ResourceWarning: Enable tracemalloc to get the object allocation traceback
- /usr/lib/python3.13/unittest/mock.py:2247: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f32c83326b0>
- def __init__(self, name, parent):
- ResourceWarning: Enable tracemalloc to get the object allocation traceback
- /usr/lib/python3.13/unittest/mock.py:2247: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f32c8332c50>
- def __init__(self, name, parent):
- ResourceWarning: Enable tracemalloc to get the object allocation traceback
- /usr/lib/python3.13/unittest/mock.py:2247: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f32c8332a70>
- def __init__(self, name, parent):
- ResourceWarning: Enable tracemalloc to get the object allocation traceback
- /usr/lib/python3.13/unittest/mock.py:2247: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f32c83327a0>
- def __init__(self, name, parent):
- ResourceWarning: Enable tracemalloc to get the object allocation traceback
- /usr/lib/python3.13/unittest/mock.py:2247: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f32c8332d40>
- def __init__(self, name, parent):
- ResourceWarning: Enable tracemalloc to get the object allocation traceback
- /usr/lib/python3.13/unittest/mock.py:2247: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f32c8332e30>
- def __init__(self, name, parent):
- ResourceWarning: Enable tracemalloc to get the object allocation traceback
- /usr/lib/python3.13/unittest/mock.py:2247: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f32c8332f20>
- def __init__(self, name, parent):
- ResourceWarning: Enable tracemalloc to get the object allocation traceback
- ok
- test_wrong_expression_is_rejected (test_unified.Unified.test_wrong_expression_is_rejected) ... ok
- ----------------------------------------------------------------------
- Ran 24 tests in 0.108s
- OK
- playbook: install.yml
- [14:55:03:ansible@teuk:~] (
- set -Eeuo pipefail
- test "$(id -un)" = ansible
- cd /home/ansible/mediabot-fleet-hourly-r2
- ansible-playbook install.yml
- )
- PLAY [Installer Mediabot Fleet par heure sur teuk] *********************************************************************************************************************************
- TASK [Vérifier les hôtes distants dans ton inventaire habituel] ********************************************************************************************************************
- ok: [localhost] => {
- "changed": false,
- "msg": "All assertions passed"
- }
- TASK [Vérifier Grafana et Prometheus avant toute installation] *********************************************************************************************************************
- ok: [localhost]
- TASK [Identifier les exporteurs par répertoire et configuration] *******************************************************************************************************************
- included: /home/ansible/mediabot-fleet-hourly-r2/probe_tasks.yml for localhost => (item=teuk.org)
- included: /home/ansible/mediabot-fleet-hourly-r2/probe_tasks.yml for localhost => (item=nbot.soyou.rocks)
- included: /home/ansible/mediabot-fleet-hourly-r2/probe_tasks.yml for localhost => (item=ubot.teuk.org)
- included: /home/ansible/mediabot-fleet-hourly-r2/probe_tasks.yml for localhost => (item=witch.soyou.rocks)
- included: /home/ansible/mediabot-fleet-hourly-r2/probe_tasks.yml for localhost => (item=mediabot.teuk.org)
- TASK [Initialiser les références temporaires de cet hôte] **************************************************************************************************************************
- ok: [localhost]
- TASK [Créer un répertoire temporaire privé pour la sonde] **************************************************************************************************************************
- changed: [localhost]
- TASK [Copier uniquement la sonde et son support] ***********************************************************************************************************************************
- changed: [localhost] => (item=probe.py)
- changed: [localhost] => (item=metrics_support.py)
- changed: [localhost] => (item=ensure_metrics.py)
- TASK [Lire les processus et les métriques et activer les métriques si nécessaire] **************************************************************************************************
- ok: [localhost]
- TASK [Rassembler les identités des exporteurs] *************************************************************************************************************************************
- ok: [localhost]
- TASK [Retirer les fichiers temporaires de cette sonde] *****************************************************************************************************************************
- changed: [localhost]
- TASK [Initialiser les références temporaires de cet hôte] **************************************************************************************************************************
- ok: [localhost]
- TASK [Créer un répertoire temporaire privé pour la sonde] **************************************************************************************************************************
- changed: [localhost -> nbot.soyou.rocks]
- TASK [Copier uniquement la sonde et son support] ***********************************************************************************************************************************
- changed: [localhost -> nbot.soyou.rocks] => (item=probe.py)
- changed: [localhost -> nbot.soyou.rocks] => (item=metrics_support.py)
- changed: [localhost -> nbot.soyou.rocks] => (item=ensure_metrics.py)
- TASK [Lire les processus et les métriques et activer les métriques si nécessaire] **************************************************************************************************
- ok: [localhost -> nbot.soyou.rocks]
- TASK [Rassembler les identités des exporteurs] *************************************************************************************************************************************
- ok: [localhost -> nbot.soyou.rocks]
- TASK [Retirer les fichiers temporaires de cette sonde] *****************************************************************************************************************************
- changed: [localhost -> nbot.soyou.rocks]
- TASK [Initialiser les références temporaires de cet hôte] **************************************************************************************************************************
- ok: [localhost]
- TASK [Créer un répertoire temporaire privé pour la sonde] **************************************************************************************************************************
- changed: [localhost -> ubot.teuk.org]
- TASK [Copier uniquement la sonde et son support] ***********************************************************************************************************************************
- changed: [localhost -> ubot.teuk.org] => (item=probe.py)
- changed: [localhost -> ubot.teuk.org] => (item=metrics_support.py)
- changed: [localhost -> ubot.teuk.org] => (item=ensure_metrics.py)
- TASK [Lire les processus et les métriques et activer les métriques si nécessaire] **************************************************************************************************
- ok: [localhost -> ubot.teuk.org]
- TASK [Rassembler les identités des exporteurs] *************************************************************************************************************************************
- ok: [localhost -> ubot.teuk.org]
- TASK [Retirer les fichiers temporaires de cette sonde] *****************************************************************************************************************************
- changed: [localhost -> ubot.teuk.org]
- TASK [Initialiser les références temporaires de cet hôte] **************************************************************************************************************************
- ok: [localhost]
- TASK [Créer un répertoire temporaire privé pour la sonde] **************************************************************************************************************************
- changed: [localhost -> witch.soyou.rocks]
- TASK [Copier uniquement la sonde et son support] ***********************************************************************************************************************************
- changed: [localhost -> witch.soyou.rocks] => (item=probe.py)
- changed: [localhost -> witch.soyou.rocks] => (item=metrics_support.py)
- changed: [localhost -> witch.soyou.rocks] => (item=ensure_metrics.py)
- TASK [Lire les processus et les métriques et activer les métriques si nécessaire] **************************************************************************************************
- changed: [localhost -> witch.soyou.rocks]
- TASK [Rassembler les identités des exporteurs] *************************************************************************************************************************************
- ok: [localhost -> witch.soyou.rocks]
- TASK [Retirer les fichiers temporaires de cette sonde] *****************************************************************************************************************************
- changed: [localhost -> witch.soyou.rocks]
- TASK [Initialiser les références temporaires de cet hôte] **************************************************************************************************************************
- ok: [localhost]
- TASK [Créer un répertoire temporaire privé pour la sonde] **************************************************************************************************************************
- changed: [localhost -> mediabot.teuk.org]
- TASK [Copier uniquement la sonde et son support] ***********************************************************************************************************************************
- changed: [localhost -> mediabot.teuk.org] => (item=probe.py)
- changed: [localhost -> mediabot.teuk.org] => (item=metrics_support.py)
- changed: [localhost -> mediabot.teuk.org] => (item=ensure_metrics.py)
- TASK [Lire les processus et les métriques et activer les métriques si nécessaire] **************************************************************************************************
- changed: [localhost -> mediabot.teuk.org]
- TASK [Rassembler les identités des exporteurs] *************************************************************************************************************************************
- ok: [localhost -> mediabot.teuk.org]
- TASK [Retirer les fichiers temporaires de cette sonde] *****************************************************************************************************************************
- changed: [localhost -> mediabot.teuk.org]
- TASK [Afficher les instances et sauvegardes éventuelles] ***************************************************************************************************************************
- ok: [localhost] => (item=teuk-dev) => {
- "msg": "teuk-dev : [email protected] ; métriques modifiées=False ; sauvegarde=aucune"
- }
- ok: [localhost] => (item=teuk-undernet) => {
- "msg": "teuk-undernet : [email protected] ; métriques modifiées=False ; sauvegarde=aucune"
- }
- ok: [localhost] => (item=nbot-epiknet) => {
- "msg": "nbot-epiknet : [email protected] ; métriques modifiées=False ; sauvegarde=aucune"
- }
- ok: [localhost] => (item=ubot-undernet) => {
- "msg": "ubot-undernet : [email protected] ; métriques modifiées=False ; sauvegarde=aucune"
- }
- ok: [localhost] => (item=witch-undernet) => {
- "msg": "witch-undernet : [email protected] ; métriques modifiées=True ; sauvegarde=/var/backups/mediabot-nbot-metrics-hwxup35y/mediabot.conf"
- }
- ok: [localhost] => (item=mediabot-libera) => {
- "msg": "mediabot-libera : [email protected] ; métriques modifiées=True ; sauvegarde=/var/backups/mediabot-nbot-metrics-t3jf6_wx/mediabot.conf"
- }
- TASK [Raccorder les collectes absentes depuis teuk] ********************************************************************************************************************************
- changed: [localhost]
- TASK [Afficher les raccordements] **************************************************************************************************************************************************
- ok: [localhost] => {
- "route_result.stdout_lines": [
- "[OK] Prometheus UP : mediabot / 127.0.0.1:9108 (métriques Mediabot).",
- "[OK] Collecte réutilisée : teuk-dev",
- "[OK] Prometheus UP : mediabot-teuk-undernet / teuk-undernet (métriques Mediabot).",
- "[OK] Collecte réutilisée : teuk-undernet",
- "[OK] Prometheus UP : mediabot / nbot.soyou.rocks:9108 (métriques Mediabot).",
- "[OK] Collecte réutilisée : nbot-epiknet",
- "[SAUVEGARDE] /var/backups/mediabot-fleet-route-v90ilcnp/prometheus.yml",
- "[OK] Prometheus UP : mediabot-fleet-ubot-undernet / ubot-undernet (métriques Mediabot).",
- "[CHANGED] Collecte prête : ubot-undernet",
- "[SAUVEGARDE] /var/backups/mediabot-fleet-route-unxtmj9q/prometheus.yml",
- "[OK] Prometheus UP : mediabot-fleet-witch-undernet / witch-undernet (métriques Mediabot).",
- "[CHANGED] Collecte prête : witch-undernet",
- "[SAUVEGARDE] /var/backups/mediabot-fleet-route-a5bbj4ol/prometheus.yml",
- "[OK] Prometheus UP : mediabot-fleet-mediabot-libera / mediabot-libera (métriques Mediabot).",
- "[CHANGED] Collecte prête : mediabot-libera"
- ]
- }
- TASK [Valider les six collectes et provisionner le dashboard] **********************************************************************************************************************
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 15: open failed: connect failed: Connection refused
- channel 16: open failed: connect failed: Connection refused
- channel 16: open failed: connect failed: Connection refused
- channel 16: open failed: connect failed: Connection refused
- channel 16: open failed: connect failed: Connection refused
- channel 16: open failed: connect failed: Connection refused
- channel 16: open failed: connect failed: Connection refused
- channel 16: open failed: connect failed: Connection refused
- channel 16: open failed: connect failed: Connection refused
- channel 16: open failed: connect failed: Connection refused
- channel 16: open failed: connect failed: Connection refused
- channel 16: open failed: connect failed: Connection refused
- changed: [localhost]
- TASK [Afficher le résultat] ********************************************************************************************************************************************************
- ok: [localhost] => {
- "fleet_result.stdout_lines": [
- "[CIBLE] teuk-dev -> mediabot / 127.0.0.1:9108",
- "[CIBLE] teuk-undernet -> mediabot-teuk-undernet / teuk-undernet",
- "[CIBLE] nbot-epiknet -> mediabot / nbot.soyou.rocks:9108",
- "[CIBLE] ubot-undernet -> mediabot-fleet-ubot-undernet / ubot-undernet",
- "[CIBLE] witch-undernet -> mediabot-fleet-witch-undernet / witch-undernet",
- "[CIBLE] mediabot-libera -> mediabot-fleet-mediabot-libera / mediabot-libera",
- "[OK] 71 expressions validées par ton Prometheus.",
- "[CHANGED] Dashboard fleet vérifié dans Grafana.",
- "/d/mediabot-fleet-hourly/mediabot-fleet-par-heure"
- ]
- }
- PLAY RECAP *************************************************************************************************************************************************************************
- localhost : ok=42 changed=19 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
- [14:58:31:ansible@teuk:~]
Advertisement
Add Comment
Please, Sign In to add comment