Update 4.2.0 upgrade instructions Update 4.2.0 upgrade instructions for Ubuntu and CentOS to correct apt / yum usage.
Signed-off-by: Sebastien Goasguen <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-rn/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-rn/commit/4a8ad6cd Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-rn/tree/4a8ad6cd Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-rn/diff/4a8ad6cd Branch: refs/heads/master Commit: 4a8ad6cda25d1f21bd926f1387bfefac6abe524f Parents: 11c32c8 Author: Simon Fiddaman <[email protected]> Authored: Tue Mar 25 17:12:31 2014 +0100 Committer: Sebastien Goasguen <[email protected]> Committed: Wed Apr 16 14:59:12 2014 -0400 ---------------------------------------------------------------------- source/rnotes.rst | 78 ++++++++++++++++++++++++-------------------------- 1 file changed, 37 insertions(+), 41 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack-docs-rn/blob/4a8ad6cd/source/rnotes.rst ---------------------------------------------------------------------- diff --git a/source/rnotes.rst b/source/rnotes.rst index d2a52c4..61b877e 100644 --- a/source/rnotes.rst +++ b/source/rnotes.rst @@ -201,9 +201,9 @@ working on a production system. (optional) Install GPG keys if needed: - .. sourcecode:: bash + .. sourcecode:: bash - $ sudo apt-get install gpg + $ sudo apt-get install gpg #. @@ -358,50 +358,28 @@ working on a production system. #. - Now that you have the repository configured, it's time to install - the ``cloudstack-management`` package. This will pull in any other - dependencies you need. - - .. sourcecode:: bash - - $ sudo apt-get install cloudstack-management - - #. - - You will need to manually install the ``cloudstack-agent`` - package: + Now that you have the repository configured, it's time to upgrade + the ``cloudstack-management`` package. .. sourcecode:: bash - $ sudo apt-get install cloudstack-agent - - During the installation of ``cloudstack-agent``, APT will copy your ``agent.properties``, ``log4j-cloud.xml``, and - ``environment.properties`` from ``/etc/cloud/agent`` to ``/etc/cloudstack/agent``. - - When prompted whether you wish to keep your configuration, say - Yes. + $ sudo apt-get upgrade cloudstack-management #. - Verify that the file - ``/etc/cloudstack/agent/environment.properties`` has a line that - reads: + Now it's time to start the management server .. sourcecode:: bash - paths.script=/usr/share/cloudstack-common - - If not, add the line. + $ sudo service cloudstack-management start #. - Restart the agent: + If you use it, start the usage server .. sourcecode:: bash - $ sudo service cloudstack-agent stop - $ sudo killall jsvc - $ sudo service cloudstack-agent start + $ sudo service cloudstack-usage start #. @@ -415,7 +393,7 @@ working on a production system. .. sourcecode:: bash - service cloudstack-management stop + $ sudo service cloudstack-management stop #. @@ -423,7 +401,7 @@ working on a production system. .. sourcecode:: bash - java -classpath /usr/share/cloudstack-common/lib/jasypt-1.9.0.jar org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI encrypt.sh input="_your_vCenter_password_" password="`cat /etc/cloudstack/management/key`" verbose=false + $ java -classpath /usr/share/cloudstack-common/lib/jasypt-1.9.0.jar org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI encrypt.sh input="_your_vCenter_password_" password="`cat /etc/cloudstack/management/key`" verbose=false Store the output from this step, we need to add this in cluster\_details table and vmware\_data\_center tables in place of @@ -436,7 +414,7 @@ working on a production system. .. sourcecode:: bash - mysql -u <username> -p<password> + $ mysql -u <username> -p<password> .. sourcecode:: bash @@ -489,7 +467,7 @@ working on a production system. .. sourcecode:: bash - service cloudstack-management start + $ sudo service cloudstack-management start #. @@ -500,7 +478,7 @@ working on a production system. #. - Configure the CloudStack yum repository as detailed above. + Configure the CloudStack apt repository as detailed above. #. @@ -508,7 +486,7 @@ working on a production system. .. sourcecode:: bash - $ sudo service cloud-agent stop + $ sudo service cloudstack-agent stop #. @@ -516,7 +494,19 @@ working on a production system. .. sourcecode:: bash - $ sudo yum update cloudstack-agent + $ sudo apt-get update cloudstack-agent + + #. + + Verify that the file + ``/etc/cloudstack/agent/environment.properties`` has a line that + reads: + + .. sourcecode:: bash + + paths.script=/usr/share/cloudstack-common + + If not, add the line. #. @@ -573,9 +563,15 @@ working on a production system. #. - For KVM hosts, you will need to upgrade the ``cloud-agent`` - package, similarly installing the new version as - ``cloudstack-agent``. + Now it's time to restart the management server + + .. sourcecode:: bash + + $ sudo service cloudstack-management start + + #. + + For KVM hosts, upgrade the ``cloudstack-agent`` package .. sourcecode:: bash
