[GitHub] [cloudstack-documentation] andrijapanicsb commented on a change in pull request #87: upgrade: upgrade systemvmtemplate for 4.14

2020-04-12 Thread GitBox
andrijapanicsb commented on a change in pull request #87: upgrade: upgrade 
systemvmtemplate for 4.14
URL: 
https://github.com/apache/cloudstack-documentation/pull/87#discussion_r407203175
 
 

 ##
 File path: source/upgrading/upgrade/upgrade-4.13.rst
 ##
 @@ -0,0 +1,345 @@
+.. 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.
+
+.. |version_to_upgrade| replace:: 4.13.x
+
+Upgrade Instruction from |version_to_upgrade|
+=
+
+This section will guide you from CloudStack |version_to_upgrade| to latest
+CloudStack |release|.
+
+Any steps that are hypervisor-specific will be called out with a note.
+
+We recommend reading through this section once or twice before beginning
+your upgrade procedure, and working through it on a test system before
+working on a production system.
+
+.. note::
+The following upgrade instructions should be performed regardless of
+hypervisor type.
+
+Overview of Upgrade Steps:
+
+
+#. Check any customisations and integrations
+#. Upload the |sysvm64-version| System VM template if not already using it.
+#. Stop all running management servers
+#. Backup CloudStack database (MySQL)
+#. Upgrade 1st CloudStack management server
+#. Update hypervisors specific dependencies
+#. Restart 1st management server
+#. Check that your upgraded environment works as expected
+#. Upgrade and restart the remaining management servers
+
+
+.. include:: _customisation_warnings.rst
+
+.. warning::
+If you are not already using the |sysvm64-version| System VM template you 
will need to 
+upgrade your System VM template prior to performing the upgrade of the 
+CloudStack packages.
+
+.. include:: _sysvm_templates.rst
+
+.. include:: _java_version.rst
+
+Packages repository
+---
+
+Most users of CloudStack manage the installation and upgrades of
+CloudStack with one of Linux's predominant package systems, RPM or
+APT. This guide assumes you'll be using RPM and Yum (for Red Hat
+Enterprise Linux or CentOS), or APT and Debian packages (for Ubuntu).
+
+Create RPM or Debian packages (as appropriate) and a repository from
+the |release| source, or check the Apache CloudStack downloads page at
+http://cloudstack.apache.org/downloads.html
+for package repositories supplied by community members. You will need
+them for :ref:`ubuntu413` or :ref:`rhel413` and :ref:`kvm413` hosts upgrade.
+
+Instructions for creating packages from the CloudStack source are in the
+`CloudStack Installation Guide`_.
+
+Database Preparation
+
+
+Backup current database
+
+#. Stop your management server or servers. Run this on all management
+   server hosts:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-management stop
+
+#. If you are running a usage server or usage servers, stop those as well:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-usage stop
+
+#. Make a backup of your MySQL database. If you run into any issues or
+   need to roll back the upgrade, this will assist in debugging or
+   restoring your existing environment. You'll be prompted for your
+   password.
+
+   .. parsed-literal::
+
+  $ mysqldump -u root -p cloud > cloud-backup_`date '+%Y-%m-%d'`.sql
+  $ mysqldump -u root -p cloud_usage > cloud_usage-backup_`date 
'+%Y-%m-%d'`.sql
+
+
+.. _ubuntu413:
+.. _apt-repo413:
+
+Management Server
+-
+
+Ubuntu
+##
+
+If you are using Ubuntu, follow this procedure to upgrade your packages. If
+not, skip to step :ref:`rhel413`.
+
+.. note::
+   **Community Packages:** This section assumes you're using the community
+   supplied packages for CloudStack. If you've created your own packages and
+   APT repository, substitute your own URL for the ones used in these examples.
+
+The first order of business will be to change the sources list for
+each system with CloudStack packages. This means all management
+servers, and any hosts that have the KVM agent. (No changes should
+be necessary for hosts that are running VMware or Xen.)
+
+
+
+Start by opening ``/etc/apt/sources.list.d/cloudstack.list`` on
+any systems that have CloudStack packages installed.
+
+This file should have one line,

[GitHub] [cloudstack-documentation] andrijapanicsb commented on a change in pull request #87: upgrade: upgrade systemvmtemplate for 4.14

2020-02-03 Thread GitBox
andrijapanicsb commented on a change in pull request #87: upgrade: upgrade 
systemvmtemplate for 4.14
URL: 
https://github.com/apache/cloudstack-documentation/pull/87#discussion_r374210501
 
 

 ##
 File path: source/upgrading/upgrade/upgrade_notes.rst
 ##
 @@ -18,15 +18,28 @@ General Upgrade Notes
 =
 
 
-Java version upgraded to Java 1.8
+Java version upgraded to Java 1.11
 -
 
-As of Apache CloudStack 4.10, Java version required is 1.8 for the
+As of Apache CloudStack 4.14, Java version required is 1.11 for the
 management-server, cloudstack-usage, KVM agent and system-VMs.
 
 
-.. include:: _java_8_ubuntu.rst
+.. include:: _java_version.rst
 
+UI Deprecation Notice
 
 Review comment:
   @rhtyd I don't see this whole section visible anywhere (in any of the 
specific version upgrade docs..) - I could include it myself somewhere, but not 
sure where is the best place - possibly in index page?
   
   And we should probably also add that we don't support CentOS 6 anymore.


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:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [cloudstack-documentation] andrijapanicsb commented on a change in pull request #87: upgrade: upgrade systemvmtemplate for 4.14

2020-01-28 Thread GitBox
andrijapanicsb commented on a change in pull request #87: upgrade: upgrade 
systemvmtemplate for 4.14
URL: 
https://github.com/apache/cloudstack-documentation/pull/87#discussion_r371997855
 
 

 ##
 File path: source/upgrading/upgrade/upgrade-4.13.rst
 ##
 @@ -0,0 +1,360 @@
+.. 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.
+
+.. |version_to_upgrade| replace:: 4.13.x
+
+Upgrade Instruction from |version_to_upgrade|
+=
+
+This section will guide you from CloudStack |version_to_upgrade| to latest
+CloudStack |release|.
+
+Any steps that are hypervisor-specific will be called out with a note.
+
+We recommend reading through this section once or twice before beginning
+your upgrade procedure, and working through it on a test system before
+working on a production system.
+
+.. note::
+The following upgrade instructions should be performed regardless of
+hypervisor type.
+
+Overview of Upgrade Steps:
+
+
+#. Check any customisations and integrations
+#. Upload the |sysvm64-version| System VM template if not already using it.
+#. Stop all running management servers
+#. Backup CloudStack database (MySQL)
+#. Upgrade 1st CloudStack management server
+#. Update hypervisors specific dependencies
+#. Restart 1st management server
+#. Check that your upgraded environment works as expected
+#. Upgrade and restart the remaining management servers
+
+
+.. include:: _customisation_warnings.rst
+
+.. warning::
+If you are not already using the |sysvm64-version| System VM template you 
will need to 
+upgrade your System VM template prior to performing the upgrade of the 
+CloudStack packages.
+
+.. include:: _sysvm_templates.rst
+
+Packages repository
+---
+
+Most users of CloudStack manage the installation and upgrades of
+CloudStack with one of Linux's predominant package systems, RPM or
+APT. This guide assumes you'll be using RPM and Yum (for Red Hat
+Enterprise Linux or CentOS), or APT and Debian packages (for Ubuntu).
+
+Create RPM or Debian packages (as appropriate) and a repository from
+the |release| source, or check the Apache CloudStack downloads page at
+http://cloudstack.apache.org/downloads.html
+for package repositories supplied by community members. You will need
+them for :ref:`ubuntu412` or :ref:`rhel412` and :ref:`kvm412` hosts upgrade.
+
+Instructions for creating packages from the CloudStack source are in the
+`CloudStack Installation Guide`_.
+
+Database Preparation
+
+
+Backup current database
+
+#. Stop your management server or servers. Run this on all management
+   server hosts:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-management stop
+
+#. If you are running a usage server or usage servers, stop those as well:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-usage stop
+
+#. Make a backup of your MySQL database. If you run into any issues or
+   need to roll back the upgrade, this will assist in debugging or
+   restoring your existing environment. You'll be prompted for your
+   password.
+
+   .. parsed-literal::
+
+  $ mysqldump -u root -p cloud > cloud-backup_`date '+%Y-%m-%d'`.sql
+  $ mysqldump -u root -p cloud_usage > cloud_usage-backup_`date 
'+%Y-%m-%d'`.sql
+
+#. **(KVM Only)** If primary storage of type local storage is in use, the
+   path for this storage needs to be verified to ensure it passes new
+   validation. Check local storage by querying the cloud.storage\_pool
+   table:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e "select id,name,path from cloud.storage_pool 
where pool_type='Filesystem'"
+
+   If local storage paths are found to have a trailing forward slash,
+   remove it:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e 'update cloud.storage_pool set 
path="/var/lib/libvirt/images" where path="/var/lib/libvirt/images/"';
 
 Review comment:
   Merged, so please remove that section here @rhtyd 


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 comme

[GitHub] [cloudstack-documentation] andrijapanicsb commented on a change in pull request #87: upgrade: upgrade systemvmtemplate for 4.14

2020-01-28 Thread GitBox
andrijapanicsb commented on a change in pull request #87: upgrade: upgrade 
systemvmtemplate for 4.14
URL: 
https://github.com/apache/cloudstack-documentation/pull/87#discussion_r371996773
 
 

 ##
 File path: source/upgrading/upgrade/_sysvm_templates.rst
 ##
 @@ -48,9 +48,7 @@ Update System-VM templates
