Skip to content

Commit b371c63

Browse files
andrijapanicsbPaul Angus
authored andcommitted
Add warning about customisations when upgrading (apache#71)
1 parent f4d484f commit b371c63

File tree

6 files changed

+209
-104
lines changed

6 files changed

+209
-104
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
build/
2-
.vscode
2+
.vscode
3+
source/_build/
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
.. Licensed to the Apache Software Foundation (ASF) under one
2+
or more contributor license agreements. See the NOTICE file
3+
distributed with this work for additional information#
4+
regarding copyright ownership. The ASF licenses this file
5+
to you under the Apache License, Version 2.0 (the
6+
"License"); you may not use this file except in compliance
7+
with the License. You may obtain a copy of the License at
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
Unless required by applicable law or agreed to in writing,
10+
software distributed under the License is distributed on an
11+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
12+
KIND, either express or implied. See the License for the
13+
specific language governing permissions and limitations
14+
under the License.
15+
16+
.. sub-section included in upgrade notes.
17+
18+
CloudStack Customisations
19+
--------------------------
20+
21+
There are a number of ways in which administrators can customise CloudStack. During an
22+
upgrade, a number of these could be overridden. Therefore steps should be taken to ensure
23+
that they can be restored after the upgrade is completed.
24+
25+
26+
Guest OS mappings
27+
##################
28+
29+
A new CloudStack release often brings compatibility with new hypervisors, and therefore
30+
new Guest OS mappings. An API is provided to manually add guest OSes and the
31+
relevant hypervisor mappings, however, there is a high probability that manually
32+
added guest OSes and/or mappings would conflict with guest OSes and/or mappings
33+
added as part of a version upgrade.
34+
35+
It is therefore essential to remove any Guest OS mappings that were manually added
36+
in order to ensure a successful upgrade. If need be, any custom Guest OS mappings
37+
still 'missing' after an upgrade can be re-added after the upgrade.
38+
That means that any custom added rows in the *guest_os*, *guest_os_hypervisor*,
39+
*guest_os_details* and *guest_os_category* database tables, should be removed
40+
prior to the upgrade, and added later if needed.
41+
42+
.. warning::
43+
Manually added guest OS mappings can cause the upgrade process to fail.
44+
45+
46+
Customised CSS
47+
###############
48+
49+
If you have altered the CSS files in order to customise the appearance of the CloudStack UI,
50+
you should make a backup copy as the installed CSS files are likely to be overwritten during
51+
any upgrade.
52+
53+
You should inspect a 'diff' of your customised css files and the new versions, and then
54+
reapply your changes to the new files as the new versions may contain changes to better display existing
55+
elements or have new entries to support new UI elements.
56+
57+
Plugins
58+
#######
59+
60+
If you have 3rd party plugins installed, you should backup your plugins directories and the
61+
plugins.js file. While the plugins directories *should* remain untouched, the plugins.js
62+
file is likely to be overwritten.
63+
64+
3rd Party Integrations
65+
#######################
66+
67+
CloudStack is put through extensive regression testing during a release cycle, however
68+
the numerous 3rd party integrations which are available cannot all be tested by the
69+
community nor indeed may the community know about many of them. Therefore it is essential
70+
that you verify that your integrations will continue to work after an upgrade through thorough
71+
testing and checking with the vendor/supplier of your integrations.
72+

source/upgrading/upgrade/upgrade-4.10.rst

Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,31 @@ working on a production system.
3232
The following upgrade instructions should be performed regardless of
3333
hypervisor type.
3434

35-
Upgrade Steps:
35+
Overview of Upgrade Steps:
36+
----------------------------
3637

38+
#. Check any customisations and integrations
39+
#. Upload the |sysvm64-version| System VM template if not already using it.
40+
#. Stop all running management servers
3741
#. Backup CloudStack database (MySQL)
38-
#. Add package repository for MySQL connector
39-
#. Upgrade CloudStack management server(s)
42+
#. Upgrade 1st CloudStack management server
4043
#. Update hypervisors specific dependencies
44+
#. Restart 1st management server
45+
#. Check that your upgraded environment works as expected
46+
#. Upgrade and restart the remaining management servers
47+
4148

4249
Apache CloudStack 4.10.0.0 users who are upgrading to 4.11.0.0 should read the
4350
following discussion and workaround for a db-upgrade issue:
4451
http://markmail.org/message/f42kqr3mx4r4hgih
4552

53+
.. include:: _customisation_warnings.rst
54+
55+
.. warning::
56+
If you are not already using the |sysvm64-version| System VM template you will need to
57+
upgrade your System VM template prior to performing the upgrade of the
58+
CloudStack packages.
59+
4660
.. include:: _sysvm_templates.rst
4761

4862
Packages repository
@@ -109,9 +123,14 @@ Backup current database
109123
110124
111125
.. _ubuntu410:
126+
.. _apt-repo410:
127+
128+
Management Server
129+
-----------------
130+
131+
Ubuntu
132+
######
112133
113-
Management Server on Ubuntu
114-
---------------------------
115134
116135
If you are using Ubuntu, follow this procedure to upgrade your packages. If
117136
not, skip to step :ref:`rhel410`.
@@ -126,14 +145,8 @@ each system with CloudStack packages. This means all management
126145
servers, and any hosts that have the KVM agent. (No changes should
127146
be necessary for hosts that are running VMware or Xen.)
128147

129-
130-
.. _apt-repo410:
131-
132148
.. include:: _java_8_ubuntu.rst
133149

134-
CloudStack apt repository
135-
^^^^^^^^^^^^^^^^^^^^^^^^^
136-
137150
Start by opening ``/etc/apt/sources.list.d/cloudstack.list`` on
138151
any systems that have CloudStack packages installed.
139152

@@ -179,9 +192,10 @@ read as appropriate for your |version| repository.
179192
180193
181194
.. _rhel410:
195+
.. _rpm-repo410:
182196

183-
Management Server on CentOS/RHEL
184-
--------------------------------
197+
CentOS/RHEL
198+
##############
185199

186200
If you are using CentOS or RHEL, follow this procedure to upgrade your
187201
packages. If not, skip to hypervisors section :ref:`upg_hyp_410`.
@@ -191,12 +205,6 @@ packages. If not, skip to hypervisors section :ref:`upg_hyp_410`.
191205
supplied packages for CloudStack. If you've created your own packages and
192206
yum repository, substitute your own URL for the ones used in these examples.
193207

194-
195-
.. _rpm-repo410:
196-
197-
CloudStack RPM repository
198-
^^^^^^^^^^^^^^^^^^^^^^^^^
199-
200208
The first order of business will be to change the yum repository
201209
for each system with CloudStack packages. This means all
202210
management servers, and any hosts that have the KVM agent.
@@ -250,8 +258,11 @@ read as appropriate for your |version| repository.
250258
251259
.. _upg_hyp_410:
252260

261+
Upgrade Hypervisors
262+
-------------------
263+
253264
Hypervisor: XenServer
254-
---------------------
265+
#####################
255266

256267
**(XenServer only)** Copy vhd-utils file on CloudStack management servers.
257268
Copy the file `vhd-utils <http://download.cloudstack.org/tools/vhd-util>`_
@@ -264,7 +275,7 @@ to ``/usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver``.
264275
265276
266277
Hypervisor: VMware
267-
------------------
278+
#####################
268279

269280
.. warning::
270281
For VMware hypervisor CloudStack management server packages must be
@@ -338,10 +349,10 @@ the plain text password
338349
.. _kvm410:
339350

340351
Hypervisor: KVM
341-
---------------
352+
#################
342353

343354
KVM on Ubuntu
344-
^^^^^^^^^^^^^
355+
""""""""""""""
345356

346357
(KVM only) Additional steps are required for each KVM host. These
347358
steps will not affect running guests in the cloud. These steps are
@@ -379,7 +390,8 @@ hosts.
379390
380391
381392
KVM on CentOS/RHEL
382-
^^^^^^^^^^^^^^^^^^
393+
"""""""""""""""""""
394+
383395
For KVM hosts, upgrade the ``cloudstack-agent`` package
384396

385397
#. Configure the :ref:`rpm-repo410` as detailed above.

source/upgrading/upgrade/upgrade-4.11.rst

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,22 @@ working on a production system.
3232
The following upgrade instructions should be performed regardless of
3333
hypervisor type.
3434

35-
Upgrade Steps:
35+
Overview of Upgrade Steps:
36+
----------------------------
3637

38+
#. Check any customisations and integrations
3739
#. Upload the |sysvm64-version| System VM template if not already using it.
40+
#. Stop all running management servers
3841
#. Backup CloudStack database (MySQL)
39-
#. Add package repository for MySQL connector
40-
#. Upgrade CloudStack management server(s)
42+
#. Upgrade 1st CloudStack management server
4143
#. Update hypervisors specific dependencies
44+
#. Restart 1st management server
45+
#. Check that your upgraded environment works as expected
46+
#. Upgrade and restart the remaining management servers
47+
48+
49+
50+
.. include:: _customisation_warnings.rst
4251

4352
.. warning::
4453
If you are not already using the |sysvm64-version| System VM template you will need to
@@ -110,9 +119,14 @@ Backup current database
110119
111120
112121
.. _ubuntu411:
122+
.. _apt-repo411:
123+
124+
Management Server
125+
-----------------
126+
127+
Ubuntu
128+
######
113129
114-
Management Server on Ubuntu
115-
---------------------------
116130
117131
If you are using Ubuntu, follow this procedure to upgrade your packages. If
118132
not, skip to step :ref:`rhel411`.
@@ -127,19 +141,14 @@ each system with CloudStack packages. This means all management
127141
servers, and any hosts that have the KVM agent. (No changes should
128142
be necessary for hosts that are running VMware or Xen.)
129143

130-
.. _apt-repo411:
131-
132-
CloudStack apt repository
133-
^^^^^^^^^^^^^^^^^^^^^^^^^
134-
135144
Start by opening ``/etc/apt/sources.list.d/cloudstack.list`` on
136145
any systems that have CloudStack packages installed.
137146

138147
This file should have one line, which contains:
139148

140149
.. parsed-literal::
141150
142-
deb http://download.cloudstack.org/ubuntu precise 4.10
151+
deb http://download.cloudstack.org/ubuntu precise 4.11
143152
144153
We'll change it to point to the new package repository:
145154

@@ -177,9 +186,10 @@ read as appropriate for your |version| repository.
177186
178187
179188
.. _rhel411:
189+
.. _rpm-repo411:
180190

181-
Management Server on CentOS/RHEL
182-
--------------------------------
191+
CentOS/RHEL
192+
##############
183193

184194
If you are using CentOS or RHEL, follow this procedure to upgrade your
185195
packages. If not, skip to hypervisors section :ref:`upg_hyp_411`.
@@ -189,12 +199,6 @@ packages. If not, skip to hypervisors section :ref:`upg_hyp_411`.
189199
supplied packages for CloudStack. If you've created your own packages and
190200
yum repository, substitute your own URL for the ones used in these examples.
191201

192-
193-
.. _rpm-repo411:
194-
195-
CloudStack RPM repository
196-
^^^^^^^^^^^^^^^^^^^^^^^^^
197-
198202
The first order of business will be to change the yum repository
199203
for each system with CloudStack packages. This means all
200204
management servers, and any hosts that have the KVM agent.
@@ -250,15 +254,14 @@ read as appropriate for your |version| repository.
250254
Upgrade Hypervisors
251255
-------------------
252256

253-
254257
Hypervisor: XenServer
255-
^^^^^^^^^^^^^^^^^^^^^
258+
#####################
256259

257260
No additional steps are required wrt for XenServer Hypervisor for this upgrade.
258261

259262

260263
Hypervisor: VMware
261-
------------------
264+
###################
262265

263266
.. warning::
264267
For VMware hypervisor CloudStack management server packages must be
@@ -271,7 +274,7 @@ No additional steps are requried for the VMware Hypervisor for this upgrade.
271274
.. _kvm411:
272275

273276
Hypervisor: KVM
274-
^^^^^^^^^^^^^^^
277+
#################
275278

276279
KVM on Ubuntu
277280
""""""""""""""
@@ -313,6 +316,7 @@ hosts.
313316
314317
KVM on CentOS/RHEL
315318
"""""""""""""""""""
319+
316320
For KVM hosts, upgrade the ``cloudstack-agent`` package
317321

318322
#. Configure the :ref:`rpm-repo411` as detailed above.

0 commit comments

Comments
 (0)