flexera-public / rightscale_cookbooks

Other
76 stars 102 forks source link

db_mysql does not allow for innodb_log_file_size changes from restore #166

Closed EricByers closed 10 years ago

EricByers commented 10 years ago

Currently when a restore happens, there is a cleanup task that happens in db_mysql/providers/default.rb called ':post_restore_cleanup'.

This eventually calls db_mysql_set_mycnf, which updates the server_id/relay_log/innodb_log_file_size so that MySQL can start with the correct log file size (without the correct on MySQL will fail to start). This is required if the log file size is different on the backup.

However it uses 'RightScale::Database::MySQL::Helper' to get the uuid/relay data, which when it inits in turn creates the db connection, and attempts to start the database. Because the my.cnf has not been written out yet it fails (Essentially a hard dependency on starting the database to get the uuid to fix it so it can start).

Going from the v12 MySQL 5.1 to v13 MySQL 5.5 currently cannot upgrade because the default log file size changed, and this recipe appears to be broken.

Let me know if i can provide any additional information or details.

douglaswth commented 10 years ago

If you are having a problem with our v13.5.X LTS ServerTemplates please contact RightScale Support.

EricByers commented 10 years ago

I have, and I documented it here for others experiencing the same issue so they could understand there is a (potential) bug here and have something to go off of.

I saw the issues tab, and I was trying to be helpful in reporting this. Sorry if that was incorrect.

lopaka commented 10 years ago

This issue is recreated when 2 conditions are met:

A solution for this issue has been developed for the db_mysql cookbook and is currently under internal review and QA.

Closing issue since a RightScale Support ticket has been filed.