|||
|| Format: VHD|
|||
-   || OS Type: Debian GNU/Linux 7.0 (64-bit) (or the |
-   || highest Debian release number available in the |
-   || dropdown)  |
+   || OS Type: Other Linux 64-bit|
|||
|| Extractable: no|
|||
 
 Review comment:
   HVM doesn't show for some hypervisor afaik,  but yes valid point (have been 
asked questions about that recently) 


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:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [cloudstack-documentation] andrijapanicsb commented on a change in pull request #87: upgrade: upgrade systemvmtemplate for 4.14

2020-01-14 Thread GitBox
andrijapanicsb commented on a change in pull request #87: upgrade: upgrade 
systemvmtemplate for 4.14
URL: 
https://github.com/apache/cloudstack-documentation/pull/87#discussion_r366275381
 
 

 ##
 File path: source/upgrading/upgrade/upgrade-4.13.rst
 ##
 @@ -0,0 +1,360 @@
+.. 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.
+
+.. |version_to_upgrade| replace:: 4.13.x
+
+Upgrade Instruction from |version_to_upgrade|
+=
+
+This section will guide you from CloudStack |version_to_upgrade| to latest
+CloudStack |release|.
+
+Any steps that are hypervisor-specific will be called out with a note.
+
+We recommend reading through this section once or twice before beginning
+your upgrade procedure, and working through it on a test system before
+working on a production system.
+
+.. note::
+The following upgrade instructions should be performed regardless of
+hypervisor type.
+
+Overview of Upgrade Steps:
+
+
+#. Check any customisations and integrations
+#. Upload the |sysvm64-version| System VM template if not already using it.
+#. Stop all running management servers
+#. Backup CloudStack database (MySQL)
+#. Upgrade 1st CloudStack management server
+#. Update hypervisors specific dependencies
+#. Restart 1st management server
+#. Check that your upgraded environment works as expected
+#. Upgrade and restart the remaining management servers
+
+
+.. include:: _customisation_warnings.rst
+
+.. warning::
+If you are not already using the |sysvm64-version| System VM template you 
will need to 
+upgrade your System VM template prior to performing the upgrade of the 
+CloudStack packages.
+
+.. include:: _sysvm_templates.rst
+
+Packages repository
+---
+
+Most users of CloudStack manage the installation and upgrades of
+CloudStack with one of Linux's predominant package systems, RPM or
+APT. This guide assumes you'll be using RPM and Yum (for Red Hat
+Enterprise Linux or CentOS), or APT and Debian packages (for Ubuntu).
+
+Create RPM or Debian packages (as appropriate) and a repository from
+the |release| source, or check the Apache CloudStack downloads page at
+http://cloudstack.apache.org/downloads.html
+for package repositories supplied by community members. You will need
+them for :ref:`ubuntu412` or :ref:`rhel412` and :ref:`kvm412` hosts upgrade.
+
+Instructions for creating packages from the CloudStack source are in the
+`CloudStack Installation Guide`_.
+
+Database Preparation
+
+
+Backup current database
+
+#. Stop your management server or servers. Run this on all management
+   server hosts:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-management stop
+
+#. If you are running a usage server or usage servers, stop those as well:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-usage stop
+
+#. Make a backup of your MySQL database. If you run into any issues or
+   need to roll back the upgrade, this will assist in debugging or
+   restoring your existing environment. You'll be prompted for your
+   password.
+
+   .. parsed-literal::
+
+  $ mysqldump -u root -p cloud > cloud-backup_`date '+%Y-%m-%d'`.sql
+  $ mysqldump -u root -p cloud_usage > cloud_usage-backup_`date 
'+%Y-%m-%d'`.sql
+
+#. **(KVM Only)** If primary storage of type local storage is in use, the
+   path for this storage needs to be verified to ensure it passes new
+   validation. Check local storage by querying the cloud.storage\_pool
+   table:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e "select id,name,path from cloud.storage_pool 
where pool_type='Filesystem'"
 
 Review comment:
   https://github.com/apache/cloudstack/pull/3813 - check and approve


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:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [cloudstack-documentation] andrijapanicsb commented on a change in pull request #87: upgrade: upgrade systemvmtemplate for 4.14

2020-01-14 Thread GitBox
andrijapanicsb commented on a change in pull request #87: upgrade: upgrade 
systemvmtemplate for 4.14
URL: 
https://github.com/apache/cloudstack-documentation/pull/87#discussion_r366275485
 
 

 ##
 File path: source/upgrading/upgrade/upgrade-4.13.rst
 ##
 @@ -0,0 +1,360 @@
+.. 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.
+
+.. |version_to_upgrade| replace:: 4.13.x
+
+Upgrade Instruction from |version_to_upgrade|
+=
+
+This section will guide you from CloudStack |version_to_upgrade| to latest
+CloudStack |release|.
+
+Any steps that are hypervisor-specific will be called out with a note.
+
+We recommend reading through this section once or twice before beginning
+your upgrade procedure, and working through it on a test system before
+working on a production system.
+
+.. note::
+The following upgrade instructions should be performed regardless of
+hypervisor type.
+
+Overview of Upgrade Steps:
+
+
+#. Check any customisations and integrations
+#. Upload the |sysvm64-version| System VM template if not already using it.
+#. Stop all running management servers
+#. Backup CloudStack database (MySQL)
+#. Upgrade 1st CloudStack management server
+#. Update hypervisors specific dependencies
+#. Restart 1st management server
+#. Check that your upgraded environment works as expected
+#. Upgrade and restart the remaining management servers
+
+
+.. include:: _customisation_warnings.rst
+
+.. warning::
+If you are not already using the |sysvm64-version| System VM template you 
will need to 
+upgrade your System VM template prior to performing the upgrade of the 
+CloudStack packages.
+
+.. include:: _sysvm_templates.rst
+
+Packages repository
+---
+
+Most users of CloudStack manage the installation and upgrades of
+CloudStack with one of Linux's predominant package systems, RPM or
+APT. This guide assumes you'll be using RPM and Yum (for Red Hat
+Enterprise Linux or CentOS), or APT and Debian packages (for Ubuntu).
+
+Create RPM or Debian packages (as appropriate) and a repository from
+the |release| source, or check the Apache CloudStack downloads page at
+http://cloudstack.apache.org/downloads.html
+for package repositories supplied by community members. You will need
+them for :ref:`ubuntu412` or :ref:`rhel412` and :ref:`kvm412` hosts upgrade.
+
+Instructions for creating packages from the CloudStack source are in the
+`CloudStack Installation Guide`_.
+
+Database Preparation
+
+
+Backup current database
+
+#. Stop your management server or servers. Run this on all management
+   server hosts:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-management stop
+
+#. If you are running a usage server or usage servers, stop those as well:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-usage stop
+
+#. Make a backup of your MySQL database. If you run into any issues or
+   need to roll back the upgrade, this will assist in debugging or
+   restoring your existing environment. You'll be prompted for your
+   password.
+
+   .. parsed-literal::
+
+  $ mysqldump -u root -p cloud > cloud-backup_`date '+%Y-%m-%d'`.sql
+  $ mysqldump -u root -p cloud_usage > cloud_usage-backup_`date 
'+%Y-%m-%d'`.sql
+
+#. **(KVM Only)** If primary storage of type local storage is in use, the
+   path for this storage needs to be verified to ensure it passes new
+   validation. Check local storage by querying the cloud.storage\_pool
+   table:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e "select id,name,path from cloud.storage_pool 
where pool_type='Filesystem'"
+
+   If local storage paths are found to have a trailing forward slash,
+   remove it:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e 'update cloud.storage_pool set 
path="/var/lib/libvirt/images" where path="/var/lib/libvirt/images/"';
 
 Review comment:
   https://github.com/apache/cloudstack/pull/3813 - check and approve 


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 t

[GitHub] [cloudstack-documentation] andrijapanicsb commented on a change in pull request #87: upgrade: upgrade systemvmtemplate for 4.14

2020-01-14 Thread GitBox
andrijapanicsb commented on a change in pull request #87: upgrade: upgrade 
systemvmtemplate for 4.14
URL: 
https://github.com/apache/cloudstack-documentation/pull/87#discussion_r366269944
 
 

 ##
 File path: source/upgrading/upgrade/upgrade-4.13.rst
 ##
 @@ -0,0 +1,360 @@
