Uh oh!
There was an error while loading. Please reload this page.
CLOUDSTACK-9305: Cloudstack Usage Breaks if DB HA enabled - #1433
Conversation
Slair1
commented
Mar 11, 2016
@kiwiflyer Very good point, let me make a different change here so it is more generic! |
Slair1
commented
Mar 11, 2016
If anyone still has issues, i also had to make the change from this PR: #1409 |
kishankavala
commented
Mar 17, 2016
LGTM |
kiwiflyer
commented
Mar 17, 2016
Tested patch on a 4.7.1 lab. Prior to patch: After patch: LGTM on e98f445 |
swill
commented
Apr 7, 2016
@Slair1 can you please squash your commits. I will get this into my CI queue so we can get this merged... Thanks... |
kiwiflyer
commented
Apr 7, 2016
@swill Just FYI that this PR conflicts with #1409 (comment). They fix different issues, but the patch conflicts. |
swill
commented
Apr 7, 2016
@kiwiflyer they conflict in what sense? They change different lines of code, so I don't expect git to have an issue with them. Can you clarify? |
kiwiflyer
commented
Apr 7, 2016
I applied 1433 and then tried to apply 1409, but 1433 changes prevent the later patch from matching previous lines. One or the other probably needs to be based on top of the other patch so it applies cleanly. |
Slair1
commented
Apr 7, 2016
@swill , i apologize, but this is my first PR. I squashed it in Github Desktop on my local copy and did a push, but it sees like it it just added additional commits at github.com. If could you let me know how to correct it i'll do so as soon as I can. |
swill
commented
Apr 7, 2016
No worries. :) This should work: https://github.com/ginatrapani/todo.txt-android/wiki/Squash-All-Commits-Related-to-a-Single-Issue-into-a-Single-Commit Also described here: https://ariejan.net/2011/07/05/git-squash-your-latests-commits-into-one/ I have used this method in the past as well: http://stackoverflow.com/questions/616556/how-do-you-squash-commits-into-one-patch-with-git-format-patch?answertab=votes#tab-top Let me know if you have problems and I will try to help you out. |
Slair1
commented
Apr 7, 2016
@swill i seem to get an access denied when pushing my change: |
swill
commented
Apr 7, 2016
No one is allowed to push code to So you will be pushing to |
Slair1
commented
Apr 7, 2016
@swill thanks, that makes sense. I did it to my branch the first time, but for some reason when i tried to save to here it just created two more commits. i'll try again |
swill
commented
Apr 8, 2016
Once you get your local branch setup correctly with the squashed commit, you should be able to do a |
With DB HA enabled in db.properties, the cloudstack-usage service restarts every 10 seconds. Making the suggested change has fixed it for me. Cloudstack 4.8 on Centos7 Update cloudstack-usage.service
Slair1
commented
Apr 8, 2016
thanks @swill , it looks much better now, i needed the -f on the git push |
swill
commented
Apr 8, 2016
No problem. Ya it took me a couple pull requests to figure out how they work. Thanks for taking the time to do this for me. :) |
swill
commented
Apr 28, 2016
Running CI now. Will have results later tonight or tomorrow... |
swill
commented
Apr 29, 2016
CI RESULTSSummary of the problem(s): Associated Uploads
Uploads will be available until Comment created by |
swill
commented
Apr 29, 2016
None of the failures above are related to this PR, they are all issues I see periodically in my environment. All of the supported usage tests passed, so CI has passed for this PR. Sorry the output makes that hard to understand. |
Slair1
commented
Apr 29, 2016
That's ok, thanks!! |
kiwiflyer
commented
Apr 29, 2016
2 x LGTMs and CI complete. This is Ready to Merge. |
swill
commented
Apr 29, 2016
Sorry, I missed the LGTMs. :) I will add this to my merge queue. Thanks @kiwiflyer for following up. |
yadvr
commented
May 2, 2016
@Slair1 if dh ha jar is missing for example there is no db-ha deb package, what happens? |
Slair1
commented
May 2, 2016
Hi @rhtyd since it uses "ls" to get a list of packages, if the directory or .jar file does not exist it is no big deal. It will output a No such file or directory message but still loads any packages that exist without issue. the UCP variable still looks good when that occurs. |
yadvr
commented
May 2, 2016
fair enough, LGTM tag:mergeready |
CLOUDSTACK-9305: Cloudstack Usage Breaks if DB HA enabledWith DB HA enabled in db.properties, the cloudstack-usage service restarts every 10 seconds. Making the suggested change has fixed it for me. Cloudstack 4.8 on Centos7 * pr/1433: Cloudstack Usage Breaks if DB HA enabled Signed-off-by: Will Stevens <williamstevens@gmail.com>
With DB HA enabled in db.properties, the cloudstack-usage service restarts every 10 seconds. Making the suggested change has fixed it for me. Cloudstack 4.8 on Centos7