trove create MySQL replica failure

asked 2020-08-20 01:35:41 -0600

mr-han gravatar image

updated 2020-08-20 22:01:14 -0600

My environment: Deployed with Kolla,Stein version guest image ( trove-ussuri-mysql-ubuntu-xenial.qcow2 ) download in http://tarballs.openstack.org/trove/images/

When I use backup_strategy = InnoBackupEx, I can successfully create the replica. But when I use backup_strategy = MySQLDump, I failed to create a replica.

Here is the error message:

  | encrypted_rpc_messaging | True                                                                                                                                                    |
| fault                   | Error creating replication snapshot from instance cb27dba9-8c85-454a-b57d-326ce7885b07 for new replica 6f495d6c-623c-4173-9915-9f1dcf7599eb.            |
|                         | An error occurred communicating with the guest:                                                                                                         |
|                         |     lsn attribute missing, bad parent?                                                                                                                  |
|                         | Traceback (most recent c...                                                                                                                             |
| fault_date              | 2020-08-20T06:00:14                                                                                                                                     |
| fault_details           | Server type: taskmanager                                                                                                                                |
|                         | Traceback (most recent call last):                                                                                                                      |
|                         |   File "/usr/lib/python2.7/site-packages/trove/taskmanager/manager.py", line 417, in create_instance                                                    |
|                         |     locality)                                                                                                                                           |
|                         |   File "/usr/lib/python2.7/site-packages/trove/taskmanager/manager.py", line 382, in _create_instance                                                   |
|                         |     backup_id, volume_type, modules)                                                                                                                    |
|                         |   File "/usr/lib/python2.7/site-packages/trove/taskmanager/manager.py", line 345, in _create_replication_slave                                          |
|                         |     replica_number=replica_number)                                                                                                                      |
|                         |   File "/usr/lib/python2.7/site-packages/trove/taskmanager/models.py", line 658, in get_replication_master_snapshot                                     |
|                         |     create_fmt_content, err)                                                                                                                            |
|                         |   File "/usr/lib/python2.7/site-packages/trove/taskmanager/models.py", line 809, in _log_and_raise                                                      |
|                         |     raise TroveError(message=full_message)                                                                                                              |
|                         | TroveError:                                                                                                                                             |
|                         |     Error creating replication snapshot from instance cb27dba9-8c85-454a-b57d-326ce7885b07 for new replica 6f495d6c-623c-4173-9915-9f1dcf7599eb.        |
|                         | An error occurred communicating with the guest:                                                                                                         |
|                         |     lsn attribute missing, bad parent?                                                                                                                  |
|                         | Traceback (most recent call last):                                                                                                                      |
|                         |                                                                                                                                                         |
|                         |   File "/opt/guest-agent-venv/lib/python3.5/site-packages/oslo_messaging/rpc/server.py", line 165, in _process_incoming                                 |
|                         |     res = self.dispatcher.dispatch(message)                                                                                                             |
|                         |                                                                                                                                                         |
|                         |   File "/opt/guest-agent-venv/lib/python3.5/site-packages/oslo_messaging/rpc/dispatcher.py", line 276, in dispatch                                      |
|                         |     return self._do_dispatch(endpoint, method, ctxt, args)                                                                                              |
|                         |                                                                                                                                                         |
|                         |   File "/opt/guest-agent-venv/lib/python3.5/site-packages/oslo_messaging/rpc/dispatcher.py", line 196, in _do_dispatch                                  |
|                         |     result = func(ctxt, **new_args)                                                                                                                     |
|                         |                                                                                                                                                         |
    |                         |   File "/opt/guest-agent-venv/lib/python3.5/site-packages/osprofiler/profiler.py", line 160, in wrapper                                                 |
    |                         |     result = f(*args, **kwargs)                                                                                                                         |
    |                         |                                                                                                                                                         |
    |                         |   File "/opt/guest-agent-venv/lib/python3.5/site-packages/trove/guestagent/datastore/mysql_common/manager.py", line 365, in get_replication_snapshot    |
    |                         |     context, app, None, snapshot_info)                                                                                                                  |
    |                         |                                                                                                                                                         |

|                         |   File "/opt/guest-agent-venv/lib/python3.5/site-packages/trove/guestagent/strategies/replication/mysql_base.py", line 107, in snapshot_for_replication |
|                         |     incremental_runner=self.repl_incr_backup_runner)                                                                                                    |
|                         |                                                                                                                                                         |
|                         |   File "/opt/guest-agent-venv/lib/python3.5/site-packages/trove/guestagent/backup/backupagent.py", line 153, in execute_backup                          |
|                         |     parent_metadata, extra_opts)                                                                                                                        |
|                         |                                                                                                                                                         |

|                         |   File "/opt/guest-agent-venv/lib/python3.5/site-packages/trove/guestagent/backup/backupagent.py", line 83, in stream_backup_to_storage                 |
|                         |     **parent_metadata) as bkup:                                                                                                                         |
|                         |                                                                                                                                                         |
|                         |   File "/opt/guest-agent-venv/lib/python3.5/site-packages/trove/guestagent/strategies/backup/mysql_impl.py", line 127, in __init__                      |
|                         |     raise AttributeError(_('lsn attribute missing, bad parent?'))                                                                                       |
|                         |                                                                                                                                                         |
|                         | AttributeError: lsn attribute missing, bad parent?
edit retag flag offensive close merge delete