+.. 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.
+
+.. |version_to_upgrade| replace:: 4.13.x
+
+Upgrade Instruction from |version_to_upgrade|
+=
+
+This section will guide you from CloudStack |version_to_upgrade| to latest
+CloudStack |release|.
+
+Any steps that are hypervisor-specific will be called out with a note.
+
+We recommend reading through this section once or twice before beginning
+your upgrade procedure, and working through it on a test system before
+working on a production system.
+
+.. note::
+The following upgrade instructions should be performed regardless of
+hypervisor type.
+
+Overview of Upgrade Steps:
+
+
+#. Check any customisations and integrations
+#. Upload the |sysvm64-version| System VM template if not already using it.
+#. Stop all running management servers
+#. Backup CloudStack database (MySQL)
+#. Upgrade 1st CloudStack management server
+#. Update hypervisors specific dependencies
+#. Restart 1st management server
+#. Check that your upgraded environment works as expected
+#. Upgrade and restart the remaining management servers
+
+
+.. include:: _customisation_warnings.rst
+
+.. warning::
+If you are not already using the |sysvm64-version| System VM template you 
will need to 
+upgrade your System VM template prior to performing the upgrade of the 
+CloudStack packages.
+
+.. include:: _sysvm_templates.rst
+
+Packages repository
+---
+
+Most users of CloudStack manage the installation and upgrades of
+CloudStack with one of Linux's predominant package systems, RPM or
+APT. This guide assumes you'll be using RPM and Yum (for Red Hat
+Enterprise Linux or CentOS), or APT and Debian packages (for Ubuntu).
+
+Create RPM or Debian packages (as appropriate) and a repository from
+the |release| source, or check the Apache CloudStack downloads page at
+http://cloudstack.apache.org/downloads.html
+for package repositories supplied by community members. You will need
+them for :ref:`ubuntu412` or :ref:`rhel412` and :ref:`kvm412` hosts upgrade.
+
+Instructions for creating packages from the CloudStack source are in the
+`CloudStack Installation Guide`_.
+
+Database Preparation
+
+
+Backup current database
+
+#. Stop your management server or servers. Run this on all management
+   server hosts:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-management stop
+
+#. If you are running a usage server or usage servers, stop those as well:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-usage stop
+
+#. Make a backup of your MySQL database. If you run into any issues or
+   need to roll back the upgrade, this will assist in debugging or
+   restoring your existing environment. You'll be prompted for your
+   password.
+
+   .. parsed-literal::
+
+  $ mysqldump -u root -p cloud > cloud-backup_`date '+%Y-%m-%d'`.sql
+  $ mysqldump -u root -p cloud_usage > cloud_usage-backup_`date 
'+%Y-%m-%d'`.sql
+
+#. **(KVM Only)** If primary storage of type local storage is in use, the
+   path for this storage needs to be verified to ensure it passes new
+   validation. Check local storage by querying the cloud.storage\_pool
+   table:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e "select id,name,path from cloud.storage_pool 
where pool_type='Filesystem'"
+
+   If local storage paths are found to have a trailing forward slash,
+   remove it:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e 'update cloud.storage_pool set 
path="/var/lib/libvirt/images" where path="/var/lib/libvirt/images/"';
+
+
+.. _ubuntu412:
+.. _apt-repo412:
+
+Management Server
+-
+
+Ubuntu
+##
+
+If you are using Ubuntu, follow this procedure to upgrade your packages. If
+not, skip to step :ref:`rhel411`.
+
+.. note::
+   **Community Packages:** This section assumes you're using the communit

[GitHub] [cloudstack-documentation] andrijapanicsb commented on a change in pull request #87: upgrade: upgrade systemvmtemplate for 4.14

2020-01-14 Thread GitBox
andrijapanicsb commented on a change in pull request #87: upgrade: upgrade 
systemvmtemplate for 4.14
URL: 
https://github.com/apache/cloudstack-documentation/pull/87#discussion_r366269884
 
 

 ##
 File path: source/upgrading/upgrade/upgrade-4.13.rst
 ##
 @@ -0,0 +1,360 @@
+.. 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.
+
+.. |version_to_upgrade| replace:: 4.13.x
+
+Upgrade Instruction from |version_to_upgrade|
+=
+
+This section will guide you from CloudStack |version_to_upgrade| to latest
+CloudStack |release|.
+
+Any steps that are hypervisor-specific will be called out with a note.
+
+We recommend reading through this section once or twice before beginning
+your upgrade procedure, and working through it on a test system before
+working on a production system.
+
+.. note::
+The following upgrade instructions should be performed regardless of
+hypervisor type.
+
+Overview of Upgrade Steps:
+
+
+#. Check any customisations and integrations
+#. Upload the |sysvm64-version| System VM template if not already using it.
+#. Stop all running management servers
+#. Backup CloudStack database (MySQL)
+#. Upgrade 1st CloudStack management server
+#. Update hypervisors specific dependencies
+#. Restart 1st management server
+#. Check that your upgraded environment works as expected
+#. Upgrade and restart the remaining management servers
+
+
+.. include:: _customisation_warnings.rst
+
+.. warning::
+If you are not already using the |sysvm64-version| System VM template you 
will need to 
+upgrade your System VM template prior to performing the upgrade of the 
+CloudStack packages.
+
+.. include:: _sysvm_templates.rst
+
+Packages repository
+---
+
+Most users of CloudStack manage the installation and upgrades of
+CloudStack with one of Linux's predominant package systems, RPM or
+APT. This guide assumes you'll be using RPM and Yum (for Red Hat
+Enterprise Linux or CentOS), or APT and Debian packages (for Ubuntu).
+
+Create RPM or Debian packages (as appropriate) and a repository from
+the |release| source, or check the Apache CloudStack downloads page at
+http://cloudstack.apache.org/downloads.html
+for package repositories supplied by community members. You will need
+them for :ref:`ubuntu412` or :ref:`rhel412` and :ref:`kvm412` hosts upgrade.
+
+Instructions for creating packages from the CloudStack source are in the
+`CloudStack Installation Guide`_.
+
+Database Preparation
+
+
+Backup current database
+
+#. Stop your management server or servers. Run this on all management
+   server hosts:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-management stop
+
+#. If you are running a usage server or usage servers, stop those as well:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-usage stop
+
+#. Make a backup of your MySQL database. If you run into any issues or
+   need to roll back the upgrade, this will assist in debugging or
+   restoring your existing environment. You'll be prompted for your
+   password.
+
+   .. parsed-literal::
+
+  $ mysqldump -u root -p cloud > cloud-backup_`date '+%Y-%m-%d'`.sql
+  $ mysqldump -u root -p cloud_usage > cloud_usage-backup_`date 
'+%Y-%m-%d'`.sql
+
+#. **(KVM Only)** If primary storage of type local storage is in use, the
+   path for this storage needs to be verified to ensure it passes new
+   validation. Check local storage by querying the cloud.storage\_pool
+   table:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e "select id,name,path from cloud.storage_pool 
where pool_type='Filesystem'"
+
+   If local storage paths are found to have a trailing forward slash,
+   remove it:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e 'update cloud.storage_pool set 
path="/var/lib/libvirt/images" where path="/var/lib/libvirt/images/"';
+
+
+.. _ubuntu412:
+.. _apt-repo412:
+
+Management Server
+-
+
+Ubuntu
+##
+
+If you are using Ubuntu, follow this procedure to upgrade your packages. If
+not, skip to step :ref:`rhel411`.
+
+.. note::
+   **Community Packages:** This section assumes you're using the communit

[GitHub] [cloudstack-documentation] andrijapanicsb commented on a change in pull request #87: upgrade: upgrade systemvmtemplate for 4.14

2020-01-14 Thread GitBox
andrijapanicsb commented on a change in pull request #87: upgrade: upgrade 
systemvmtemplate for 4.14
URL: 
https://github.com/apache/cloudstack-documentation/pull/87#discussion_r366269717
 
 

 ##
 File path: source/upgrading/upgrade/upgrade-4.13.rst
 ##
 @@ -0,0 +1,360 @@
+.. 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.
+
+.. |version_to_upgrade| replace:: 4.13.x
+
+Upgrade Instruction from |version_to_upgrade|
+=
+
+This section will guide you from CloudStack |version_to_upgrade| to latest
+CloudStack |release|.
+
+Any steps that are hypervisor-specific will be called out with a note.
+
+We recommend reading through this section once or twice before beginning
+your upgrade procedure, and working through it on a test system before
+working on a production system.
+
+.. note::
+The following upgrade instructions should be performed regardless of
+hypervisor type.
+
+Overview of Upgrade Steps:
+
+
+#. Check any customisations and integrations
+#. Upload the |sysvm64-version| System VM template if not already using it.
+#. Stop all running management servers
+#. Backup CloudStack database (MySQL)
+#. Upgrade 1st CloudStack management server
+#. Update hypervisors specific dependencies
+#. Restart 1st management server
+#. Check that your upgraded environment works as expected
+#. Upgrade and restart the remaining management servers
+
+
+.. include:: _customisation_warnings.rst
+
+.. warning::
+If you are not already using the |sysvm64-version| System VM template you 
will need to 
+upgrade your System VM template prior to performing the upgrade of the 
+CloudStack packages.
+
+.. include:: _sysvm_templates.rst
+
+Packages repository
+---
+
+Most users of CloudStack manage the installation and upgrades of
+CloudStack with one of Linux's predominant package systems, RPM or
+APT. This guide assumes you'll be using RPM and Yum (for Red Hat
+Enterprise Linux or CentOS), or APT and Debian packages (for Ubuntu).
+
+Create RPM or Debian packages (as appropriate) and a repository from
+the |release| source, or check the Apache CloudStack downloads page at
+http://cloudstack.apache.org/downloads.html
+for package repositories supplied by community members. You will need
+them for :ref:`ubuntu412` or :ref:`rhel412` and :ref:`kvm412` hosts upgrade.
+
+Instructions for creating packages from the CloudStack source are in the
+`CloudStack Installation Guide`_.
+
+Database Preparation
+
+
+Backup current database
+
+#. Stop your management server or servers. Run this on all management
+   server hosts:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-management stop
+
+#. If you are running a usage server or usage servers, stop those as well:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-usage stop
+
+#. Make a backup of your MySQL database. If you run into any issues or
+   need to roll back the upgrade, this will assist in debugging or
+   restoring your existing environment. You'll be prompted for your
+   password.
+
+   .. parsed-literal::
+
+  $ mysqldump -u root -p cloud > cloud-backup_`date '+%Y-%m-%d'`.sql
+  $ mysqldump -u root -p cloud_usage > cloud_usage-backup_`date 
'+%Y-%m-%d'`.sql
+
+#. **(KVM Only)** If primary storage of type local storage is in use, the
+   path for this storage needs to be verified to ensure it passes new
+   validation. Check local storage by querying the cloud.storage\_pool
+   table:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e "select id,name,path from cloud.storage_pool 
where pool_type='Filesystem'"
+
+   If local storage paths are found to have a trailing forward slash,
+   remove it:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e 'update cloud.storage_pool set 
path="/var/lib/libvirt/images" where path="/var/lib/libvirt/images/"';
+
+
+.. _ubuntu412:
+.. _apt-repo412:
+
+Management Server
+-
+
+Ubuntu
+##
+
+If you are using Ubuntu, follow this procedure to upgrade your packages. If
+not, skip to step :ref:`rhel411`.
+
+.. note::
+   **Community Packages:** This section assumes you're using the communit

