Return-Path: X-Original-To: apmail-cloudstack-commits-archive@www.apache.org Delivered-To: apmail-cloudstack-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A092910F9D for ; Wed, 25 Sep 2013 10:44:01 +0000 (UTC) Received: (qmail 90932 invoked by uid 500); 25 Sep 2013 10:31:49 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 90415 invoked by uid 500); 25 Sep 2013 10:30:43 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 89390 invoked by uid 99); 25 Sep 2013 10:28:59 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Sep 2013 10:28:59 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id CE651909898; Wed, 25 Sep 2013 10:28:57 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: widodh@apache.org To: commits@cloudstack.apache.org Date: Wed, 25 Sep 2013 10:29:38 -0000 Message-Id: In-Reply-To: <74771eb5b1e24edb9ecf13cb5701714f@git.apache.org> References: <74771eb5b1e24edb9ecf13cb5701714f@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [43/59] [abbrv] git commit: updated refs/heads/disk-cache to bbae6f8 CLOUDSTACK-4727 upgrade steps notes from abhinav has been incorporated Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/3a3849a3 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/3a3849a3 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/3a3849a3 Branch: refs/heads/disk-cache Commit: 3a3849a362fd4d61d336de7e41060313b7a83718 Parents: 567a05d Author: Radhika PC Authored: Mon Sep 23 16:16:05 2013 +0530 Committer: Radhika PC Committed: Mon Sep 23 16:19:46 2013 +0530 ---------------------------------------------------------------------- docs/en-US/Release_Notes.xml | 355 +++++++++++++++++++++----------------- 1 file changed, 199 insertions(+), 156 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3a3849a3/docs/en-US/Release_Notes.xml ---------------------------------------------------------------------- diff --git a/docs/en-US/Release_Notes.xml b/docs/en-US/Release_Notes.xml index d1def44..e314d08 100644 --- a/docs/en-US/Release_Notes.xml +++ b/docs/en-US/Release_Notes.xml @@ -217,8 +217,10 @@ under the License. -
Support for KVMVPC is now supported on KVM - hypervisors.
+
+ Support for KVM + VPC is now supported on KVM hypervisors. +
Load Balancing Support for VPC In a VPC, you can configure two types of load balancing—external LB and @@ -1039,7 +1041,7 @@ under the License. Upgrade Instructions for 4.2 This section contains upgrade instructions from prior versions of CloudStack to Apache CloudStack 4.2.0. We include instructions on upgrading to Apache CloudStack from pre-Apache - versions of Citrix CloudStack (last version prior to Apache is 3.0.2) and from the releases + versions of Citrix &PRODUCT; (last version prior to Apache is 3.0.2) and from the releases made while CloudStack was in the Apache Incubator. If you run into any issues during upgrades, please feel free to ask questions on users@cloudstack.apache.org or dev@cloudstack.apache.org. @@ -1080,11 +1082,11 @@ under the License. Stop your management server or servers. Run this on all management server hosts: - # service cloud-management stop + # service cloudstack-management stop If you are running a usage server or usage servers, stop those as well: - # service cloud-usage stop + # service cloudstack-usage stop Make a backup of your MySQL database. If you run into any issues or need to roll @@ -1130,7 +1132,7 @@ under the License. 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 &PRODUCT; packages. This means all management servers, and any hosts that have @@ -1176,28 +1178,11 @@ under the License. Restart the agent: -service cloud-agent stop +service cloudstack-agent stop killall jsvc service cloudstack-agent start - - During the upgrade, log4j-cloud.xml was simply copied over, - so the logs will continue to be added to - /var/log/cloud/agent/agent.log. There's nothing - wrong with this, but if you prefer to be consistent, you can - change this by copying over the sample configuration file: - -cd /etc/cloudstack/agent -mv log4j-cloud.xml.dpkg-dist log4j-cloud.xml -service cloudstack-agent restart - - - - Once the agent is running, you can uninstall the old cloud-* packages from your - system: - sudo dpkg --purge cloud-agent - @@ -1285,7 +1270,7 @@ service cloudstack-agent restart If you've created your own packages and yum repository, substitute your own URL for the ones used in these examples. - + The first order of business will be to change the yum repository for each system with &PRODUCT; packages. This means all management servers, and any hosts that have @@ -1310,31 +1295,25 @@ gpgcheck=0 Now that you have the repository configured, it's time to install the cloudstack-management package by upgrading the older - cloud-client package. - $ sudo yum upgrade cloud-client + cloudstack-management package. + $ sudo yum upgrade cloudstack-management For KVM hosts, you will need to upgrade the cloud-agent package, similarly installing the new version as cloudstack-agent. - $ sudo yum upgrade cloud-agent - During the installation of cloudstack-agent, the RPM will - copy your agent.properties, - log4j-cloud.xml, and - environment.properties from - /etc/cloud/agent to - /etc/cloudstack/agent. + $ sudo yum upgrade cloudstack-agent For CentOS 5.5, perform the following: - + Run the following command: rpm -Uvh http://download.cloud.com/support/jsvc/jakarta-commons-daemon-jsvc-1.0.1-8.9.el6.x86_64.rpm Upgrade the Usage server. - sudo yum upgrade cloud-usage + sudo yum upgrade cloudstack-usage @@ -1348,7 +1327,7 @@ gpgcheck=0 Restart the agent: -service cloud-agent stop +service cloudstack-agent stop killall jsvc service cloudstack-agent start @@ -1421,54 +1400,60 @@ Done restarting router(s). - Field - Value + Hypervisor + Description - Name - systemvm-vmware-4.2 - - - Description - systemvm-vmware-4.2 - - - URL - http://download.cloud.com/templates/burbank/burbank-systemvm-08012012.ova + XenServer + Name: systemvm-xenserver-4.2.0 + Description: systemvm-xenserver-4.2.0 + URL:http://download.cloud.com/templates/4.2/systemvmtemplate-2013-07-12-master-xen.vhd.bz2 + Zone: Choose the zone where this hypervisor is used + Hypervisor: XenServer + Format: VHD + OS Type: Debian GNU/Linux 7.0 (32-bit) (or the highest Debian release + number available in the dropdown) + Extractable: no + Password Enabled: no + Public: no + Featured: no + - Zone - Choose the zone where this hypervisor is used + KVM + Name: systemvm-kvm-4.2.0 + Description: systemvm-kvm-4.2.0 + URL: + http://download.cloud.com/templates/4.2/systemvmtemplate-2013-06-12-master-kvm.qcow2.bz2 + Zone: Choose the zone where this hypervisor is used + Hypervisor: KVM + Format: QCOW2 + OS Type: Debian GNU/Linux 7.0 (32-bit) (or the highest Debian release + number available in the dropdown) + Extractable: no + Password Enabled: no + Public: no + Featured: no + - Hypervisor VMware - - - Format - OVA - - - OS Type - Debian GNU/Linux 5.0 (32-bit) - - - Extractable - no - - - Password Enabled - no - - - Public - no - - - Featured - no + Name: systemvm-vmware-4.2.0 + Description: systemvm-vmware-4.2.0 + URL: + http://download.cloud.com/templates/4.2/systemvmtemplate-4.2-vh7.ova + Zone: Choose the zone where this hypervisor is used + Hypervisor: VMware + Format: OVA + OS Type: Debian GNU/Linux 7.0 (32-bit) (or the highest Debian release + number available in the dropdown) + Extractable: no + Password Enabled: no + Public: no + Featured: no + @@ -1480,7 +1465,47 @@ Done restarting router(s). - + + (KVM on RHEL 6.0/6.1 only) If your existing &PRODUCT; deployment includes one or + more clusters of KVM hosts running RHEL 6.0 or RHEL 6.1, perform the following: + + + Ensure that you upgrade the operating system version on those hosts before + upgrading &PRODUCT; + To do that, change the yum repository for each system with &PRODUCT; packages, + that implies that all the Management Servers and any hosts that have the KVM agent. + + + + Open /etc/yum.repos.d/cloudstack.repo on any systems that + have &PRODUCT; packages installed. + + + Edit as follows: + + [upgrade] + name=rhel63 + baseurl=url-of-your-rhel6.3-repo + enabled=1 + gpgcheck=0 + [apache CloudStack] + name= Apache CloudStack + baseurl= http://cloudstack.apt-get.eu/rhel/4.0/ + enabled=1 + gpgcheck=0 + If you are using the community provided package repository, change the baseurl + to http:// cloudstack.apt-get.eu/rhel/4.2/ + If you are using your own package repository, change this line to read as + appropriate for your 4.2.0 repository. + + + Now that you have the repository configured, upgrade the host operating system + from RHEL 6.0 to 6.3: + # yum upgrade + + + + Stop all Usage Servers if running. Run this on all Usage Server hosts. # service cloud-usage stop @@ -1582,32 +1607,6 @@ service cloudstack-agent restart - - (KVM only) Additional steps are required for each KVM host. These steps will not - affect running guests in the cloud. These steps are required only for clouds using KVM - as hosts and only on the KVM hosts. - - - Copy the CloudPlatform 4.2 tar file to the host, untar it, and change directory - to the resulting directory. - - - Stop the running agent. - # service cloud-agent stop - - - Update the agent software. - # ./install.sh - - - Choose "U" to update the packages. - - - Start the agent. - # service cloudstack-agent start - - - If you are using CentOS or RHEL, follow this procedure to upgrade your packages. If not, skip to step . @@ -1617,7 +1616,7 @@ service cloudstack-agent restart If you've created your own packages and yum repository, substitute your own URL for the ones used in these examples. - + The first order of business will be to change the yum repository for each system with &PRODUCT; packages. This means all management servers, and any hosts that have @@ -1766,11 +1765,26 @@ service cloudstack-agent start "com.cloud.hypervisor.kvm.resource.LibvirtComputingResource". - Start the cloud agent and cloud management services. + Upgrade all the existing bridge names to new bridge names by running this + script: + # cloudstack-agent-upgrade + + + Install a libvirt hook with the following commands: + # mkdir /etc/libvirt/hooks + # cp /usr/share/cloudstack-agent/lib/libvirtqemuhook /etc/libvirt/hooks/qemu + # chmod +x /etc/libvirt/hooks/qemu + + + Restart libvirtd. + # service libvirtd restart + + + Start the agent. # service cloudstack-agent start - When the Management Server is up and running, log in to the CloudStack UI and + When the Management Server is up and running, log in to the &PRODUCT; UI and restart the virtual router for proper functioning of all the features. @@ -1805,13 +1819,13 @@ service cloudstack-agent start - Run the cloud-sysvmadm script to stop, then start, all Secondary - Storage VMs, Console Proxy VMs, and virtual routers. Run the script once on each - management server. Substitute your own IP address of the MySQL instance, the MySQL user - to connect as, and the password to use for that user. In addition to those parameters, - provide the -c and -r arguments. For + Run the cloudstack-sysvmadm script to stop, then start, all + Secondary Storage VMs, Console Proxy VMs, and virtual routers. Run the script once on + each management server. Substitute your own IP address of the MySQL instance, the MySQL + user to connect as, and the password to use for that user. In addition to those + parameters, provide the -c and -r arguments. For example: - # nohup cloud-sysvmadm -d 192.168.1.5 -u cloud -p password -c -r > + # nohup cloudstack-sysvmadm -d 192.168.1.5 -u cloud -p password -c -r > sysvm.log 2>&1 & # tail -f sysvm.log This might take up to an hour or more to run, depending on the number of accounts in @@ -2040,7 +2054,8 @@ service cloudstack-agent start Zone: Choose the zone where this hypervisor is used Hypervisor: XenServer Format: VHD - OS Type: Debian GNU/Linux 6.0 (32-bit) + OS Type: Debian GNU/Linux 7.0 (32-bit) (or the highest Debian release + number available in the dropdown) Extractable: no Password Enabled: no Public: no @@ -2056,7 +2071,8 @@ service cloudstack-agent start Zone: Choose the zone where this hypervisor is used Hypervisor: KVM Format: QCOW2 - OS Type: Debian GNU/Linux 5.0 (32-bit) + OS Type: Debian GNU/Linux 7.0 (32-bit) (or the highest Debian release + number available in the dropdown) Extractable: no Password Enabled: no Public: no @@ -2072,7 +2088,8 @@ service cloudstack-agent start Zone: Choose the zone where this hypervisor is used Hypervisor: VMware Format: OVA - OS Type: Debian GNU/Linux 5.0 (32-bit) + OS Type: Debian GNU/Linux 7.0 (32-bit) (or the highest Debian release + number available in the dropdown) Extractable: no Password Enabled: no Public: no @@ -2095,6 +2112,46 @@ service cloudstack-agent start VM template for each hypervisor type. Otherwise, the upgrade will fail. + (KVM on RHEL 6.0/6.1 only) If your existing &PRODUCT; deployment includes one or + more clusters of KVM hosts running RHEL 6.0 or RHEL 6.1, perform the following: + + + Ensure that you upgrade the operating system version on those hosts before + upgrading &PRODUCT; + To do that, change the yum repository for each system with &PRODUCT; packages, + that implies that all the Management Servers and any hosts that have the KVM agent. + + + + Open /etc/yum.repos.d/cloudstack.repo on any systems that + have &PRODUCT; packages installed. + + + Edit as follows: + + [upgrade] + name=rhel63 + baseurl=url-of-your-rhel6.3-repo + enabled=1 + gpgcheck=0 + [apache CloudStack] + name= Apache CloudStack + baseurl= http://cloudstack.apt-get.eu/rhel/4.0/ + enabled=1 + gpgcheck=0 + If you are using the community provided package repository, change the baseurl + to http:// cloudstack.apt-get.eu/rhel/4.2/ + If you are using your own package repository, change this line to read as + appropriate for your 4.2.0 repository. + + + Now that you have the repository configured, upgrade the host operating system + from RHEL 6.0 to 6.3: + # yum upgrade + + + + Stop all Usage Servers if running. Run this on all Usage Server hosts. # service cloud-usage stop @@ -2127,7 +2184,7 @@ service cloudstack-agent start 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 &PRODUCT; packages. This means all management servers, and any hosts that have @@ -2206,7 +2263,7 @@ service cloudstack-agent restart If you've created your own packages and yum repository, substitute your own URL for the ones used in these examples. - + The first order of business will be to change the yum repository for each system with &PRODUCT; packages. This means all management servers, and any hosts that have @@ -2287,7 +2344,7 @@ service cloudstack-agent start Merge your changes from the backup file into the new components.xml file. - # vi /etc/cloud/management/components.xml + # vi /etc/cloudstack/management/components.xml @@ -2319,7 +2376,7 @@ service cloudstack-agent start CloudStack installation, the changes will be preserved in the upgrade. However, you need to do the following steps to place these changes in a new version of the file which is compatible with version 4.0.0-incubating. - + Make a backup copy of your file /etc/cloud/management/db.properties. For example: @@ -2332,7 +2389,7 @@ service cloudstack-agent start Merge your changes from the backup file into the new db.properties file. - # vi /etc/cloud/management/db.properties + # vi /etc/cloudstack/management/db.properties @@ -2378,32 +2435,6 @@ service cloudstack-agent start # service cloudstack-usage start - (KVM only) Additional steps are required for each KVM host. These steps will not - affect running guests in the cloud. These steps are required only for clouds using KVM - as hosts and only on the KVM hosts. - - - Copy the CloudPlatform 4.2 tar file to the host, untar it, and change directory - to the resulting directory. - - - Stop the running agent. - # service cloud-agent stop - - - Update the agent software. - # ./install.sh - - - Choose "U" to update the packages. - - - Start the agent. - # service cloudstack-agent start - - - - (KVM only) Perform the following additional steps on each KVM host. These steps will not affect running guests in the cloud. These steps are required only for clouds using KVM as hosts and only on the KVM hosts. @@ -2421,21 +2452,33 @@ service cloudstack-agent start appropriate. # yum update cloud-* - # apt-get update - # apt-get upgrade cloud-* + # apt-get update + # apt-get upgrade cloud-* - Start the agent. - # service cloudstack-agent start - - Copy the contents of the agent.properties file to the new agent.properties file by using the following command - sed -i 's/com.cloud.agent.resource.computing.LibvirtComputingResource/com.cloud.hypervisor.kvm.resource.LibvirtComputingResource/g' /etc/cloud/agent/agent.properties + sed -i 's/com.cloud.agent.resource.computing.LibvirtComputingResource/com.cloud.hypervisor.kvm.resource.LibvirtComputingResource/g' /etc/cloudstack/agent/agent.properties - Start the cloud agent and cloud management services. + Upgrade all the existing bridge names to new bridge names by running this + script: + # cloudstack-agent-upgrade + + + Install a libvirt hook with the following commands: + # mkdir /etc/libvirt/hooks + # cp /usr/share/cloudstack-agent/lib/libvirtqemuhook /etc/libvirt/hooks/qemu + # chmod +x /etc/libvirt/hooks/qemu + + + Restart libvirtd. + # service libvirtd restart + + + Start the agent. + # service cloudstack-agent start When the Management Server is up and running, log in to the CloudStack UI and @@ -2459,8 +2502,8 @@ service cloudstack-agent start the MySQL instance, the MySQL user to connect as, and the password to use for that user. In addition to those parameters, provide the "-c" and "-r" arguments. For example: - # nohup cloud-sysvmadm -d 192.168.1.5 -u cloud -p password -c -r > sysvm.log 2>&1 & - # tail -f sysvm.log + # nohup cloudstack-sysvmadm -d 192.168.1.5 -u cloud -p password -c -r > sysvm.log 2>&1 & +# tail -f sysvm.log This might take up to an hour or more to run, depending on the number of accounts in the system.