Uh oh!
There was an error while loading. Please reload this page.
Addresses CLOUDSTACK-9300 where the MySQL HA StaticStrategy class fai… - #1428
Conversation
…ls to load successfully
kiwiflyer
commented
Mar 4, 2016
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 |
remibergsma
commented
Mar 7, 2016
Hi @kiwiflyer, did you test this without MySQL HA as well? I doubt it will work without |
kiwiflyer
commented
Mar 7, 2016
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:
|
dmabry
commented
Mar 7, 2016
@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: |
kiwiflyer
commented
Mar 7, 2016
@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. |
Slair1
commented
Mar 9, 2016
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!! |
Slair1
commented
Mar 10, 2016
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 |
kiwiflyer
commented
Apr 29, 2016
Could I get some review on this when you get a chance? I'd like to get this PR moving. |
Slair1
commented
Apr 29, 2016
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. |
kiwiflyer
commented
Apr 29, 2016
@Slair1 Are you failing a ACS management server in addition to the MySQL instance? |
Slair1
commented
Apr 29, 2016
@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. |
kiwiflyer
commented
Apr 29, 2016
Interesting. I'll go digging into the code. I'm not that familiar with the console proxy (yet). |
yadvr
commented
May 2, 2016
tag:needlove |
Slair1
commented
May 2, 2016
@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. |
dmabry
commented
May 6, 2016
I ran this in our lab and tested the failover and works as expected. LGTM |
swill
commented
May 6, 2016
@Slair1 is that confirmation that this code worked for you? It is a bit unclear what you were communicating. Thx. |
Slair1
commented
May 6, 2016
@swill it is confirmation the code worked for me |
swill
commented
May 6, 2016
@Slair1 perfect, thanks for confirming. 👍 |
dmabry
commented
May 6, 2016
tag:mergeready |
yadvr
commented
May 6, 2016
LGTM (code review only) |
swill
commented
May 6, 2016
Ok, I will get CI run against this one to make sure that nothing else is broken. This is ready pending the CI run... |
swill
commented
May 9, 2016
CI RESULTSSummary of the problem(s): Associated Uploads
Uploads will be available until Comment created by |
swill
commented
May 9, 2016
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.