Alex Monk has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/333289 )
Change subject: Follow-up I94eb86ba: Ignore projects where we can't list
instances
......................................................................
Follow-up I94eb86ba: Ignore projects where we can't list instances
E.g. the admin project
Bug: T104575
Change-Id: I6b158f999a5adbe9e5d6bba59a5d4ae9190afa8b
---
M modules/graphite/files/archive-instances
1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/89/333289/1
diff --git a/modules/graphite/files/archive-instances
b/modules/graphite/files/archive-instances
index 2745754..af6399a 100755
--- a/modules/graphite/files/archive-instances
+++ b/modules/graphite/files/archive-instances
@@ -104,7 +104,10 @@
deleted_hosts = {}
for project in projects:
hosts_with_metrics = get_hosts_with_metrics(project)
- actual_hosts = get_hosts_for_project(project)
+ try:
+ actual_hosts = get_hosts_for_project(project)
+ except Exception:
+ continue
deleted = set(hosts_with_metrics) - set(actual_hosts)
if deleted:
deleted_hosts[project] = deleted
--
To view, visit https://gerrit.wikimedia.org/r/333289
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6b158f999a5adbe9e5d6bba59a5d4ae9190afa8b
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Alex Monk <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits