sysvm upgrade formating
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/93268e76 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-rn/tree/93268e76 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-rn/diff/93268e76 Branch: refs/heads/master Commit: 93268e766965632c5e5bf855bf157a0983b67154 Parents: b0dead5 Author: Pierre-Luc Dion <pdion...@apache.org> Authored: Sat Aug 2 10:11:13 2014 -0400 Committer: Pierre-Luc Dion <pdion...@apache.org> Committed: Sat Aug 2 10:11:13 2014 -0400 ---------------------------------------------------------------------- source/about.rst | 5 ++ source/upgrade/_sysvm_templates.rst | 7 -- source/upgrade/upgrade-4.3.rst | 119 ++++++++++++++++++++++--------- 3 files changed, 89 insertions(+), 42 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack-docs-rn/blob/93268e76/source/about.rst ---------------------------------------------------------------------- diff --git a/source/about.rst b/source/about.rst index a53dff2..52fb7ae 100644 --- a/source/about.rst +++ b/source/about.rst @@ -23,6 +23,11 @@ CloudStack |version| includes the following new features and improvements. :local: :backlinks: top +Java version upgraded to java 1.7 +--------------------------------- + +Apache CloudStack |version| is now using Java 1.7 for the management-server, cloudstack-usage, kvm agent and in system-VMs. + Support managed storage for root disks -------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack-docs-rn/blob/93268e76/source/upgrade/_sysvm_templates.rst ---------------------------------------------------------------------- diff --git a/source/upgrade/_sysvm_templates.rst b/source/upgrade/_sysvm_templates.rst index 1d01a01..c827ca1 100644 --- a/source/upgrade/_sysvm_templates.rst +++ b/source/upgrade/_sysvm_templates.rst @@ -117,10 +117,3 @@ Update System-VM templates #. Watch the screen to be sure that the template downloads successfully and enters the **READY** state. Do not proceed until this is successful. -#. Update following Global Settings as follow: - - * ``router.template.xen`` to 'systemvm-xenserver-|version|' - * ``router.template.kvm`` to 'systemvm-kvm-|version|' - * ``router.template.vmware`` to 'systemvm-vmware-|version|' - - http://git-wip-us.apache.org/repos/asf/cloudstack-docs-rn/blob/93268e76/source/upgrade/upgrade-4.3.rst ---------------------------------------------------------------------- diff --git a/source/upgrade/upgrade-4.3.rst b/source/upgrade/upgrade-4.3.rst index ad05aef..cb0105e 100644 --- a/source/upgrade/upgrade-4.3.rst +++ b/source/upgrade/upgrade-4.3.rst @@ -26,6 +26,8 @@ Upgrade Instruction from |version_to_upgrade| Dependency to Java 1.7 inside SystemVM require Upgrade of systemvm-template. Templates version 4.4.0-6 must be use with CloudStack 4.4.0. + Refer to: :ref:`manual_hofix` + This section will guide you from CloudStack |version_to_upgrade| to CloudStack |version|. @@ -391,69 +393,116 @@ For KVM hosts, upgrade the ``cloudstack-agent`` package $ sudo service cloudstack-agent start -Restart management services ---------------------------- +.. _manual_hofix: -#. Now it's time to start the management server +Manual hotfix for systemvm upgrade +---------------------------------- - .. sourcecode:: bash +Some manual steps are required to upgrade of SystemVMs and Virtual Routers. - $ sudo service cloudstack-management start +Following MySQL commands will update the template ID used by Console Proxy VMs (CPVM) +and Secondary Storage VMs (SSVM). It will also change the default template for +Virtual Router to *systemvm-<hypervisor>-4.4* templates. -#. If you use it, start the usage server - .. sourcecode:: bash +XenServer SystemVMs +^^^^^^^^^^^^^^^^^^^ - $ sudo service cloudstack-usage start + Execute following MySQL queries in MySQL. + Please note ``<ID FROM COMMAND #1>`` from the first command + #. Connect to the database: -Manual hotfix for systemvm upgrade ----------------------------------- + .. code-block:: bash -Once ``cloudstack-management`` is started and have upgrade the database version to 4.4.0, -following MySQL queries must be executed prior to upgrade SystemVMs and Virtual Routers. + mysql -h localhost -u root -p cloud + #. get the id of the new template: -XenServer systemvm -^^^^^^^^^^^^^^^^^^ + .. code-block:: mysql + + select id,name from vm_template where name = 'systemvm-xenserver-4.4'; + + #. Replace ``<ID FROM COMMAND #1>`` by the id from the previous command and execute following: + + .. code-block:: mysql + + update vm_template set type='SYSTEM' where id='<ID FROM COMMAND #1>'; + update vm_instance set vm_template_id = '<ID FROM COMMAND #1>' where type='ConsoleProxy' and hypervisor_type = 'xenserver'; + update vm_instance set vm_template_id = '<ID FROM COMMAND #1>' where type='SecondaryStorageVm' and hypervisor_type = 'xenserver'; + update configuration set value = 'systemvm-xenserver-4.4' where name = 'router.template.xen'; -#. execute following MySQL queries in MySQL. + +KVM SystemVMs +^^^^^^^^^^^^^ + + Execute following MySQL queries in MySQL. Please note ``<ID FROM COMMAND #1>`` from the first command - ``mysql -u root -p cloud`` - .. code-block:: mysql + #. Connect to the database: - select id,name from vm_template where name = 'systemvm-xenserver-4.4'; - update vm_template set type='SYSTEM' where id='<ID FROM COMMAND #1>'; - update vm_instance set vm_template_id = '<ID FROM COMMAND #1>' where type='ConsoleProxy' and hypervisor_type = 'xenserver'; - update vm_instance set vm_template_id = '<ID FROM COMMAND #1>' where type='SecondaryStorageVm' and hypervisor_type = 'xenserver'; + .. code-block:: bash -#. Restart cloudstack management server + mysql -h localhost -u root -p cloud - .. sourcecode:: bash + #. get the id of the new template: - $ sudo service cloudstack-management restart + .. code-block:: mysql + select id,name from vm_template where name = 'systemvm-kvm-4.4'; -KVM systemvms -^^^^^^^^^^^^^ + #. Replace ``<ID FROM COMMAND #1>`` by the id from the previous command and execute following: -#. execute following MySQL queries in MySQL. + .. code-block:: mysql + + update vm_template set type='SYSTEM' where id='<ID FROM COMMAND #1>'; + update vm_instance set vm_template_id = '<ID FROM COMMAND #1>' where type='ConsoleProxy' and hypervisor_type = 'KVM'; + update vm_instance set vm_template_id = '<ID FROM COMMAND #1>' where type='SecondaryStorageVm' and hypervisor_type = 'KVM'; + update configuration set value = 'systemvm-kvm-4.4' where name = 'router.template.kvm'; + + +VMware SystemVMs +^^^^^^^^^^^^^^^^ + + Execute following MySQL queries in MySQL. Please note ``<ID FROM COMMAND #1>`` from the first command - ``mysql -u root -p cloud`` - .. code-block:: mysql + #. Connect to the database: + + .. code-block:: bash + + mysql -h localhost -u root -p cloud - select id,name from vm_template where name = 'systemvm-kvm-4.4'; - update vm_template set type='SYSTEM' where id='<ID FROM COMMAND #1>'; - update vm_instance set vm_template_id = '<ID FROM COMMAND #1>' where type='ConsoleProxy' and hypervisor_type = 'KVM'; - update vm_instance set vm_template_id = '<ID FROM COMMAND #1>' where type='SecondaryStorageVm' and hypervisor_type = 'KVM'; + #. get the id of the new template: -#. Restart cloudstack management server + .. code-block:: mysql + + select id,name from vm_template where name = 'systemvm-vmware-4.4'; + + #. Replace ``<ID FROM COMMAND #1>`` by the id from the previous command and execute following: + + .. code-block:: mysql + + update vm_template set type='SYSTEM' where id='<ID FROM COMMAND #1>'; + update vm_instance set vm_template_id = '<ID FROM COMMAND #1>' where type='ConsoleProxy' and hypervisor_type = 'vmware'; + update vm_instance set vm_template_id = '<ID FROM COMMAND #1>' where type='SecondaryStorageVm' and hypervisor_type = 'vmware'; + update configuration set value = 'systemvm-vmware-4.4' where name = 'router.template.vmware'; + + +Restart management services +--------------------------- + +#. Now it's time to start the management server .. sourcecode:: bash - $ sudo service cloudstack-management restart + $ sudo service cloudstack-management start + +#. If you use it, start the usage server + + .. sourcecode:: bash + + $ sudo service cloudstack-usage start .. _upg-sysvm43: