-
Notifications
You must be signed in to change notification settings - Fork 1.3k
db.properties: Enforce UTC timezone by default #4055
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
This would give users ability to change the timezone Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
|
Hi Rohit I could check the fix in my lab environment (CloudStack 4.14 RC1, CentOS 7 OS) and can confirm that it fixed the issue, where cloudstack-management service is not able to start as timezone informations are missing. If users have the usage service too they will need to implement the parameters for the usage DB as well. Otherwise they won't be able to start the cloudstack-usage service. Regards |
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
|
Hi @Doni7722 I've added the usage url params as well, thanks. |
|
Hi @rhtyd there is a small typo. you changed the url params to: |
|
@Doni7722 the db.cloud.url.params= don't begin with an |
|
@rhtyd yes works with & and without (tested both now) so I think it's better without & as you wrote the begining should be without. |
|
Thanks for confirming @Doni7722 :) |
DaanHoogland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tnx for testing Liridon, sounds good. looks good as well
|
@blueorangutan package |
|
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
@Doni7722 Can you also confirm, if post thing change in your test env if the usage records have the correct time according to configured timezone (in global settings) if you're using a non-UTC timezone in the usage related global settings? |
|
Packaging result: ✔centos7 ✔debian. JID-1210 |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-1502)
|
|
@shwstppr again k8 failures, can you assess these, please? |
|
@DaanHoogland looked into the logs, k8s cluster failed to reach the desired state in the given time. I'll try to add further improvements to test and cks backend. Failure not related to this PR changes as other tests from the same smoke test ran fine. |
|
Alright.... tested this thoroughly enough, I believe: ACS 4.13, clean install (no db.properties customisation), usage job runs in CEST!
Upgraded to 4.14 with adding "serverTimezone=UTC" so that mgmt starts fine
/cc @rhtyd @DaanHoogland @Doni7722 |
andrijapanicsb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Manually tested, ready for merge
|
Documentation PR in progress - also please review whoever and LGTM if you are happy with it: apache/cloudstack-documentation#112 Preview build at: https://acs-www.shapeblue.com/docs/WIP-PROOFING/pr112/upgrading/upgrade/upgrade-4.13.html#time-zone-requirements |
|
one remark about the use of articles in the english language in the doc change, @andrijapanicsb :p . I'm fine with merging this. |
|
however both jenkins and travis failed misserably. |
|
let's try again |
|
@blueorangutan package |
|
I can confirm and had same results as @andrijapanicsb had. Usage DB entries and Cloud DB entries all in UTC but CMK gives me CEST restults back. However the GUI gives me still UTC (inside the Events) but that's may caused by my environment. |
|
Jenkins and Travis blues brothers look happy now, 2 x LGTMs, manual and regression testing OK (k8s tests are not related). Merging. |
This would give users ability to change the timezone
The general assumption is that CloudStack infra/services would run on UTC with ntp/synchronised time. Looks like some users prefer local time in DB.
Types of changes