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 CD193179D9 for ; Sat, 27 Sep 2014 12:28:51 +0000 (UTC) Received: (qmail 53548 invoked by uid 500); 27 Sep 2014 12:28:51 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 53398 invoked by uid 500); 27 Sep 2014 12:28:51 -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 53374 invoked by uid 99); 27 Sep 2014 12:28:51 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Sep 2014 12:28:51 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 3CD4C9B7244; Sat, 27 Sep 2014 12:28:51 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: pdion891@apache.org To: commits@cloudstack.apache.org Date: Sat, 27 Sep 2014 12:28:52 -0000 Message-Id: <6df32427c8eb468b880f247b68d303fd@git.apache.org> In-Reply-To: <67f74c7d1a2d495ca2a381bea5c50853@git.apache.org> References: <67f74c7d1a2d495ca2a381bea5c50853@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/4] git commit: upg43 remove manual hotfix upg43 remove manual hotfix 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/367e8d04 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-rn/tree/367e8d04 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-rn/diff/367e8d04 Branch: refs/heads/4.4 Commit: 367e8d048b40fe31da0eaf980a3f8bd6c65264f7 Parents: 3d5f858 Author: Pierre-Luc Dion Authored: Sat Sep 27 08:26:58 2014 -0400 Committer: Pierre-Luc Dion Committed: Sat Sep 27 08:26:58 2014 -0400 ---------------------------------------------------------------------- source/upgrade/_sysvm_manual_hotfix.rst | 115 +++++++++++++++++++++++++++ source/upgrade/upgrade-4.3.rst | 96 ---------------------- 2 files changed, 115 insertions(+), 96 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack-docs-rn/blob/367e8d04/source/upgrade/_sysvm_manual_hotfix.rst ---------------------------------------------------------------------- diff --git a/source/upgrade/_sysvm_manual_hotfix.rst b/source/upgrade/_sysvm_manual_hotfix.rst new file mode 100644 index 0000000..90a7d56 --- /dev/null +++ b/source/upgrade/_sysvm_manual_hotfix.rst @@ -0,0 +1,115 @@ +.. 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. + +.. sub-section optinaly included in upgrade notes. + +.. Add following to file when including this manual hotfix + .. _manual_hofix: + + Manual hotfix for systemvm upgrade + ---------------------------------- + + .. include:: _sysvm_restart.rst +.. End of include example + +Some manual steps are required to upgrade of SystemVMs and Virtual Routers. + +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--4.4* templates. + + +XenServer SystemVMs +^^^^^^^^^^^^^^^^^^^ + + Execute following MySQL queries in MySQL. + Please note ```` from the first command + + #. Connect to the database: + + .. code-block:: bash + + mysql -h localhost -u root -p cloud + + #. get the id of the new template: + + .. code-block:: mysql + + select id,name from vm_template where name = 'systemvm-xenserver-4.4'; + + #. Replace ```` by the id from the previous command and execute following: + + .. code-block:: mysql + + update vm_template set type='SYSTEM' where id=''; + update vm_instance set vm_template_id = '' where type='ConsoleProxy' and hypervisor_type = 'xenserver'; + update vm_instance set vm_template_id = '' where type='SecondaryStorageVm' and hypervisor_type = 'xenserver'; + update configuration set value = 'systemvm-xenserver-4.4' where name = 'router.template.xen'; + + +KVM SystemVMs +^^^^^^^^^^^^^ + + Execute following MySQL queries in MySQL. + Please note ```` from the first command + + #. Connect to the database: + + .. code-block:: bash + + mysql -h localhost -u root -p cloud + + #. get the id of the new template: + + .. code-block:: mysql + + select id,name from vm_template where name = 'systemvm-kvm-4.4'; + + #. Replace ```` by the id from the previous command and execute following: + + .. code-block:: mysql + + update vm_template set type='SYSTEM' where id=''; + update vm_instance set vm_template_id = '' where type='ConsoleProxy' and hypervisor_type = 'KVM'; + update vm_instance set vm_template_id = '' 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 ```` from the first command + + #. Connect to the database: + + .. code-block:: bash + + mysql -h localhost -u root -p cloud + + #. get the id of the new template: + + .. code-block:: mysql + + select id,name from vm_template where name = 'systemvm-vmware-4.4'; + + #. Replace ```` by the id from the previous command and execute following: + + .. code-block:: mysql + + update vm_template set type='SYSTEM' where id=''; + update vm_instance set vm_template_id = '' where type='ConsoleProxy' and hypervisor_type = 'vmware'; + update vm_instance set vm_template_id = '' where type='SecondaryStorageVm' and hypervisor_type = 'vmware'; + update configuration set value = 'systemvm-vmware-4.4' where name = 'router.template.vmware'; http://git-wip-us.apache.org/repos/asf/cloudstack-docs-rn/blob/367e8d04/source/upgrade/upgrade-4.3.rst ---------------------------------------------------------------------- diff --git a/source/upgrade/upgrade-4.3.rst b/source/upgrade/upgrade-4.3.rst index d6d374f..c56041a 100644 --- a/source/upgrade/upgrade-4.3.rst +++ b/source/upgrade/upgrade-4.3.rst @@ -393,102 +393,6 @@ For KVM hosts, upgrade the ``cloudstack-agent`` package $ sudo service cloudstack-agent start -.. _manual_hofix: - -Manual hotfix for systemvm upgrade ----------------------------------- - -Some manual steps are required to upgrade of SystemVMs and Virtual Routers. - -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--4.4* templates. - - -XenServer SystemVMs -^^^^^^^^^^^^^^^^^^^ - - Execute following MySQL queries in MySQL. - Please note ```` from the first command - - #. Connect to the database: - - .. code-block:: bash - - mysql -h localhost -u root -p cloud - - #. get the id of the new template: - - .. code-block:: mysql - - select id,name from vm_template where name = 'systemvm-xenserver-4.4'; - - #. Replace ```` by the id from the previous command and execute following: - - .. code-block:: mysql - - update vm_template set type='SYSTEM' where id=''; - update vm_instance set vm_template_id = '' where type='ConsoleProxy' and hypervisor_type = 'xenserver'; - update vm_instance set vm_template_id = '' where type='SecondaryStorageVm' and hypervisor_type = 'xenserver'; - update configuration set value = 'systemvm-xenserver-4.4' where name = 'router.template.xen'; - - -KVM SystemVMs -^^^^^^^^^^^^^ - - Execute following MySQL queries in MySQL. - Please note ```` from the first command - - #. Connect to the database: - - .. code-block:: bash - - mysql -h localhost -u root -p cloud - - #. get the id of the new template: - - .. code-block:: mysql - - select id,name from vm_template where name = 'systemvm-kvm-4.4'; - - #. Replace ```` by the id from the previous command and execute following: - - .. code-block:: mysql - - update vm_template set type='SYSTEM' where id=''; - update vm_instance set vm_template_id = '' where type='ConsoleProxy' and hypervisor_type = 'KVM'; - update vm_instance set vm_template_id = '' 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 ```` from the first command - - #. Connect to the database: - - .. code-block:: bash - - mysql -h localhost -u root -p cloud - - #. get the id of the new template: - - .. code-block:: mysql - - select id,name from vm_template where name = 'systemvm-vmware-4.4'; - - #. Replace ```` by the id from the previous command and execute following: - - .. code-block:: mysql - - update vm_template set type='SYSTEM' where id=''; - update vm_instance set vm_template_id = '' where type='ConsoleProxy' and hypervisor_type = 'vmware'; - update vm_instance set vm_template_id = '' where type='SecondaryStorageVm' and hypervisor_type = 'vmware'; - update configuration set value = 'systemvm-vmware-4.4' where name = 'router.template.vmware'; - - Restart management services ---------------------------