[GitHub] [cloudstack-documentation] andrijapanicsb commented on a change in pull request #87: upgrade: upgrade systemvmtemplate for 4.14

2020-01-14 Thread GitBox
andrijapanicsb commented on a change in pull request #87: upgrade: upgrade 
systemvmtemplate for 4.14
URL: 
https://github.com/apache/cloudstack-documentation/pull/87#discussion_r366269484
 
 

 ##
 File path: source/upgrading/upgrade/upgrade-4.13.rst
 ##
 @@ -0,0 +1,360 @@
+.. 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.
+
+.. |version_to_upgrade| replace:: 4.13.x
+
+Upgrade Instruction from |version_to_upgrade|
+=
+
+This section will guide you from CloudStack |version_to_upgrade| to latest
+CloudStack |release|.
+
+Any steps that are hypervisor-specific will be called out with a note.
+
+We recommend reading through this section once or twice before beginning
+your upgrade procedure, and working through it on a test system before
+working on a production system.
+
+.. note::
+The following upgrade instructions should be performed regardless of
+hypervisor type.
+
+Overview of Upgrade Steps:
+
+
+#. Check any customisations and integrations
+#. Upload the |sysvm64-version| System VM template if not already using it.
+#. Stop all running management servers
+#. Backup CloudStack database (MySQL)
+#. Upgrade 1st CloudStack management server
+#. Update hypervisors specific dependencies
+#. Restart 1st management server
+#. Check that your upgraded environment works as expected
+#. Upgrade and restart the remaining management servers
+
+
+.. include:: _customisation_warnings.rst
+
+.. warning::
+If you are not already using the |sysvm64-version| System VM template you 
will need to 
+upgrade your System VM template prior to performing the upgrade of the 
+CloudStack packages.
+
+.. include:: _sysvm_templates.rst
+
+Packages repository
+---
+
+Most users of CloudStack manage the installation and upgrades of
+CloudStack with one of Linux's predominant package systems, RPM or
+APT. This guide assumes you'll be using RPM and Yum (for Red Hat
+Enterprise Linux or CentOS), or APT and Debian packages (for Ubuntu).
+
+Create RPM or Debian packages (as appropriate) and a repository from
+the |release| source, or check the Apache CloudStack downloads page at
+http://cloudstack.apache.org/downloads.html
+for package repositories supplied by community members. You will need
+them for :ref:`ubuntu412` or :ref:`rhel412` and :ref:`kvm412` hosts upgrade.
+
+Instructions for creating packages from the CloudStack source are in the
+`CloudStack Installation Guide`_.
+
+Database Preparation
+
+
+Backup current database
+
+#. Stop your management server or servers. Run this on all management
+   server hosts:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-management stop
+
+#. If you are running a usage server or usage servers, stop those as well:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-usage stop
+
+#. Make a backup of your MySQL database. If you run into any issues or
+   need to roll back the upgrade, this will assist in debugging or
+   restoring your existing environment. You'll be prompted for your
+   password.
+
+   .. parsed-literal::
+
+  $ mysqldump -u root -p cloud > cloud-backup_`date '+%Y-%m-%d'`.sql
+  $ mysqldump -u root -p cloud_usage > cloud_usage-backup_`date 
'+%Y-%m-%d'`.sql
+
+#. **(KVM Only)** If primary storage of type local storage is in use, the
+   path for this storage needs to be verified to ensure it passes new
+   validation. Check local storage by querying the cloud.storage\_pool
+   table:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e "select id,name,path from cloud.storage_pool 
where pool_type='Filesystem'"
+
+   If local storage paths are found to have a trailing forward slash,
+   remove it:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e 'update cloud.storage_pool set 
path="/var/lib/libvirt/images" where path="/var/lib/libvirt/images/"';
+
+
+.. _ubuntu412:
+.. _apt-repo412:
+
+Management Server
+-
+
+Ubuntu
+##
+
+If you are using Ubuntu, follow this procedure to upgrade your packages. If
+not, skip to step :ref:`rhel411`.
+
+.. note::
+   **Community Packages:** This section assumes you're using the communit

[GitHub] [cloudstack-documentation] andrijapanicsb commented on a change in pull request #87: upgrade: upgrade systemvmtemplate for 4.14

2020-01-14 Thread GitBox
andrijapanicsb commented on a change in pull request #87: upgrade: upgrade 
systemvmtemplate for 4.14
URL: 
https://github.com/apache/cloudstack-documentation/pull/87#discussion_r366269620
 
 

 ##
 File path: source/upgrading/upgrade/upgrade-4.13.rst
 ##
 @@ -0,0 +1,360 @@
+.. 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.
+
+.. |version_to_upgrade| replace:: 4.13.x
+
+Upgrade Instruction from |version_to_upgrade|
+=
+
+This section will guide you from CloudStack |version_to_upgrade| to latest
+CloudStack |release|.
+
+Any steps that are hypervisor-specific will be called out with a note.
+
+We recommend reading through this section once or twice before beginning
+your upgrade procedure, and working through it on a test system before
+working on a production system.
+
+.. note::
+The following upgrade instructions should be performed regardless of
+hypervisor type.
+
+Overview of Upgrade Steps:
+
+
+#. Check any customisations and integrations
+#. Upload the |sysvm64-version| System VM template if not already using it.
+#. Stop all running management servers
+#. Backup CloudStack database (MySQL)
+#. Upgrade 1st CloudStack management server
+#. Update hypervisors specific dependencies
+#. Restart 1st management server
+#. Check that your upgraded environment works as expected
+#. Upgrade and restart the remaining management servers
+
+
+.. include:: _customisation_warnings.rst
+
+.. warning::
+If you are not already using the |sysvm64-version| System VM template you 
will need to 
+upgrade your System VM template prior to performing the upgrade of the 
+CloudStack packages.
+
+.. include:: _sysvm_templates.rst
+
+Packages repository
+---
+
+Most users of CloudStack manage the installation and upgrades of
+CloudStack with one of Linux's predominant package systems, RPM or
+APT. This guide assumes you'll be using RPM and Yum (for Red Hat
+Enterprise Linux or CentOS), or APT and Debian packages (for Ubuntu).
+
+Create RPM or Debian packages (as appropriate) and a repository from
+the |release| source, or check the Apache CloudStack downloads page at
+http://cloudstack.apache.org/downloads.html
+for package repositories supplied by community members. You will need
+them for :ref:`ubuntu412` or :ref:`rhel412` and :ref:`kvm412` hosts upgrade.
+
+Instructions for creating packages from the CloudStack source are in the
+`CloudStack Installation Guide`_.
+
+Database Preparation
+
+
+Backup current database
+
+#. Stop your management server or servers. Run this on all management
+   server hosts:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-management stop
+
+#. If you are running a usage server or usage servers, stop those as well:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-usage stop
+
+#. Make a backup of your MySQL database. If you run into any issues or
+   need to roll back the upgrade, this will assist in debugging or
+   restoring your existing environment. You'll be prompted for your
+   password.
+
+   .. parsed-literal::
+
+  $ mysqldump -u root -p cloud > cloud-backup_`date '+%Y-%m-%d'`.sql
+  $ mysqldump -u root -p cloud_usage > cloud_usage-backup_`date 
'+%Y-%m-%d'`.sql
+
+#. **(KVM Only)** If primary storage of type local storage is in use, the
+   path for this storage needs to be verified to ensure it passes new
+   validation. Check local storage by querying the cloud.storage\_pool
+   table:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e "select id,name,path from cloud.storage_pool 
where pool_type='Filesystem'"
+
+   If local storage paths are found to have a trailing forward slash,
+   remove it:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e 'update cloud.storage_pool set 
path="/var/lib/libvirt/images" where path="/var/lib/libvirt/images/"';
+
+
+.. _ubuntu412:
+.. _apt-repo412:
+
+Management Server
+-
+
+Ubuntu
+##
+
+If you are using Ubuntu, follow this procedure to upgrade your packages. If
+not, skip to step :ref:`rhel411`.
+
+.. note::
+   **Community Packages:** This section assumes you're using the communit

[GitHub] [cloudstack-documentation] andrijapanicsb commented on a change in pull request #87: upgrade: upgrade systemvmtemplate for 4.14

2020-01-14 Thread GitBox
andrijapanicsb commented on a change in pull request #87: upgrade: upgrade 
systemvmtemplate for 4.14
URL: 
https://github.com/apache/cloudstack-documentation/pull/87#discussion_r366269667
 
 

 ##
 File path: source/upgrading/upgrade/upgrade-4.13.rst
 ##
 @@ -0,0 +1,360 @@
