teuk_scx

curieux

Nov 7th, 2026
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 20.88 KB | None | 0 0
  1. mediabot-fleet-hourly-r2.zip: Réussi
  2. README.md: Réussi
  3. apercu.png: Réussi
  4. dashboard.py: Réussi
  5. deploy.py: Réussi
  6. ensure_metrics.py: Réussi
  7. fleet.json: Réussi
  8. install.yml: Réussi
  9. metrics_support.py: Réussi
  10. platform_support.py: Réussi
  11. probe.py: Réussi
  12. probe_tasks.yml: Réussi
  13. routes.py: Réussi
  14. test_fleet.py: Réussi
  15. test_r2.py: Réussi
  16. test_unified.py: Réussi
  17. test_ambiguous_target_rejected (test_fleet.Fleet.test_ambiguous_target_rejected) ... ok
  18. test_binding_matches_exporter_identity_not_port (test_fleet.Fleet.test_binding_matches_exporter_identity_not_port) ... [CIBLE] teuk-dev -> mediabot / teuk-dev
  19. [CIBLE] teuk-undernet -> mediabot / teuk-undernet
  20. [CIBLE] nbot-epiknet -> mediabot / nbot-epiknet
  21. [CIBLE] ubot-undernet -> mediabot / ubot-undernet
  22. [CIBLE] witch-undernet -> mediabot / witch-undernet
  23. [CIBLE] mediabot-libera -> mediabot / mediabot-libera
  24. ok
  25. test_every_counter_is_hourly_and_scoped (test_fleet.Fleet.test_every_counter_is_hourly_and_scoped) ... ok
  26. test_exact_six_and_same_host_two_distinct_configs (test_fleet.Fleet.test_exact_six_and_same_host_two_distinct_configs) ... ok
  27. test_hostile_labels_are_json_escaped (test_fleet.Fleet.test_hostile_labels_are_json_escaped) ... ok
  28. test_missing_target_rejected_before_install (test_fleet.Fleet.test_missing_target_rejected_before_install) ... ok
  29. test_no_mutating_remote_action (test_fleet.Fleet.test_no_mutating_remote_action) ... ok
  30. test_six_collapsed_rows_and_all_sources_bound (test_fleet.Fleet.test_six_collapsed_rows_and_all_sources_bound) ... ok
  31. test_unique_ids_no_top_level_overlaps (test_fleet.Fleet.test_unique_ids_no_top_level_overlaps) ... ok
  32. test_absent_metrics_section_defaults_9108 (test_r2.R2.test_absent_metrics_section_defaults_9108) ... ok
  33. test_activation_failure_restores_config (test_r2.R2.test_activation_failure_restores_config) ... ok
  34. test_ambiguous_scrapes_refused (test_r2.R2.test_ambiguous_scrapes_refused) ... ok
  35. test_configured_metrics_port_ignores_partyline (test_r2.R2.test_configured_metrics_port_ignores_partyline) ... ok
  36. test_existing_exporter_is_not_reconfigured (test_r2.R2.test_existing_exporter_is_not_reconfigured) ... ok
  37. test_only_new_loopback_tunnel_forwards (test_r2.R2.test_only_new_loopback_tunnel_forwards) ... ok
  38. test_remote_delegation_overrides_local_connection (test_r2.R2.test_remote_delegation_overrides_local_connection) ... ok
  39. 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
  40. ok
  41. test_absence_uses_no_legacy_table (test_unified.Unified.test_absence_uses_no_legacy_table) ... ok
  42. test_deleted_resource_excluded (test_unified.Unified.test_deleted_resource_excluded) ... ok
  43. test_foreign_provider_is_not_adopted (test_unified.Unified.test_foreign_provider_is_not_adopted) ... ok
  44. test_other_organization_excluded (test_unified.Unified.test_other_organization_excluded) ... ok
  45. test_unified_current_content_and_read_only (test_unified.Unified.test_unified_current_content_and_read_only) ... ok
  46. 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>
  47.   def __init__(self, name, parent):
  48. ResourceWarning: Enable tracemalloc to get the object allocation traceback
  49. /usr/lib/python3.13/unittest/mock.py:2247: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f32c8332890>
  50.   def __init__(self, name, parent):
  51. ResourceWarning: Enable tracemalloc to get the object allocation traceback
  52. /usr/lib/python3.13/unittest/mock.py:2247: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f32c83322f0>
  53.   def __init__(self, name, parent):
  54. ResourceWarning: Enable tracemalloc to get the object allocation traceback
  55. /usr/lib/python3.13/unittest/mock.py:2247: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f32c8332980>
  56.   def __init__(self, name, parent):
  57. ResourceWarning: Enable tracemalloc to get the object allocation traceback
  58. /usr/lib/python3.13/unittest/mock.py:2247: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f32c83326b0>
  59.   def __init__(self, name, parent):
  60. ResourceWarning: Enable tracemalloc to get the object allocation traceback
  61. /usr/lib/python3.13/unittest/mock.py:2247: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f32c8332c50>
  62.   def __init__(self, name, parent):
  63. ResourceWarning: Enable tracemalloc to get the object allocation traceback
  64. /usr/lib/python3.13/unittest/mock.py:2247: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f32c8332a70>
  65.   def __init__(self, name, parent):
  66. ResourceWarning: Enable tracemalloc to get the object allocation traceback
  67. /usr/lib/python3.13/unittest/mock.py:2247: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f32c83327a0>
  68.   def __init__(self, name, parent):
  69. ResourceWarning: Enable tracemalloc to get the object allocation traceback
  70. /usr/lib/python3.13/unittest/mock.py:2247: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f32c8332d40>
  71.   def __init__(self, name, parent):
  72. ResourceWarning: Enable tracemalloc to get the object allocation traceback
  73. /usr/lib/python3.13/unittest/mock.py:2247: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f32c8332e30>
  74.   def __init__(self, name, parent):
  75. ResourceWarning: Enable tracemalloc to get the object allocation traceback
  76. /usr/lib/python3.13/unittest/mock.py:2247: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f32c8332f20>
  77.   def __init__(self, name, parent):
  78. ResourceWarning: Enable tracemalloc to get the object allocation traceback
  79. ok
  80. test_wrong_expression_is_rejected (test_unified.Unified.test_wrong_expression_is_rejected) ... ok
  81.  
  82. ----------------------------------------------------------------------
  83. Ran 24 tests in 0.108s
  84.  
  85. OK
  86.  
  87. playbook: install.yml
  88. [14:55:03:ansible@teuk:~] (
  89.   set -Eeuo pipefail
  90.   test "$(id -un)" = ansible
  91.   cd /home/ansible/mediabot-fleet-hourly-r2
  92.   ansible-playbook install.yml
  93. )
  94.  
  95. PLAY [Installer Mediabot Fleet par heure sur teuk] *********************************************************************************************************************************
  96.  
  97. TASK [Vérifier les hôtes distants dans ton inventaire habituel] ********************************************************************************************************************
  98. ok: [localhost] => {
  99.     "changed": false,
  100.     "msg": "All assertions passed"
  101. }
  102.  
  103. TASK [Vérifier Grafana et Prometheus avant toute installation] *********************************************************************************************************************
  104. ok: [localhost]
  105.  
  106. TASK [Identifier les exporteurs par répertoire et configuration] *******************************************************************************************************************
  107. included: /home/ansible/mediabot-fleet-hourly-r2/probe_tasks.yml for localhost => (item=teuk.org)
  108. included: /home/ansible/mediabot-fleet-hourly-r2/probe_tasks.yml for localhost => (item=nbot.soyou.rocks)
  109. included: /home/ansible/mediabot-fleet-hourly-r2/probe_tasks.yml for localhost => (item=ubot.teuk.org)
  110. included: /home/ansible/mediabot-fleet-hourly-r2/probe_tasks.yml for localhost => (item=witch.soyou.rocks)
  111. included: /home/ansible/mediabot-fleet-hourly-r2/probe_tasks.yml for localhost => (item=mediabot.teuk.org)
  112.  
  113. TASK [Initialiser les références temporaires de cet hôte] **************************************************************************************************************************
  114. ok: [localhost]
  115.  
  116. TASK [Créer un répertoire temporaire privé pour la sonde] **************************************************************************************************************************
  117. changed: [localhost]
  118.  
  119. TASK [Copier uniquement la sonde et son support] ***********************************************************************************************************************************
  120. changed: [localhost] => (item=probe.py)
  121. changed: [localhost] => (item=metrics_support.py)
  122. changed: [localhost] => (item=ensure_metrics.py)
  123.  
  124. TASK [Lire les processus et les métriques et activer les métriques si nécessaire] **************************************************************************************************
  125. ok: [localhost]
  126.  
  127. TASK [Rassembler les identités des exporteurs] *************************************************************************************************************************************
  128. ok: [localhost]
  129.  
  130. TASK [Retirer les fichiers temporaires de cette sonde] *****************************************************************************************************************************
  131. changed: [localhost]
  132.  
  133. TASK [Initialiser les références temporaires de cet hôte] **************************************************************************************************************************
  134. ok: [localhost]
  135.  
  136. TASK [Créer un répertoire temporaire privé pour la sonde] **************************************************************************************************************************
  137. changed: [localhost -> nbot.soyou.rocks]
  138.  
  139. TASK [Copier uniquement la sonde et son support] ***********************************************************************************************************************************
  140. changed: [localhost -> nbot.soyou.rocks] => (item=probe.py)
  141. changed: [localhost -> nbot.soyou.rocks] => (item=metrics_support.py)
  142. changed: [localhost -> nbot.soyou.rocks] => (item=ensure_metrics.py)
  143.  
  144. TASK [Lire les processus et les métriques et activer les métriques si nécessaire] **************************************************************************************************
  145. ok: [localhost -> nbot.soyou.rocks]
  146.  
  147. TASK [Rassembler les identités des exporteurs] *************************************************************************************************************************************
  148. ok: [localhost -> nbot.soyou.rocks]
  149.  
  150. TASK [Retirer les fichiers temporaires de cette sonde] *****************************************************************************************************************************
  151. changed: [localhost -> nbot.soyou.rocks]
  152.  
  153. TASK [Initialiser les références temporaires de cet hôte] **************************************************************************************************************************
  154. ok: [localhost]
  155.  
  156. TASK [Créer un répertoire temporaire privé pour la sonde] **************************************************************************************************************************
  157. changed: [localhost -> ubot.teuk.org]
  158.  
  159. TASK [Copier uniquement la sonde et son support] ***********************************************************************************************************************************
  160. changed: [localhost -> ubot.teuk.org] => (item=probe.py)
  161. changed: [localhost -> ubot.teuk.org] => (item=metrics_support.py)
  162. changed: [localhost -> ubot.teuk.org] => (item=ensure_metrics.py)
  163.  
  164. TASK [Lire les processus et les métriques et activer les métriques si nécessaire] **************************************************************************************************
  165. ok: [localhost -> ubot.teuk.org]
  166.  
  167. TASK [Rassembler les identités des exporteurs] *************************************************************************************************************************************
  168. ok: [localhost -> ubot.teuk.org]
  169.  
  170. TASK [Retirer les fichiers temporaires de cette sonde] *****************************************************************************************************************************
  171. changed: [localhost -> ubot.teuk.org]
  172.  
  173. TASK [Initialiser les références temporaires de cet hôte] **************************************************************************************************************************
  174. ok: [localhost]
  175.  
  176. TASK [Créer un répertoire temporaire privé pour la sonde] **************************************************************************************************************************
  177. changed: [localhost -> witch.soyou.rocks]
  178.  
  179. TASK [Copier uniquement la sonde et son support] ***********************************************************************************************************************************
  180. changed: [localhost -> witch.soyou.rocks] => (item=probe.py)
  181. changed: [localhost -> witch.soyou.rocks] => (item=metrics_support.py)
  182. changed: [localhost -> witch.soyou.rocks] => (item=ensure_metrics.py)
  183.  
  184. TASK [Lire les processus et les métriques et activer les métriques si nécessaire] **************************************************************************************************
  185. changed: [localhost -> witch.soyou.rocks]
  186.  
  187. TASK [Rassembler les identités des exporteurs] *************************************************************************************************************************************
  188. ok: [localhost -> witch.soyou.rocks]
  189.  
  190. TASK [Retirer les fichiers temporaires de cette sonde] *****************************************************************************************************************************
  191. changed: [localhost -> witch.soyou.rocks]
  192.  
  193. TASK [Initialiser les références temporaires de cet hôte] **************************************************************************************************************************
  194. ok: [localhost]
  195.  
  196. TASK [Créer un répertoire temporaire privé pour la sonde] **************************************************************************************************************************
  197. changed: [localhost -> mediabot.teuk.org]
  198.  
  199. TASK [Copier uniquement la sonde et son support] ***********************************************************************************************************************************
  200. changed: [localhost -> mediabot.teuk.org] => (item=probe.py)
  201. changed: [localhost -> mediabot.teuk.org] => (item=metrics_support.py)
  202. changed: [localhost -> mediabot.teuk.org] => (item=ensure_metrics.py)
  203.  
  204. TASK [Lire les processus et les métriques et activer les métriques si nécessaire] **************************************************************************************************
  205. changed: [localhost -> mediabot.teuk.org]
  206.  
  207. TASK [Rassembler les identités des exporteurs] *************************************************************************************************************************************
  208. ok: [localhost -> mediabot.teuk.org]
  209.  
  210. TASK [Retirer les fichiers temporaires de cette sonde] *****************************************************************************************************************************
  211. changed: [localhost -> mediabot.teuk.org]
  212.  
  213. TASK [Afficher les instances et sauvegardes éventuelles] ***************************************************************************************************************************
  214. ok: [localhost] => (item=teuk-dev) => {
  215.     "msg": "teuk-dev : [email protected] ; métriques modifiées=False ; sauvegarde=aucune"
  216. }
  217. ok: [localhost] => (item=teuk-undernet) => {
  218.     "msg": "teuk-undernet : [email protected] ; métriques modifiées=False ; sauvegarde=aucune"
  219. }
  220. ok: [localhost] => (item=nbot-epiknet) => {
  221.     "msg": "nbot-epiknet : [email protected] ; métriques modifiées=False ; sauvegarde=aucune"
  222. }
  223. ok: [localhost] => (item=ubot-undernet) => {
  224.     "msg": "ubot-undernet : [email protected] ; métriques modifiées=False ; sauvegarde=aucune"
  225. }
  226. ok: [localhost] => (item=witch-undernet) => {
  227.     "msg": "witch-undernet : [email protected] ; métriques modifiées=True ; sauvegarde=/var/backups/mediabot-nbot-metrics-hwxup35y/mediabot.conf"
  228. }
  229. ok: [localhost] => (item=mediabot-libera) => {
  230.     "msg": "mediabot-libera : [email protected] ; métriques modifiées=True ; sauvegarde=/var/backups/mediabot-nbot-metrics-t3jf6_wx/mediabot.conf"
  231. }
  232.  
  233. TASK [Raccorder les collectes absentes depuis teuk] ********************************************************************************************************************************
  234. changed: [localhost]
  235.  
  236. TASK [Afficher les raccordements] **************************************************************************************************************************************************
  237. ok: [localhost] => {
  238.     "route_result.stdout_lines": [
  239.         "[OK] Prometheus UP : mediabot / 127.0.0.1:9108 (métriques Mediabot).",
  240.         "[OK] Collecte réutilisée : teuk-dev",
  241.         "[OK] Prometheus UP : mediabot-teuk-undernet / teuk-undernet (métriques Mediabot).",
  242.         "[OK] Collecte réutilisée : teuk-undernet",
  243.         "[OK] Prometheus UP : mediabot / nbot.soyou.rocks:9108 (métriques Mediabot).",
  244.         "[OK] Collecte réutilisée : nbot-epiknet",
  245.         "[SAUVEGARDE] /var/backups/mediabot-fleet-route-v90ilcnp/prometheus.yml",
  246.         "[OK] Prometheus UP : mediabot-fleet-ubot-undernet / ubot-undernet (métriques Mediabot).",
  247.         "[CHANGED] Collecte prête : ubot-undernet",
  248.         "[SAUVEGARDE] /var/backups/mediabot-fleet-route-unxtmj9q/prometheus.yml",
  249.         "[OK] Prometheus UP : mediabot-fleet-witch-undernet / witch-undernet (métriques Mediabot).",
  250.         "[CHANGED] Collecte prête : witch-undernet",
  251.         "[SAUVEGARDE] /var/backups/mediabot-fleet-route-a5bbj4ol/prometheus.yml",
  252.         "[OK] Prometheus UP : mediabot-fleet-mediabot-libera / mediabot-libera (métriques Mediabot).",
  253.         "[CHANGED] Collecte prête : mediabot-libera"
  254.     ]
  255. }
  256.  
  257. TASK [Valider les six collectes et provisionner le dashboard] **********************************************************************************************************************
  258. channel 15: open failed: connect failed: Connection refused
  259. channel 15: open failed: connect failed: Connection refused
  260. channel 15: open failed: connect failed: Connection refused
  261. channel 15: open failed: connect failed: Connection refused
  262. channel 15: open failed: connect failed: Connection refused
  263. channel 15: open failed: connect failed: Connection refused
  264. channel 15: open failed: connect failed: Connection refused
  265. channel 15: open failed: connect failed: Connection refused
  266. channel 15: open failed: connect failed: Connection refused
  267. channel 15: open failed: connect failed: Connection refused
  268. channel 15: open failed: connect failed: Connection refused
  269. channel 15: open failed: connect failed: Connection refused
  270. channel 15: open failed: connect failed: Connection refused
  271. channel 15: open failed: connect failed: Connection refused
  272. channel 15: open failed: connect failed: Connection refused
  273. channel 15: open failed: connect failed: Connection refused
  274. channel 15: open failed: connect failed: Connection refused
  275. channel 15: open failed: connect failed: Connection refused
  276. channel 15: open failed: connect failed: Connection refused
  277. channel 15: open failed: connect failed: Connection refused
  278. channel 15: open failed: connect failed: Connection refused
  279. channel 15: open failed: connect failed: Connection refused
  280. channel 15: open failed: connect failed: Connection refused
  281. channel 15: open failed: connect failed: Connection refused
  282. channel 15: open failed: connect failed: Connection refused
  283. channel 15: open failed: connect failed: Connection refused
  284. channel 16: open failed: connect failed: Connection refused
  285. channel 16: open failed: connect failed: Connection refused
  286. channel 16: open failed: connect failed: Connection refused
  287. channel 16: open failed: connect failed: Connection refused
  288. channel 16: open failed: connect failed: Connection refused
  289. channel 16: open failed: connect failed: Connection refused
  290. channel 16: open failed: connect failed: Connection refused
  291. channel 16: open failed: connect failed: Connection refused
  292. channel 16: open failed: connect failed: Connection refused
  293. channel 16: open failed: connect failed: Connection refused
  294. channel 16: open failed: connect failed: Connection refused
  295. changed: [localhost]
  296.  
  297. TASK [Afficher le résultat] ********************************************************************************************************************************************************
  298. ok: [localhost] => {
  299.     "fleet_result.stdout_lines": [
  300.         "[CIBLE] teuk-dev -> mediabot / 127.0.0.1:9108",
  301.         "[CIBLE] teuk-undernet -> mediabot-teuk-undernet / teuk-undernet",
  302.         "[CIBLE] nbot-epiknet -> mediabot / nbot.soyou.rocks:9108",
  303.         "[CIBLE] ubot-undernet -> mediabot-fleet-ubot-undernet / ubot-undernet",
  304.         "[CIBLE] witch-undernet -> mediabot-fleet-witch-undernet / witch-undernet",
  305.         "[CIBLE] mediabot-libera -> mediabot-fleet-mediabot-libera / mediabot-libera",
  306.         "[OK] 71 expressions validées par ton Prometheus.",
  307.         "[CHANGED] Dashboard fleet vérifié dans Grafana.",
  308.         "/d/mediabot-fleet-hourly/mediabot-fleet-par-heure"
  309.     ]
  310. }
  311.  
  312. PLAY RECAP *************************************************************************************************************************************************************************
  313. localhost                  : ok=42   changed=19   unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
  314.  
  315. [14:58:31:ansible@teuk:~]
  316.  
Advertisement
Add Comment
Please, Sign In to add comment