Jcrespo has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/327187 )

Change subject: mariadb: Fix quering phabricator databases by querying m3 slave
......................................................................

mariadb: Fix quering phabricator databases by querying m3 slave

misc backups was quering localhost (dbstore1001), which doesn't
contain such databases, and thus failing to get a proper list.

Bug: T151999
Change-Id: I3da79eaee8bfc74479c35b4210169ba6cac6e984
---
M modules/role/templates/mariadb/backups/dumps-misc.sh.erb
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/87/327187/1

diff --git a/modules/role/templates/mariadb/backups/dumps-misc.sh.erb 
b/modules/role/templates/mariadb/backups/dumps-misc.sh.erb
index b429b2f..c7c9786 100644
--- a/modules/role/templates/mariadb/backups/dumps-misc.sh.erb
+++ b/modules/role/templates/mariadb/backups/dumps-misc.sh.erb
@@ -19,7 +19,7 @@
 
 $dump -h m3-slave --ignore-table=phabricator_search.search_documentfield \
     --max_allowed_packet=32M \
-    --databases $($my "$sql" | tr '\n' ' ') | \
+    --databases $($my -h m3-slave "$sql" | tr '\n' ' ') | \
     pigz > /srv/backups/m3-phabricator-phlegal-$(date +%Y%m%d%H%M%S).sql.gz
 
 $dump -h m5-slave --databases ceilometer glance keystone neutron nova \

-- 
To view, visit https://gerrit.wikimedia.org/r/327187
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3da79eaee8bfc74479c35b4210169ba6cac6e984
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Jcrespo <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to