+.. 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.
+
+.. |version_to_upgrade| replace:: 4.13.x
+
+Upgrade Instruction from |version_to_upgrade|
+=
+
+This section will guide you from CloudStack |version_to_upgrade| to latest
+CloudStack |release|.
+
+Any steps that are hypervisor-specific will be called out with a note.
+
+We recommend reading through this section once or twice before beginning
+your upgrade procedure, and working through it on a test system before
+working on a production system.
+
+.. note::
+The following upgrade instructions should be performed regardless of
+hypervisor type.
+
+Overview of Upgrade Steps:
+
+
+#. Check any customisations and integrations
+#. Upload the |sysvm64-version| System VM template if not already using it.
+#. Stop all running management servers
+#. Backup CloudStack database (MySQL)
+#. Upgrade 1st CloudStack management server
+#. Update hypervisors specific dependencies
+#. Restart 1st management server
+#. Check that your upgraded environment works as expected
+#. Upgrade and restart the remaining management servers
+
+
+.. include:: _customisation_warnings.rst
+
+.. warning::
+If you are not already using the |sysvm64-version| System VM template you 
will need to 
+upgrade your System VM template prior to performing the upgrade of the 
+CloudStack packages.
+
+.. include:: _sysvm_templates.rst
+
+Packages repository
+---
+
+Most users of CloudStack manage the installation and upgrades of
+CloudStack with one of Linux's predominant package systems, RPM or
+APT. This guide assumes you'll be using RPM and Yum (for Red Hat
+Enterprise Linux or CentOS), or APT and Debian packages (for Ubuntu).
+
+Create RPM or Debian packages (as appropriate) and a repository from
+the |release| source, or check the Apache CloudStack downloads page at
+http://cloudstack.apache.org/downloads.html
+for package repositories supplied by community members. You will need
+them for :ref:`ubuntu412` or :ref:`rhel412` and :ref:`kvm412` hosts upgrade.
+
+Instructions for creating packages from the CloudStack source are in the
+`CloudStack Installation Guide`_.
+
+Database Preparation
+
+
+Backup current database
+
+#. Stop your management server or servers. Run this on all management
+   server hosts:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-management stop
+
+#. If you are running a usage server or usage servers, stop those as well:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-usage stop
+
+#. Make a backup of your MySQL database. If you run into any issues or
+   need to roll back the upgrade, this will assist in debugging or
+   restoring your existing environment. You'll be prompted for your
+   password.
+
+   .. parsed-literal::
+
+  $ mysqldump -u root -p cloud > cloud-backup_`date '+%Y-%m-%d'`.sql
+  $ mysqldump -u root -p cloud_usage > cloud_usage-backup_`date 
'+%Y-%m-%d'`.sql
+
+#. **(KVM Only)** If primary storage of type local storage is in use, the
+   path for this storage needs to be verified to ensure it passes new
+   validation. Check local storage by querying the cloud.storage\_pool
+   table:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e "select id,name,path from cloud.storage_pool 
where pool_type='Filesystem'"
+
+   If local storage paths are found to have a trailing forward slash,
+   remove it:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e 'update cloud.storage_pool set 
path="/var/lib/libvirt/images" where path="/var/lib/libvirt/images/"';
+
+
+.. _ubuntu412:
+.. _apt-repo412:
 
 Review comment:
   fixed


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.
 
F

[GitHub] [cloudstack-documentation] andrijapanicsb commented on a change in pull request #87: upgrade: upgrade systemvmtemplate for 4.14

2020-01-14 Thread GitBox
andrijapanicsb commented on a change in pull request #87: upgrade: upgrade 
systemvmtemplate for 4.14
URL: 
https://github.com/apache/cloudstack-documentation/pull/87#discussion_r366240368
 
 

 ##
 File path: source/upgrading/upgrade/upgrade-4.13.rst
 ##
 @@ -0,0 +1,360 @@
+.. 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.
+
+.. |version_to_upgrade| replace:: 4.13.x
+
+Upgrade Instruction from |version_to_upgrade|
+=
+
+This section will guide you from CloudStack |version_to_upgrade| to latest
+CloudStack |release|.
+
+Any steps that are hypervisor-specific will be called out with a note.
+
+We recommend reading through this section once or twice before beginning
+your upgrade procedure, and working through it on a test system before
+working on a production system.
+
+.. note::
+The following upgrade instructions should be performed regardless of
+hypervisor type.
+
+Overview of Upgrade Steps:
+
+
+#. Check any customisations and integrations
+#. Upload the |sysvm64-version| System VM template if not already using it.
+#. Stop all running management servers
+#. Backup CloudStack database (MySQL)
+#. Upgrade 1st CloudStack management server
+#. Update hypervisors specific dependencies
+#. Restart 1st management server
+#. Check that your upgraded environment works as expected
+#. Upgrade and restart the remaining management servers
+
+
+.. include:: _customisation_warnings.rst
+
+.. warning::
+If you are not already using the |sysvm64-version| System VM template you 
will need to 
+upgrade your System VM template prior to performing the upgrade of the 
+CloudStack packages.
+
+.. include:: _sysvm_templates.rst
+
+Packages repository
+---
+
+Most users of CloudStack manage the installation and upgrades of
+CloudStack with one of Linux's predominant package systems, RPM or
+APT. This guide assumes you'll be using RPM and Yum (for Red Hat
+Enterprise Linux or CentOS), or APT and Debian packages (for Ubuntu).
+
+Create RPM or Debian packages (as appropriate) and a repository from
+the |release| source, or check the Apache CloudStack downloads page at
+http://cloudstack.apache.org/downloads.html
+for package repositories supplied by community members. You will need
+them for :ref:`ubuntu412` or :ref:`rhel412` and :ref:`kvm412` hosts upgrade.
+
+Instructions for creating packages from the CloudStack source are in the
+`CloudStack Installation Guide`_.
+
+Database Preparation
+
+
+Backup current database
+
+#. Stop your management server or servers. Run this on all management
+   server hosts:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-management stop
+
+#. If you are running a usage server or usage servers, stop those as well:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-usage stop
+
+#. Make a backup of your MySQL database. If you run into any issues or
+   need to roll back the upgrade, this will assist in debugging or
+   restoring your existing environment. You'll be prompted for your
+   password.
+
+   .. parsed-literal::
+
+  $ mysqldump -u root -p cloud > cloud-backup_`date '+%Y-%m-%d'`.sql
+  $ mysqldump -u root -p cloud_usage > cloud_usage-backup_`date 
'+%Y-%m-%d'`.sql
+
+#. **(KVM Only)** If primary storage of type local storage is in use, the
+   path for this storage needs to be verified to ensure it passes new
+   validation. Check local storage by querying the cloud.storage\_pool
+   table:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e "select id,name,path from cloud.storage_pool 
where pool_type='Filesystem'"
+
+   If local storage paths are found to have a trailing forward slash,
+   remove it:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e 'update cloud.storage_pool set 
path="/var/lib/libvirt/images" where path="/var/lib/libvirt/images/"';
+
+
+.. _ubuntu412:
+.. _apt-repo412:
+
+Management Server
+-
+
+Ubuntu
+##
+
+If you are using Ubuntu, follow this procedure to upgrade your packages. If
+not, skip to step :ref:`rhel411`.
+
+.. note::
+   **Community Packages:** This section assumes you're using the communit

[GitHub] [cloudstack-documentation] andrijapanicsb commented on a change in pull request #87: upgrade: upgrade systemvmtemplate for 4.14

2020-01-14 Thread GitBox
andrijapanicsb commented on a change in pull request #87: upgrade: upgrade 
systemvmtemplate for 4.14
URL: 
https://github.com/apache/cloudstack-documentation/pull/87#discussion_r366239968
 
 

 ##
 File path: source/upgrading/upgrade/upgrade-4.13.rst
 ##
 @@ -0,0 +1,360 @@
+.. 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.
+
+.. |version_to_upgrade| replace:: 4.13.x
+
+Upgrade Instruction from |version_to_upgrade|
+=
+
+This section will guide you from CloudStack |version_to_upgrade| to latest
+CloudStack |release|.
+
+Any steps that are hypervisor-specific will be called out with a note.
+
+We recommend reading through this section once or twice before beginning
+your upgrade procedure, and working through it on a test system before
+working on a production system.
+
+.. note::
+The following upgrade instructions should be performed regardless of
+hypervisor type.
+
+Overview of Upgrade Steps:
+
+
+#. Check any customisations and integrations
+#. Upload the |sysvm64-version| System VM template if not already using it.
+#. Stop all running management servers
+#. Backup CloudStack database (MySQL)
+#. Upgrade 1st CloudStack management server
+#. Update hypervisors specific dependencies
+#. Restart 1st management server
+#. Check that your upgraded environment works as expected
+#. Upgrade and restart the remaining management servers
+
+
+.. include:: _customisation_warnings.rst
+
+.. warning::
+If you are not already using the |sysvm64-version| System VM template you 
will need to 
+upgrade your System VM template prior to performing the upgrade of the 
+CloudStack packages.
+
+.. include:: _sysvm_templates.rst
+
+Packages repository
+---
+
+Most users of CloudStack manage the installation and upgrades of
+CloudStack with one of Linux's predominant package systems, RPM or
+APT. This guide assumes you'll be using RPM and Yum (for Red Hat
+Enterprise Linux or CentOS), or APT and Debian packages (for Ubuntu).
+
+Create RPM or Debian packages (as appropriate) and a repository from
+the |release| source, or check the Apache CloudStack downloads page at
+http://cloudstack.apache.org/downloads.html
+for package repositories supplied by community members. You will need
+them for :ref:`ubuntu412` or :ref:`rhel412` and :ref:`kvm412` hosts upgrade.
+
+Instructions for creating packages from the CloudStack source are in the
+`CloudStack Installation Guide`_.
+
+Database Preparation
+
+
+Backup current database
+
+#. Stop your management server or servers. Run this on all management
+   server hosts:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-management stop
+
+#. If you are running a usage server or usage servers, stop those as well:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-usage stop
+
+#. Make a backup of your MySQL database. If you run into any issues or
+   need to roll back the upgrade, this will assist in debugging or
+   restoring your existing environment. You'll be prompted for your
+   password.
+
+   .. parsed-literal::
+
+  $ mysqldump -u root -p cloud > cloud-backup_`date '+%Y-%m-%d'`.sql
+  $ mysqldump -u root -p cloud_usage > cloud_usage-backup_`date 
'+%Y-%m-%d'`.sql
+
+#. **(KVM Only)** If primary storage of type local storage is in use, the
+   path for this storage needs to be verified to ensure it passes new
+   validation. Check local storage by querying the cloud.storage\_pool
+   table:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e "select id,name,path from cloud.storage_pool 
where pool_type='Filesystem'"
+
+   If local storage paths are found to have a trailing forward slash,
+   remove it:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e 'update cloud.storage_pool set 
path="/var/lib/libvirt/images" where path="/var/lib/libvirt/images/"';
+
+
+.. _ubuntu412:
+.. _apt-repo412:
+
+Management Server
+-
+
+Ubuntu
+##
+
+If you are using Ubuntu, follow this procedure to upgrade your packages. If
+not, skip to step :ref:`rhel411`.
+
+.. note::
+   **Community Packages:** This section assumes you're using the communit

