Repository: cloudstack-docs-rn
Updated Branches:
  refs/heads/master 8c4ab36e7 -> 93268e766


update 4.3 to 4.4 upgrade for systemvm


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/6e340686
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-rn/tree/6e340686
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-rn/diff/6e340686

Branch: refs/heads/master
Commit: 6e34068692a4a23199cdacb30eb66a67a33fadec
Parents: 8c4ab36
Author: Pierre-Luc Dion <[email protected]>
Authored: Fri Aug 1 18:35:57 2014 -0400
Committer: Pierre-Luc Dion <[email protected]>
Committed: Fri Aug 1 18:35:57 2014 -0400

----------------------------------------------------------------------
 source/upgrade/_sysvm_templates.rst       |  6 +--
 source/upgrade/_sysvm_templates_pre43.rst |  6 +--
 source/upgrade/upgrade-4.3.rst            | 62 +++++++++++++++++++++++++-
 3 files changed, 66 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack-docs-rn/blob/6e340686/source/upgrade/_sysvm_templates.rst
----------------------------------------------------------------------
diff --git a/source/upgrade/_sysvm_templates.rst 
b/source/upgrade/_sysvm_templates.rst
index 5f197ca..caadccd 100644
--- a/source/upgrade/_sysvm_templates.rst
+++ b/source/upgrade/_sysvm_templates.rst
@@ -59,7 +59,7 @@ Update System-VM templates
    |                         |                                                 
           |
    |                         | Featured: no                                    
           |
    |                         |                                                 
           |
-   |                         | Routing: yes                                    
           |
+   |                         | Routing: no                                     
           |
    
+-------------------------+------------------------------------------------------------+
    | KVM                     | Name: systemvm-kvm-|version|                    
           |
    |                         |                                                 
           |
@@ -85,7 +85,7 @@ Update System-VM templates
    |                         |                                                 
           |
    |                         | Featured: no                                    
           |
    |                         |                                                 
           |
-   |                         | Routing: yes                                    
           |
+   |                         | Routing: no                                     
           |
    
+-------------------------+------------------------------------------------------------+
    | VMware                  | Name: systemvm-vmware-|version|                 
           |
    |                         |                                                 
           |
@@ -111,7 +111,7 @@ Update System-VM templates
    |                         |                                                 
           |
    |                         | Featured: no                                    
           |
    |                         |                                                 
           |
-   |                         | Routing: yes                                    
           |
+   |                         | Routing: no                                     
           |
    
+-------------------------+------------------------------------------------------------+
 
 #. Watch the screen to be sure that the template downloads successfully and 

http://git-wip-us.apache.org/repos/asf/cloudstack-docs-rn/blob/6e340686/source/upgrade/_sysvm_templates_pre43.rst
----------------------------------------------------------------------
diff --git a/source/upgrade/_sysvm_templates_pre43.rst 
b/source/upgrade/_sysvm_templates_pre43.rst
index 8043b67..c79a799 100644
--- a/source/upgrade/_sysvm_templates_pre43.rst
+++ b/source/upgrade/_sysvm_templates_pre43.rst
@@ -61,7 +61,7 @@ Update System-VM templates
    |                         |                                                 
           |
    |                         | Featured: no                                    
           |
    |                         |                                                 
           |
-   |                         | Routing: yes                                    
           |
+   |                         | Routing: no                                     
           |
    
+-------------------------+------------------------------------------------------------+
    | KVM                     | Name: systemvm-kvm-4.3                          
           |
    |                         |                                                 
           |
@@ -87,7 +87,7 @@ Update System-VM templates
    |                         |                                                 
           |
    |                         | Featured: no                                    
           |
    |                         |                                                 
           |
-   |                         | Routing: yes                                    
           |
+   |                         | Routing: no                                     
           |
    
+-------------------------+------------------------------------------------------------+
    | VMware                  | Name: systemvm-vmware-4.3                       
           |
    |                         |                                                 
           |
@@ -113,7 +113,7 @@ Update System-VM templates
    |                         |                                                 
           |
    |                         | Featured: no                                    
           |
    |                         |                                                 
           |
-   |                         | Routing: yes                                    
           |
+   |                         | Routing: no                                     
           |
    
+-------------------------+------------------------------------------------------------+
 
 #. Watch the screen to be sure that the template downloads successfully and 

http://git-wip-us.apache.org/repos/asf/cloudstack-docs-rn/blob/6e340686/source/upgrade/upgrade-4.3.rst
----------------------------------------------------------------------
diff --git a/source/upgrade/upgrade-4.3.rst b/source/upgrade/upgrade-4.3.rst
index bba9878..d80df13 100644
--- a/source/upgrade/upgrade-4.3.rst
+++ b/source/upgrade/upgrade-4.3.rst
@@ -19,6 +19,14 @@
 Upgrade Instruction from |version_to_upgrade|
 =============================================
 
+.. warning::
+   A recently found systemvm upgrade require manual MySQL 
+   commands in order to allow upgrade of SystemVMs and Virtual Routers.
+
+   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.
+
+
 This section will guide you from CloudStack |version_to_upgrade| to CloudStack 
 |version|.
 
@@ -60,6 +68,7 @@ Instructions for creating packages from the CloudStack source 
are in the
 
 .. include:: _sysvm_templates.rst
 
+
 Database Preparation
 --------------------
 
@@ -397,11 +406,60 @@ Restart management services
 
       $ sudo service cloudstack-usage start
 
-.. _upg-sysvm42:
+
+Manual hotfix for systemvm upgrade
+----------------------------------
+
+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.
+
+
+XenServer systemvm
+^^^^^^^^^^^^^^^^^^
+
+#. execute following MySQL queries in MySQL. 
+   Please note ``<ID FROM COMMAND #1>`` from the first command
+
+   .. code-block:: mysql
+
+      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';
+
+#. Restart cloudstack management server
+
+   .. sourcecode:: bash
+
+      $ sudo service cloudstack-management restart
+
+
+KVM systemvms
+^^^^^^^^^^^^^
+
+#. execute following MySQL queries in MySQL. 
+   Please note ``<ID FROM COMMAND #1>`` from the first command
+
+   .. code-block:: mysql
+
+      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';
+
+#. Restart cloudstack management server
+
+   .. sourcecode:: bash
+
+      $ sudo service cloudstack-management restart
+
+
+.. _upg-sysvm43:
 
 System-VMs and Virtual-Routers
 ------------------------------
 
-This upgrade does not require System-VMs or Virtual-Routers Reboot.
+.. include:: _sysvm_restart.rst
+
 
 .. include:: /global.rst

Reply via email to