You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by GitBox <gi...@apache.org> on 2020/05/05 19:42:08 UTC

[GitHub] [cloudstack-documentation] andrijapanicsb opened a new pull request #112: Create u_timezone.rst

andrijapanicsb opened a new pull request #112:
URL: https://github.com/apache/cloudstack-documentation/pull/112


   Note on explicit Timezone requirements due to my mysql-connector 8.x java dependency


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-documentation] andrijapanicsb commented on pull request #112: Create u_timezone.rst

Posted by GitBox <gi...@apache.org>.
andrijapanicsb commented on pull request #112:
URL: https://github.com/apache/cloudstack-documentation/pull/112#issuecomment-624268290


   requesting docbuild


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-documentation] ACSGitBot commented on pull request #112: Create u_timezone.rst

Posted by GitBox <gi...@apache.org>.
ACSGitBot commented on pull request #112:
URL: https://github.com/apache/cloudstack-documentation/pull/112#issuecomment-624268729


   Your request had been received, i'll go and build the documentation and check the output log for errors.
   
   This shouldn't take long.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-documentation] ACSGitBot removed a comment on pull request #112: Create u_timezone.rst

Posted by GitBox <gi...@apache.org>.
ACSGitBot removed a comment on pull request #112:
URL: https://github.com/apache/cloudstack-documentation/pull/112#issuecomment-624268729






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-documentation] DaanHoogland commented on a change in pull request #112: Timezone requirements for 4.14+

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on a change in pull request #112:
URL: https://github.com/apache/cloudstack-documentation/pull/112#discussion_r420576090



##########
File path: source/upgrading/upgrade/_timezone.rst
##########
@@ -0,0 +1,33 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information#
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   http://www.apache.org/licenses/LICENSE-2.0
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License.
+
+.. sub-section included in upgrade notes.
+
+Time zone requirements
+######################
+
+As of CloudStack 4.14,  you must explicitly configure time zone either in the MySQL server or JDBC driver (db.properties).
+In previous CloudStack versions, UTC time zone was assumed by default (all event's have UTC time stamps), so
+the same UTC time zone should now be explicitly configured.
+
+You can do this by editing the /etc/cloudstack/management/db.properties file and adding "serverTimezone=UTC"
+to the "db.cloud.url.params=" and "db.usage.url.params=" lines.  Example lines, from a clean 4.14 installation, are given below:
+
+.. parsed-literal::
+
+   db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&serverTimezone=UTC
+   db.usage.url.params=serverTimezone=UTC
+
+If you want time stamps in DB to use a different time zone, please make sure to test this thoroughly in test environment.

Review comment:
       `If you want time stamps in the DB to use a different time zone, please make sure to test this thoroughly in a test environment.`
   (added articles, could be `your` in both cases as well)




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-documentation] andrijapanicsb removed a comment on pull request #112: Create u_timezone.rst

Posted by GitBox <gi...@apache.org>.
andrijapanicsb removed a comment on pull request #112:
URL: https://github.com/apache/cloudstack-documentation/pull/112#issuecomment-624268290


   requesting docbuild


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-documentation] DaanHoogland commented on a change in pull request #112: Timezone requirements for 4.14+

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on a change in pull request #112:
URL: https://github.com/apache/cloudstack-documentation/pull/112#discussion_r420576090



##########
File path: source/upgrading/upgrade/_timezone.rst
##########
@@ -0,0 +1,33 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information#
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   http://www.apache.org/licenses/LICENSE-2.0
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License.
+
+.. sub-section included in upgrade notes.
+
+Time zone requirements
+######################
+
+As of CloudStack 4.14,  you must explicitly configure time zone either in the MySQL server or JDBC driver (db.properties).
+In previous CloudStack versions, UTC time zone was assumed by default (all event's have UTC time stamps), so
+the same UTC time zone should now be explicitly configured.
+
+You can do this by editing the /etc/cloudstack/management/db.properties file and adding "serverTimezone=UTC"
+to the "db.cloud.url.params=" and "db.usage.url.params=" lines.  Example lines, from a clean 4.14 installation, are given below:
+
+.. parsed-literal::
+
+   db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&serverTimezone=UTC
+   db.usage.url.params=serverTimezone=UTC
+
+If you want time stamps in DB to use a different time zone, please make sure to test this thoroughly in test environment.

Review comment:
       `If you want time stamps in the DB to use a different time zone, please make sure to test this thoroughly in a test environment.`




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-documentation] ACSGitBot commented on pull request #112: Timezone requirements for 4.14+

Posted by GitBox <gi...@apache.org>.
ACSGitBot commented on pull request #112:
URL: https://github.com/apache/cloudstack-documentation/pull/112#issuecomment-624280614


   Build finished.  You can review it at:   https://acs-www.shapeblue.com/docs/WIP-PROOFING/pr112
   
   Build Log Output:
   
   
   No log errors found to report.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-documentation] ACSGitBot commented on pull request #112: Timezone requirements for 4.14+

Posted by GitBox <gi...@apache.org>.
ACSGitBot commented on pull request #112:
URL: https://github.com/apache/cloudstack-documentation/pull/112#issuecomment-624279672


   Your request had been received, i'll go and build the documentation and check the output log for errors.
   
   This shouldn't take long.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-documentation] ACSGitBot commented on pull request #112: Timezone requirements for 4.14+

