2.1 fix restore (#151)

* refactor test backend fixing

* return comatibility with 5.5 for backend restore

* remove backend configuration scripts
This commit is contained in:
Timofey Turenko
2017-12-18 23:47:02 +02:00
committed by GitHub
parent ba24330d0f
commit 1a63e5ec7e
11 changed files with 449 additions and 173 deletions

View File

@ -183,6 +183,18 @@ public:
* @brief Open connctions to all backend nodes (to 'test' DB)
* @return 0 in case of success
*/
/**
* @brief make_snapshot_command Command line to create a snapshot of all VMs
*/
char * take_snapshot_command;
/**
* @brief revert_snapshot_command Command line to revert a snapshot of all VMs
*/
char * revert_snapshot_command;
int connect(int i);
int connect();
/**
@ -374,7 +386,14 @@ public:
int execute_query_all_nodes(const char* sql);
/**
* @brief execute 'SELECT @@version' against all nodes and store result in 'version' fied
* @brief execute 'SELECT @@version' against one node and store result in 'version' field
* @param i Node index
* @return 0 in case of success
*/
int get_version(int i);
/**
* @brief execute 'SELECT @@version' against all nodes and store result in 'version' field
* @return 0 in case of success
*/
int get_versions();
@ -442,6 +461,21 @@ public:
*/
bool fix_replication();
/**
* @brief revert_nodes_snapshot Execute MDBCI snapshot revert command for all nodes
* @return true in case of success
*/
bool revert_nodes_snapshot();
/**
* @brief prepare_server Initialize MariaDB setup (run mysql_install_db) and create test users
* Tries to detect Mysql 5.7 installation and disable 'validate_password' pluging
* @param i Node index
* @return 0 in case of success
*/
virtual int prepare_server(int i);
int prepare_servers();
private:
int check_node_ssh(int node);
@ -468,6 +502,13 @@ public:
{
return check_galera();
}
//int prepare_galera_server(int i);
//virtual int prepare_server(int i)
//{
// return prepare_galera_server(i);
//}
};
#endif // MARIADB_NODES_H