-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Addresses CLOUDSTACK-9300 where the MySQL HA StaticStrategy class fai… #1428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ls to load successfully
|
I've manually tested this on 4.7.1 and also on master. Prior to the patch, the following exception was thrown: 016-03-03 12:00:13,204 INFO c.c.u.d.T.Transaction (logid:) Is Data Base High Availiability enabled? Ans : true After the patch, the following is observed in the logs 016-03-03 14:53:38,437 INFO c.c.u.d.T.Transaction (logid:) Is Data Base High Availiability enabled? Ans : true |
|
Hi @kiwiflyer, did you test this without MySQL HA as well? I doubt it will work without |
|
Hi Remi, Yes, we tested it with HA disabled. David is going to upload the logs for The mysql-connector is also referenced in the catalina.properties -Si On Mon, Mar 7, 2016, 10:29 AM Remi Bergsma notifications@github.com wrote:
|
|
@remibergsma , We loaded up the management server with this patch and it appears to work just fine on 4.7.1 with db.ha.enable=false and db.cloud.slaves left blank. See logs below: |
|
@remibergsma In reference to other releases, yes this might also be broken on Ubuntu. We don't use Ubuntu, so having someone chime in who can test this would be nice. |
|
Thanks guys, FYI i applied these change to my 4.8 source, running on Centos7 and it fixed the problem for me also. Thanks again!! |
|
Looks like the cloudstack-usage server has a similar problem. it continuously restarts if db.ha.enable = true. i got it to work in my environment with the change in this PR: #1433 |
|
Could I get some review on this when you get a chance? I'd like to get this PR moving. |
|
this LGTM. we have been running this in our environment for over a month (ACS 4.8). This PR fixes the issue we had with cloudstack-mangaement not starting when sql ha is enabled. On a related note, we may have another issue somewhere else. When cloudstack is failed over to the slave sql server, we cannot launch a console or issue a reboot of a systemvm from the web-interface. @kiwiflyer have you tested those two actions when failed over to the slave sql server? I just noticed this on our side yesterday while doing maintenance. |
|
@Slair1 Are you failing a ACS management server in addition to the MySQL instance? |
|
@kiwiflyer No, we were not failing over our ACS mgmt servers. We still had both up and functional and were able to log directly into both (and of course through our load-balancer). The load-balancing of the ACS mgmt servers works great. I tried opening console windows through both mgmt servers. when i issue a netstat from the mgmt servers, i see them trying to contact the offline mysql server, when i attempt opening a console. Although, i know most other functions we have tested work fine. In the netstat we see a slew of established connections with the slave mysql server (as it should). But, for some reason when we attempt to open a console it doesn't work and we see the mgmt server try to connect to the offline mysql server. As soon as the primary mysql server is online, the console windows immediately work. |
|
Interesting. I'll go digging into the code. I'm not that familiar with the console proxy (yet). |
|
tag:needlove |
|
@kiwiflyer and @rhtyd I've been troubleshooting the proxy issue and it was an issue in my environment! i have things worked out and everything works fine. |
|
I ran this in our lab and tested the failover and works as expected. LGTM |
|
@Slair1 is that confirmation that this code worked for you? It is a bit unclear what you were communicating. Thx. |
|
@swill it is confirmation the code worked for me |
|
@Slair1 perfect, thanks for confirming. 👍 |
|
tag:mergeready |
|
LGTM (code review only) |
|
Ok, I will get CI run against this one to make sure that nothing else is broken. This is ready pending the CI run... |
CI RESULTSSummary of the problem(s): Associated Uploads
Uploads will be available until Comment created by |
|
I think this one is ready. The failures are things that periodically fail in my environment and are unrelated to this code. Thanks... |
Addresses CLOUDSTACK-9300 where the MySQL HA StaticStrategy class fai * pr/1428: Addresses CLOUDSTACK-9300 where the MySQL HA StaticStrategy class fails to load successfully Signed-off-by: Will Stevens <williamstevens@gmail.com>
Addresses CLOUDSTACK-9300 where the MySQL HA StaticStrategy class fails to load successfully
No description provided.