[GitHub] [cloudstack-documentation] andrijapanicsb commented on a change in pull request #87: upgrade: upgrade systemvmtemplate for 4.14

2020-01-14 Thread GitBox
andrijapanicsb commented on a change in pull request #87: upgrade: upgrade 
systemvmtemplate for 4.14
URL: 
https://github.com/apache/cloudstack-documentation/pull/87#discussion_r366239633
 
 

 ##
 File path: source/upgrading/upgrade/upgrade-4.13.rst
 ##
 @@ -0,0 +1,360 @@
+.. 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.
+
+.. |version_to_upgrade| replace:: 4.13.x
+
+Upgrade Instruction from |version_to_upgrade|
+=
+
+This section will guide you from CloudStack |version_to_upgrade| to latest
+CloudStack |release|.
+
+Any steps that are hypervisor-specific will be called out with a note.
+
+We recommend reading through this section once or twice before beginning
+your upgrade procedure, and working through it on a test system before
+working on a production system.
+
+.. note::
+The following upgrade instructions should be performed regardless of
+hypervisor type.
+
+Overview of Upgrade Steps:
+
+
+#. Check any customisations and integrations
+#. Upload the |sysvm64-version| System VM template if not already using it.
+#. Stop all running management servers
+#. Backup CloudStack database (MySQL)
+#. Upgrade 1st CloudStack management server
+#. Update hypervisors specific dependencies
+#. Restart 1st management server
+#. Check that your upgraded environment works as expected
+#. Upgrade and restart the remaining management servers
+
+
+.. include:: _customisation_warnings.rst
+
+.. warning::
+If you are not already using the |sysvm64-version| System VM template you 
will need to 
+upgrade your System VM template prior to performing the upgrade of the 
+CloudStack packages.
+
+.. include:: _sysvm_templates.rst
+
+Packages repository
+---
+
+Most users of CloudStack manage the installation and upgrades of
+CloudStack with one of Linux's predominant package systems, RPM or
+APT. This guide assumes you'll be using RPM and Yum (for Red Hat
+Enterprise Linux or CentOS), or APT and Debian packages (for Ubuntu).
+
+Create RPM or Debian packages (as appropriate) and a repository from
+the |release| source, or check the Apache CloudStack downloads page at
+http://cloudstack.apache.org/downloads.html
+for package repositories supplied by community members. You will need
+them for :ref:`ubuntu412` or :ref:`rhel412` and :ref:`kvm412` hosts upgrade.
+
+Instructions for creating packages from the CloudStack source are in the
+`CloudStack Installation Guide`_.
+
+Database Preparation
+
+
+Backup current database
+
+#. Stop your management server or servers. Run this on all management
+   server hosts:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-management stop
+
+#. If you are running a usage server or usage servers, stop those as well:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-usage stop
+
+#. Make a backup of your MySQL database. If you run into any issues or
+   need to roll back the upgrade, this will assist in debugging or
+   restoring your existing environment. You'll be prompted for your
+   password.
+
+   .. parsed-literal::
+
+  $ mysqldump -u root -p cloud > cloud-backup_`date '+%Y-%m-%d'`.sql
+  $ mysqldump -u root -p cloud_usage > cloud_usage-backup_`date 
'+%Y-%m-%d'`.sql
+
+#. **(KVM Only)** If primary storage of type local storage is in use, the
+   path for this storage needs to be verified to ensure it passes new
+   validation. Check local storage by querying the cloud.storage\_pool
+   table:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e "select id,name,path from cloud.storage_pool 
where pool_type='Filesystem'"
+
+   If local storage paths are found to have a trailing forward slash,
+   remove it:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e 'update cloud.storage_pool set 
path="/var/lib/libvirt/images" where path="/var/lib/libvirt/images/"';
+
+
+.. _ubuntu412:
+.. _apt-repo412:
 
 Review comment:
   this has been like this for some time, references, so do indeed needs 
updating


This is an automated message from the Apache Git Service.
To respond to the message, please

[GitHub] [cloudstack-documentation] andrijapanicsb commented on a change in pull request #87: upgrade: upgrade systemvmtemplate for 4.14

2020-01-08 Thread GitBox
andrijapanicsb commented on a change in pull request #87: upgrade: upgrade 
systemvmtemplate for 4.14
URL: 
https://github.com/apache/cloudstack-documentation/pull/87#discussion_r364591977
 
 

 ##
 File path: source/conf.py
 ##
 @@ -24,9 +24,9 @@
 author = 'Apache CloudStack Project'
 
 Review comment:
   Change (above this line) copyright to 2020?


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:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [cloudstack-documentation] andrijapanicsb commented on a change in pull request #87: upgrade: upgrade systemvmtemplate for 4.14

2020-01-08 Thread GitBox
andrijapanicsb commented on a change in pull request #87: upgrade: upgrade 
systemvmtemplate for 4.14
URL: 
https://github.com/apache/cloudstack-documentation/pull/87#discussion_r364589190
 
 

 ##
 File path: source/upgrading/upgrade/upgrade-4.13.rst
 ##
 @@ -0,0 +1,360 @@
+.. 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.
+
+.. |version_to_upgrade| replace:: 4.13.x
+
+Upgrade Instruction from |version_to_upgrade|
+=
+
+This section will guide you from CloudStack |version_to_upgrade| to latest
+CloudStack |release|.
+
+Any steps that are hypervisor-specific will be called out with a note.
+
+We recommend reading through this section once or twice before beginning
+your upgrade procedure, and working through it on a test system before
+working on a production system.
+
+.. note::
+The following upgrade instructions should be performed regardless of
+hypervisor type.
+
+Overview of Upgrade Steps:
+
+
+#. Check any customisations and integrations
+#. Upload the |sysvm64-version| System VM template if not already using it.
+#. Stop all running management servers
+#. Backup CloudStack database (MySQL)
+#. Upgrade 1st CloudStack management server
+#. Update hypervisors specific dependencies
+#. Restart 1st management server
+#. Check that your upgraded environment works as expected
+#. Upgrade and restart the remaining management servers
+
+
+.. include:: _customisation_warnings.rst
+
+.. warning::
+If you are not already using the |sysvm64-version| System VM template you 
will need to 
+upgrade your System VM template prior to performing the upgrade of the 
+CloudStack packages.
+
+.. include:: _sysvm_templates.rst
+
+Packages repository
+---
+
+Most users of CloudStack manage the installation and upgrades of
+CloudStack with one of Linux's predominant package systems, RPM or
+APT. This guide assumes you'll be using RPM and Yum (for Red Hat
+Enterprise Linux or CentOS), or APT and Debian packages (for Ubuntu).
+
+Create RPM or Debian packages (as appropriate) and a repository from
+the |release| source, or check the Apache CloudStack downloads page at
+http://cloudstack.apache.org/downloads.html
+for package repositories supplied by community members. You will need
+them for :ref:`ubuntu412` or :ref:`rhel412` and :ref:`kvm412` hosts upgrade.
+
+Instructions for creating packages from the CloudStack source are in the
+`CloudStack Installation Guide`_.
+
+Database Preparation
+
+
+Backup current database
+
+#. Stop your management server or servers. Run this on all management
+   server hosts:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-management stop
+
+#. If you are running a usage server or usage servers, stop those as well:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-usage stop
+
+#. Make a backup of your MySQL database. If you run into any issues or
+   need to roll back the upgrade, this will assist in debugging or
+   restoring your existing environment. You'll be prompted for your
+   password.
+
+   .. parsed-literal::
+
+  $ mysqldump -u root -p cloud > cloud-backup_`date '+%Y-%m-%d'`.sql
+  $ mysqldump -u root -p cloud_usage > cloud_usage-backup_`date 
'+%Y-%m-%d'`.sql
+
+#. **(KVM Only)** If primary storage of type local storage is in use, the
+   path for this storage needs to be verified to ensure it passes new
+   validation. Check local storage by querying the cloud.storage\_pool
+   table:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e "select id,name,path from cloud.storage_pool 
where pool_type='Filesystem'"
+
+   If local storage paths are found to have a trailing forward slash,
+   remove it:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e 'update cloud.storage_pool set 
path="/var/lib/libvirt/images" where path="/var/lib/libvirt/images/"';
+
+
+.. _ubuntu412:
+.. _apt-repo412:
+
+Management Server
+-
+
+Ubuntu
+##
+
+If you are using Ubuntu, follow this procedure to upgrade your packages. If
+not, skip to step :ref:`rhel411`.
+
+.. note::
+   **Community Packages:** This section assumes you're using the communit

[GitHub] [cloudstack-documentation] andrijapanicsb commented on a change in pull request #87: upgrade: upgrade systemvmtemplate for 4.14

2020-01-08 Thread GitBox
andrijapanicsb commented on a change in pull request #87: upgrade: upgrade 
systemvmtemplate for 4.14
URL: 
https://github.com/apache/cloudstack-documentation/pull/87#discussion_r364589295
 
 

 ##
 File path: source/upgrading/upgrade/upgrade-4.13.rst
 ##
 @@ -0,0 +1,360 @@
