Skip to content

Commit de51a82

Browse files
committed
migration1011.sh: Switch to use the depool/pool cookbook
This script is obsolete in favour of the newer cookbook to upgrade hosts, but let's change it to use the cookbook that no longer have the bugs. Change-Id: Ifce2780d4d0fb22e960bc23cb2a0e78253525ad9
1 parent 6a314c2 commit de51a82

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dbtools/migration1011.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ fi
2525
sudo cookbook sre.hosts.downtime --hours 1 -r "Maintenance" "${HOST}"*
2626

2727
# Depool the host
28-
sudo dbctl instance "$HOST" depool
29-
sudo dbctl config commit -b -m "Depool $HOST for migration to mariadb 10.11"
28+
sudo cookbook sre.mysql.depool -r "Depool $HOST for migration to mariadb 10.11" $HOST
3029

3130
# Stop mariadb, remove old version, run puppet, restart mariadb, and re-enable replication
3231
sudo cumin --force "${HOST}"* 'systemctl stop mariadb; apt-get remove --purge wmf-mariadb106 -y ; run-puppet-agent ; systemctl start mariadb ; mysql_upgrade ; mysql -e "start slave"'
@@ -35,4 +34,4 @@ sudo cumin --force "${HOST}"* 'systemctl stop mariadb; apt-get remove --purge wm
3534
sleep 300
3635

3736
# Gradually repool the host
38-
sudo /home/marostegui/git/software/dbtools/repool "$HOST" 10 25 50 75 100
37+
sudo cookbook sre.mysql.pool -r "Repooling after upgrade" $HOST

0 commit comments

Comments
 (0)