-
Notifications
You must be signed in to change notification settings - Fork 1.3k
CLOUDSTACK-9305: Cloudstack Usage Breaks if DB HA enabled #1433
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
|
@kiwiflyer Very good point, let me make a different change here so it is more generic! |
|
If anyone still has issues, i also had to make the change from this PR: #1409 |
|
LGTM |
|
Tested patch on a 4.7.1 lab. Prior to patch: After patch: LGTM on e98f445 |
|
@Slair1 can you please squash your commits. I will get this into my CI queue so we can get this merged... Thanks... |
|
@swill Just FYI that this PR conflicts with #1409 (comment). They fix different issues, but the patch conflicts. |
|
@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? |
|
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. |
|
@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. |
|
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. |
|
@swill i seem to get an access denied when pushing my change: |
|
No one is allowed to push code to So you will be pushing to |
|
@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 |
|
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
|
thanks @swill , it looks much better now, i needed the -f on the git push |
|
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. :) |
|
Running CI now. Will have results later tonight or tomorrow... |
CI RESULTSSummary of the problem(s): Associated Uploads
Uploads will be available until Comment created by |
|
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. |
|
That's ok, thanks!! |
|
2 x LGTMs and CI complete. This is Ready to Merge. |
|
Sorry, I missed the LGTMs. :) I will add this to my merge queue. Thanks @kiwiflyer for following up. |
|
@Slair1 if dh ha jar is missing for example there is no db-ha deb package, what happens? |
|
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. |
|
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