+.. 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.
+
+.. |version_to_upgrade| replace:: 4.13.x
+
+Upgrade Instruction from |version_to_upgrade|
+=
+
+This section will guide you from CloudStack |version_to_upgrade| to latest
+CloudStack |release|.
+
+Any steps that are hypervisor-specific will be called out with a note.
+
+We recommend reading through this section once or twice before beginning
+your upgrade procedure, and working through it on a test system before
+working on a production system.
+
+.. note::
+The following upgrade instructions should be performed regardless of
+hypervisor type.
+
+Overview of Upgrade Steps:
+
+
+#. Check any customisations and integrations
+#. Upload the |sysvm64-version| System VM template if not already using it.
+#. Stop all running management servers
+#. Backup CloudStack database (MySQL)
+#. Upgrade 1st CloudStack management server
+#. Update hypervisors specific dependencies
+#. Restart 1st management server
+#. Check that your upgraded environment works as expected
+#. Upgrade and restart the remaining management servers
+
+
+.. include:: _customisation_warnings.rst
+
+.. warning::
+If you are not already using the |sysvm64-version| System VM template you 
will need to 
+upgrade your System VM template prior to performing the upgrade of the 
+CloudStack packages.
+
+.. include:: _sysvm_templates.rst
+
+Packages repository
+---
+
+Most users of CloudStack manage the installation and upgrades of
+CloudStack with one of Linux's predominant package systems, RPM or
+APT. This guide assumes you'll be using RPM and Yum (for Red Hat
+Enterprise Linux or CentOS), or APT and Debian packages (for Ubuntu).
+
+Create RPM or Debian packages (as appropriate) and a repository from
+the |release| source, or check the Apache CloudStack downloads page at
+http://cloudstack.apache.org/downloads.html
+for package repositories supplied by community members. You will need
+them for :ref:`ubuntu412` or :ref:`rhel412` and :ref:`kvm412` hosts upgrade.
+
+Instructions for creating packages from the CloudStack source are in the
+`CloudStack Installation Guide`_.
+
+Database Preparation
+
+
+Backup current database
+
+#. Stop your management server or servers. Run this on all management
+   server hosts:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-management stop
+
+#. If you are running a usage server or usage servers, stop those as well:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-usage stop
+
+#. Make a backup of your MySQL database. If you run into any issues or
+   need to roll back the upgrade, this will assist in debugging or
+   restoring your existing environment. You'll be prompted for your
+   password.
+
+   .. parsed-literal::
+
+  $ mysqldump -u root -p cloud > cloud-backup_`date '+%Y-%m-%d'`.sql
+  $ mysqldump -u root -p cloud_usage > cloud_usage-backup_`date 
'+%Y-%m-%d'`.sql
+
+#. **(KVM Only)** If primary storage of type local storage is in use, the
+   path for this storage needs to be verified to ensure it passes new
+   validation. Check local storage by querying the cloud.storage\_pool
+   table:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e "select id,name,path from cloud.storage_pool 
where pool_type='Filesystem'"
+
+   If local storage paths are found to have a trailing forward slash,
+   remove it:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e 'update cloud.storage_pool set 
path="/var/lib/libvirt/images" where path="/var/lib/libvirt/images/"';
+
+
+.. _ubuntu412:
+.. _apt-repo412:
 
 Review comment:
   ubuntu413
   apt-repo413
   


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 th

[GitHub] [cloudstack-documentation] andrijapanicsb commented on a change in pull request #87: upgrade: upgrade systemvmtemplate for 4.14

2020-01-08 Thread GitBox
andrijapanicsb commented on a change in pull request #87: upgrade: upgrade 
systemvmtemplate for 4.14
URL: 
https://github.com/apache/cloudstack-documentation/pull/87#discussion_r364589579
 
 

 ##
 File path: source/upgrading/upgrade/upgrade-4.13.rst
 ##
 @@ -0,0 +1,360 @@
+.. 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.
+
+.. |version_to_upgrade| replace:: 4.13.x
+
+Upgrade Instruction from |version_to_upgrade|
+=
+
+This section will guide you from CloudStack |version_to_upgrade| to latest
+CloudStack |release|.
+
+Any steps that are hypervisor-specific will be called out with a note.
+
+We recommend reading through this section once or twice before beginning
+your upgrade procedure, and working through it on a test system before
+working on a production system.
+
+.. note::
+The following upgrade instructions should be performed regardless of
+hypervisor type.
+
+Overview of Upgrade Steps:
+
+
+#. Check any customisations and integrations
+#. Upload the |sysvm64-version| System VM template if not already using it.
+#. Stop all running management servers
+#. Backup CloudStack database (MySQL)
+#. Upgrade 1st CloudStack management server
+#. Update hypervisors specific dependencies
+#. Restart 1st management server
+#. Check that your upgraded environment works as expected
+#. Upgrade and restart the remaining management servers
+
+
+.. include:: _customisation_warnings.rst
+
+.. warning::
+If you are not already using the |sysvm64-version| System VM template you 
will need to 
+upgrade your System VM template prior to performing the upgrade of the 
+CloudStack packages.
+
+.. include:: _sysvm_templates.rst
+
+Packages repository
+---
+
+Most users of CloudStack manage the installation and upgrades of
+CloudStack with one of Linux's predominant package systems, RPM or
+APT. This guide assumes you'll be using RPM and Yum (for Red Hat
+Enterprise Linux or CentOS), or APT and Debian packages (for Ubuntu).
+
+Create RPM or Debian packages (as appropriate) and a repository from
+the |release| source, or check the Apache CloudStack downloads page at
+http://cloudstack.apache.org/downloads.html
+for package repositories supplied by community members. You will need
+them for :ref:`ubuntu412` or :ref:`rhel412` and :ref:`kvm412` hosts upgrade.
+
+Instructions for creating packages from the CloudStack source are in the
+`CloudStack Installation Guide`_.
+
+Database Preparation
+
+
+Backup current database
+
+#. Stop your management server or servers. Run this on all management
+   server hosts:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-management stop
+
+#. If you are running a usage server or usage servers, stop those as well:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-usage stop
+
+#. Make a backup of your MySQL database. If you run into any issues or
+   need to roll back the upgrade, this will assist in debugging or
+   restoring your existing environment. You'll be prompted for your
+   password.
+
+   .. parsed-literal::
+
+  $ mysqldump -u root -p cloud > cloud-backup_`date '+%Y-%m-%d'`.sql
+  $ mysqldump -u root -p cloud_usage > cloud_usage-backup_`date 
'+%Y-%m-%d'`.sql
+
+#. **(KVM Only)** If primary storage of type local storage is in use, the
+   path for this storage needs to be verified to ensure it passes new
+   validation. Check local storage by querying the cloud.storage\_pool
+   table:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e "select id,name,path from cloud.storage_pool 
where pool_type='Filesystem'"
+
+   If local storage paths are found to have a trailing forward slash,
+   remove it:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e 'update cloud.storage_pool set 
path="/var/lib/libvirt/images" where path="/var/lib/libvirt/images/"';
+
+
+.. _ubuntu412:
+.. _apt-repo412:
+
+Management Server
+-
+
+Ubuntu
+##
+
+If you are using Ubuntu, follow this procedure to upgrade your packages. If
+not, skip to step :ref:`rhel411`.
+
+.. note::
+   **Community Packages:** This section assumes you're using the communit

[GitHub] [cloudstack-documentation] andrijapanicsb commented on a change in pull request #87: upgrade: upgrade systemvmtemplate for 4.14

2020-01-08 Thread GitBox
andrijapanicsb commented on a change in pull request #87: upgrade: upgrade 
systemvmtemplate for 4.14
URL: 
https://github.com/apache/cloudstack-documentation/pull/87#discussion_r364589462
 
 

 ##
 File path: source/upgrading/upgrade/upgrade-4.13.rst
 ##
 @@ -0,0 +1,360 @@
+.. 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.
+
+.. |version_to_upgrade| replace:: 4.13.x
+
+Upgrade Instruction from |version_to_upgrade|
+=
+
+This section will guide you from CloudStack |version_to_upgrade| to latest
+CloudStack |release|.
+
+Any steps that are hypervisor-specific will be called out with a note.
+
+We recommend reading through this section once or twice before beginning
+your upgrade procedure, and working through it on a test system before
+working on a production system.
+
+.. note::
+The following upgrade instructions should be performed regardless of
+hypervisor type.
+
+Overview of Upgrade Steps:
+
+
+#. Check any customisations and integrations
+#. Upload the |sysvm64-version| System VM template if not already using it.
+#. Stop all running management servers
+#. Backup CloudStack database (MySQL)
+#. Upgrade 1st CloudStack management server
+#. Update hypervisors specific dependencies
+#. Restart 1st management server
+#. Check that your upgraded environment works as expected
+#. Upgrade and restart the remaining management servers
+
+
+.. include:: _customisation_warnings.rst
+
+.. warning::
+If you are not already using the |sysvm64-version| System VM template you 
will need to 
+upgrade your System VM template prior to performing the upgrade of the 
+CloudStack packages.
+
+.. include:: _sysvm_templates.rst
+
+Packages repository
+---
+
+Most users of CloudStack manage the installation and upgrades of
+CloudStack with one of Linux's predominant package systems, RPM or
+APT. This guide assumes you'll be using RPM and Yum (for Red Hat
+Enterprise Linux or CentOS), or APT and Debian packages (for Ubuntu).
+
+Create RPM or Debian packages (as appropriate) and a repository from
+the |release| source, or check the Apache CloudStack downloads page at
+http://cloudstack.apache.org/downloads.html
+for package repositories supplied by community members. You will need
+them for :ref:`ubuntu412` or :ref:`rhel412` and :ref:`kvm412` hosts upgrade.
+
+Instructions for creating packages from the CloudStack source are in the
+`CloudStack Installation Guide`_.
+
+Database Preparation
+
+
+Backup current database
+
+#. Stop your management server or servers. Run this on all management
+   server hosts:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-management stop
+
+#. If you are running a usage server or usage servers, stop those as well:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-usage stop
+
+#. Make a backup of your MySQL database. If you run into any issues or
+   need to roll back the upgrade, this will assist in debugging or
+   restoring your existing environment. You'll be prompted for your
+   password.
+
+   .. parsed-literal::
+
+  $ mysqldump -u root -p cloud > cloud-backup_`date '+%Y-%m-%d'`.sql
+  $ mysqldump -u root -p cloud_usage > cloud_usage-backup_`date 
'+%Y-%m-%d'`.sql
+
+#. **(KVM Only)** If primary storage of type local storage is in use, the
+   path for this storage needs to be verified to ensure it passes new
+   validation. Check local storage by querying the cloud.storage\_pool
+   table:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e "select id,name,path from cloud.storage_pool 
where pool_type='Filesystem'"
+
+   If local storage paths are found to have a trailing forward slash,
+   remove it:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e 'update cloud.storage_pool set 
path="/var/lib/libvirt/images" where path="/var/lib/libvirt/images/"';
+
+
+.. _ubuntu412:
+.. _apt-repo412:
+
+Management Server
+-
+
+Ubuntu
+##
+
+If you are using Ubuntu, follow this procedure to upgrade your packages. If
+not, skip to step :ref:`rhel411`.
+
+.. note::
+   **Community Packages:** This section assumes you're using the communit