Posted by GitBox <gi...@apache.org>.
ACSGitBot commented on pull request #112:
URL: https://github.com/apache/cloudstack-documentation/pull/112#issuecomment-624588276


   Your request had been received, i'll go and build the documentation and check the output log for errors.
   
   This shouldn't take long.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-documentation] ACSGitBot removed a comment on pull request #112: Timezone requirements for 4.14+

Posted by GitBox <gi...@apache.org>.
ACSGitBot removed a comment on pull request #112:
URL: https://github.com/apache/cloudstack-documentation/pull/112#issuecomment-624273508


   Build finished.  You can review it at:   https://acs-www.shapeblue.com/docs/WIP-PROOFING/pr112
   
   Build Log Output:
   
   
   No log errors found to report.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-documentation] andrijapanicsb commented on a change in pull request #112: Timezone requirements for 4.14+

Posted by GitBox <gi...@apache.org>.
andrijapanicsb commented on a change in pull request #112:
URL: https://github.com/apache/cloudstack-documentation/pull/112#discussion_r420712619



##########
File path: source/upgrading/upgrade/_timezone.rst
##########
@@ -0,0 +1,33 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information#
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   http://www.apache.org/licenses/LICENSE-2.0
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License.
+
+.. sub-section included in upgrade notes.
+
+Time zone requirements
+######################
+
+As of CloudStack 4.14,  you must explicitly configure time zone either in the MySQL server or JDBC driver (db.properties).
+In previous CloudStack versions, UTC time zone was assumed by default (all event's have UTC time stamps), so
+the same UTC time zone should now be explicitly configured.
+
+You can do this by editing the /etc/cloudstack/management/db.properties file and adding "serverTimezone=UTC"
+to the "db.cloud.url.params=" and "db.usage.url.params=" lines.  Example lines, from a clean 4.14 installation, are given below:
+
+.. parsed-literal::
+
+   db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&serverTimezone=UTC
+   db.usage.url.params=serverTimezone=UTC
+
+If you want time stamps in DB to use a different time zone, please make sure to test this thoroughly in test environment.

Review comment:
       Removed the whole line, as even when changing this from UTC to Europe/Belgrade (CEST) - nothing happens, no dates are changed in DB, so this atm can NOT be changed at all.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-documentation] andrijapanicsb removed a comment on pull request #112: Timezone requirements for 4.14+

Posted by GitBox <gi...@apache.org>.
andrijapanicsb removed a comment on pull request #112:
URL: https://github.com/apache/cloudstack-documentation/pull/112#issuecomment-624279642


   requesting docbuild


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-documentation] andrijapanicsb commented on pull request #112: Timezone requirements for 4.14+

Posted by GitBox <gi...@apache.org>.
andrijapanicsb commented on pull request #112:
URL: https://github.com/apache/cloudstack-documentation/pull/112#issuecomment-624279642


   requesting docbuild


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-documentation] ACSGitBot commented on pull request #112: Create u_timezone.rst

Posted by GitBox <gi...@apache.org>.
ACSGitBot commented on pull request #112:
URL: https://github.com/apache/cloudstack-documentation/pull/112#issuecomment-624273508


   Build finished.  You can review it at:   https://acs-www.shapeblue.com/docs/WIP-PROOFING/pr112
   
   Build Log Output:
   
   
   No log errors found to report.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-documentation] ACSGitBot commented on pull request #112: Create u_timezone.rst

Posted by GitBox <gi...@apache.org>.
ACSGitBot commented on pull request #112:
URL: https://github.com/apache/cloudstack-documentation/pull/112#issuecomment-624272563


   Your request had been received, i'll go and build the documentation and check the output log for errors.
   
   This shouldn't take long.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-documentation] ACSGitBot removed a comment on pull request #112: Create u_timezone.rst

Posted by GitBox <gi...@apache.org>.
ACSGitBot removed a comment on pull request #112:
URL: https://github.com/apache/cloudstack-documentation/pull/112#issuecomment-624272563


   Your request had been received, i'll go and build the documentation and check the output log for errors.
   
   This shouldn't take long.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-documentation] ACSGitBot commented on pull request #112: Timezone requirements for 4.14+

Posted by GitBox <gi...@apache.org>.
ACSGitBot commented on pull request #112:
URL: https://github.com/apache/cloudstack-documentation/pull/112#issuecomment-624589272


   Build finished.  You can review it at:   https://acs-www.shapeblue.com/docs/WIP-PROOFING/pr112
   
   Build Log Output:
   
   
   No log errors found to report.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-documentation] ACSGitBot removed a comment on pull request #112: Timezone requirements for 4.14+

Posted by GitBox <gi...@apache.org>.
ACSGitBot removed a comment on pull request #112:
URL: https://github.com/apache/cloudstack-documentation/pull/112#issuecomment-624279672






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-documentation] ACSGitBot commented on pull request #112: Create u_timezone.rst

Posted by GitBox <gi...@apache.org>.
ACSGitBot commented on pull request #112:
URL: https://github.com/apache/cloudstack-documentation/pull/112#issuecomment-624269721


   Build finished.  You can review it at:   https://acs-www.shapeblue.com/docs/WIP-PROOFING/pr112
   
   Build Log Output:
   
   
   No log errors found to report.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org