Page MenuHomePhabricator
Paste P8728

(An Untitled Masterwork)
ActivePublic

Authored by Marostegui on Jul 9 2019, 5:28 AM.
root@cumin1001:/home/marostegui/git/wmfmariadbpy_new/wmfmariadbpy/wmfmariadbpy# ./switchover.py --only-slave-move db1065.eqiad.wmnet db1132.eqiad.wmnet
Starting preflight checks...
* Original read only values are as expected (master: read_only=False, slave: read_only=True)
* The host to fail over is a direct replica of the master
* Replication is up and running between the 2 hosts
* The replication lag is acceptable: 0 (lower than the configured or default timeout)
[WARNING] Semisync slave could not be disabled on the new master
Disabling GTID on new master...
Checking if db1117:3322/(none) needs to be moved under the new master...
Disabling GTID on db1117:3322/(none)...
[ERROR]: db1117:3322/(none) failed to be moved under the new master

Event Timeline

Marostegui created this paste.Jul 9 2019, 5:28 AM
root@cumin1001:/home/marostegui# mysql.py -hdb1117:3322 -e "show slave status\G"
*************************** 1. row ***************************
               Slave_IO_State: Waiting for master to send event
                  Master_Host: db1065.eqiad.wmnet
                  Master_User: repl
                  Master_Port: 3306
                Connect_Retry: 60
              Master_Log_File: db1065-bin.000251
          Read_Master_Log_Pos: 437347077
               Relay_Log_File: db1117-relay-bin.000002
                Relay_Log_Pos: 1278
        Relay_Master_Log_File: db1065-bin.000251
             Slave_IO_Running: Yes
            Slave_SQL_Running: No
              Replicate_Do_DB:
          Replicate_Ignore_DB:
           Replicate_Do_Table:
       Replicate_Ignore_Table:
      Replicate_Wild_Do_Table:
  Replicate_Wild_Ignore_Table:
                   Last_Errno: 0
                   Last_Error:
                 Skip_Counter: 0
          Exec_Master_Log_Pos: 436828506
              Relay_Log_Space: 520148
              Until_Condition: None
               Until_Log_File:
                Until_Log_Pos: 0
           Master_SSL_Allowed: Yes
           Master_SSL_CA_File:
           Master_SSL_CA_Path:
              Master_SSL_Cert:
            Master_SSL_Cipher:
               Master_SSL_Key:
        Seconds_Behind_Master: NULL
Master_SSL_Verify_Server_Cert: No
                Last_IO_Errno: 0
                Last_IO_Error:
               Last_SQL_Errno: 0
               Last_SQL_Error:
  Replicate_Ignore_Server_Ids:
             Master_Server_Id: 171978772
               Master_SSL_Crl:
           Master_SSL_Crlpath:
                   Using_Gtid: No
                  Gtid_IO_Pos: 0-171970569-1006906062,171970636-171970636-23122305,171970569-171970569-156638323,171978772-171978772-139561525
      Replicate_Do_Domain_Ids:
  Replicate_Ignore_Domain_Ids:
                Parallel_Mode: conservative