[GitHub] [cloudstack-documentation] andrijapanicsb commented on a change in pull request #87: upgrade: upgrade systemvmtemplate for 4.14

2020-01-08 Thread GitBox
andrijapanicsb commented on a change in pull request #87: upgrade: upgrade 
systemvmtemplate for 4.14
URL: 
https://github.com/apache/cloudstack-documentation/pull/87#discussion_r364588920
 
 

 ##
 File path: source/upgrading/upgrade/upgrade-4.13.rst
 ##
 @@ -0,0 +1,360 @@
+.. 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.
+
+.. |version_to_upgrade| replace:: 4.13.x
+
+Upgrade Instruction from |version_to_upgrade|
+=
+
+This section will guide you from CloudStack |version_to_upgrade| to latest
+CloudStack |release|.
+
+Any steps that are hypervisor-specific will be called out with a note.
+
+We recommend reading through this section once or twice before beginning
+your upgrade procedure, and working through it on a test system before
+working on a production system.
+
+.. note::
+The following upgrade instructions should be performed regardless of
+hypervisor type.
+
+Overview of Upgrade Steps:
+
+
+#. Check any customisations and integrations
+#. Upload the |sysvm64-version| System VM template if not already using it.
+#. Stop all running management servers
+#. Backup CloudStack database (MySQL)
+#. Upgrade 1st CloudStack management server
+#. Update hypervisors specific dependencies
+#. Restart 1st management server
+#. Check that your upgraded environment works as expected
+#. Upgrade and restart the remaining management servers
+
+
+.. include:: _customisation_warnings.rst
+
+.. warning::
+If you are not already using the |sysvm64-version| System VM template you 
will need to 
+upgrade your System VM template prior to performing the upgrade of the 
+CloudStack packages.
+
+.. include:: _sysvm_templates.rst
+
+Packages repository
+---
+
+Most users of CloudStack manage the installation and upgrades of
+CloudStack with one of Linux's predominant package systems, RPM or
+APT. This guide assumes you'll be using RPM and Yum (for Red Hat
+Enterprise Linux or CentOS), or APT and Debian packages (for Ubuntu).
+
+Create RPM or Debian packages (as appropriate) and a repository from
+the |release| source, or check the Apache CloudStack downloads page at
+http://cloudstack.apache.org/downloads.html
+for package repositories supplied by community members. You will need
+them for :ref:`ubuntu412` or :ref:`rhel412` and :ref:`kvm412` hosts upgrade.
+
+Instructions for creating packages from the CloudStack source are in the
+`CloudStack Installation Guide`_.
+
+Database Preparation
+
+
+Backup current database
+
+#. Stop your management server or servers. Run this on all management
+   server hosts:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-management stop
+
+#. If you are running a usage server or usage servers, stop those as well:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-usage stop
+
+#. Make a backup of your MySQL database. If you run into any issues or
+   need to roll back the upgrade, this will assist in debugging or
+   restoring your existing environment. You'll be prompted for your
+   password.
+
+   .. parsed-literal::
+
+  $ mysqldump -u root -p cloud > cloud-backup_`date '+%Y-%m-%d'`.sql
+  $ mysqldump -u root -p cloud_usage > cloud_usage-backup_`date 
'+%Y-%m-%d'`.sql
+
+#. **(KVM Only)** If primary storage of type local storage is in use, the
+   path for this storage needs to be verified to ensure it passes new
+   validation. Check local storage by querying the cloud.storage\_pool
+   table:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e "select id,name,path from cloud.storage_pool 
where pool_type='Filesystem'"
+
+   If local storage paths are found to have a trailing forward slash,
+   remove it:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e 'update cloud.storage_pool set 
path="/var/lib/libvirt/images" where path="/var/lib/libvirt/images/"';
+
+
+.. _ubuntu412:
+.. _apt-repo412:
+
+Management Server
+-
+
+Ubuntu
+##
+
+If you are using Ubuntu, follow this procedure to upgrade your packages. If
+not, skip to step :ref:`rhel411`.
+
+.. note::
+   **Community Packages:** This section assumes you're using the communit

[GitHub] [cloudstack-documentation] andrijapanicsb commented on a change in pull request #87: upgrade: upgrade systemvmtemplate for 4.14

2020-01-08 Thread GitBox
andrijapanicsb commented on a change in pull request #87: upgrade: upgrade 
systemvmtemplate for 4.14
URL: 
https://github.com/apache/cloudstack-documentation/pull/87#discussion_r364588676
 
 

 ##
 File path: source/upgrading/upgrade/upgrade-4.13.rst
 ##
 @@ -0,0 +1,360 @@
+.. 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.
+
+.. |version_to_upgrade| replace:: 4.13.x
+
+Upgrade Instruction from |version_to_upgrade|
+=
+
+This section will guide you from CloudStack |version_to_upgrade| to latest
+CloudStack |release|.
+
+Any steps that are hypervisor-specific will be called out with a note.
+
+We recommend reading through this section once or twice before beginning
+your upgrade procedure, and working through it on a test system before
+working on a production system.
+
+.. note::
+The following upgrade instructions should be performed regardless of
+hypervisor type.
+
+Overview of Upgrade Steps:
+
+
+#. Check any customisations and integrations
+#. Upload the |sysvm64-version| System VM template if not already using it.
+#. Stop all running management servers
+#. Backup CloudStack database (MySQL)
+#. Upgrade 1st CloudStack management server
+#. Update hypervisors specific dependencies
+#. Restart 1st management server
+#. Check that your upgraded environment works as expected
+#. Upgrade and restart the remaining management servers
+
+
+.. include:: _customisation_warnings.rst
+
+.. warning::
+If you are not already using the |sysvm64-version| System VM template you 
will need to 
+upgrade your System VM template prior to performing the upgrade of the 
+CloudStack packages.
+
+.. include:: _sysvm_templates.rst
+
+Packages repository
+---
+
+Most users of CloudStack manage the installation and upgrades of
+CloudStack with one of Linux's predominant package systems, RPM or
+APT. This guide assumes you'll be using RPM and Yum (for Red Hat
+Enterprise Linux or CentOS), or APT and Debian packages (for Ubuntu).
+
+Create RPM or Debian packages (as appropriate) and a repository from
+the |release| source, or check the Apache CloudStack downloads page at
+http://cloudstack.apache.org/downloads.html
+for package repositories supplied by community members. You will need
+them for :ref:`ubuntu412` or :ref:`rhel412` and :ref:`kvm412` hosts upgrade.
+
+Instructions for creating packages from the CloudStack source are in the
+`CloudStack Installation Guide`_.
+
+Database Preparation
+
+
+Backup current database
+
+#. Stop your management server or servers. Run this on all management
+   server hosts:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-management stop
+
+#. If you are running a usage server or usage servers, stop those as well:
+
+   .. parsed-literal::
+
+  $ sudo service cloudstack-usage stop
+
+#. Make a backup of your MySQL database. If you run into any issues or
+   need to roll back the upgrade, this will assist in debugging or
+   restoring your existing environment. You'll be prompted for your
+   password.
+
+   .. parsed-literal::
+
+  $ mysqldump -u root -p cloud > cloud-backup_`date '+%Y-%m-%d'`.sql
+  $ mysqldump -u root -p cloud_usage > cloud_usage-backup_`date 
'+%Y-%m-%d'`.sql
+
+#. **(KVM Only)** If primary storage of type local storage is in use, the
+   path for this storage needs to be verified to ensure it passes new
+   validation. Check local storage by querying the cloud.storage\_pool
+   table:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e "select id,name,path from cloud.storage_pool 
where pool_type='Filesystem'"
+
+   If local storage paths are found to have a trailing forward slash,
+   remove it:
+
+   .. parsed-literal::
+
+  $ mysql -u cloud -p -e 'update cloud.storage_pool set 
path="/var/lib/libvirt/images" where path="/var/lib/libvirt/images/"';
+
+
+.. _ubuntu412:
+.. _apt-repo412:
+
+Management Server
+-
+
+Ubuntu
+##
+
+If you are using Ubuntu, follow this procedure to upgrade your packages. If
+not, skip to step :ref:`rhel411`.
+
+.. note::
+   **Community Packages:** This section assumes you're using the communit