Statistics
| Branch: | Tag: | Revision:

root / docs / upgrade / upgrade-0.14.10.rst @ 62c0a9e1

History | View | Annotate | Download (3.2 kB)

1 0ab857d0 Constantinos Venetsanopoulos
Upgrade to Synnefo v0.14.10
2 0ab857d0 Constantinos Venetsanopoulos
^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 0ab857d0 Constantinos Venetsanopoulos
4 0ab857d0 Constantinos Venetsanopoulos
Synnefo v0.14.10 supports both Debian Squeeze and Wheezy. However, since
5 0ab857d0 Constantinos Venetsanopoulos
v0.14.10, Synnefo supports only Ganeti >= 2.8. This means that at least the
6 0ab857d0 Constantinos Venetsanopoulos
Ganeti nodes of a Synnefo deployment should run on Wheezy.
7 0ab857d0 Constantinos Venetsanopoulos
8 0ab857d0 Constantinos Venetsanopoulos
To upgrade to Synnefo v0.14.10 one needs to upgrade both Synnefo and Ganeti
9 0ab857d0 Constantinos Venetsanopoulos
during the same upgrade cycle, so some minimal service downtime is needed.
10 0ab857d0 Constantinos Venetsanopoulos
As always, VMs, Networks and Files will remain usable during the upgrade.
11 0ab857d0 Constantinos Venetsanopoulos
12 0ab857d0 Constantinos Venetsanopoulos
Since this is an upgrade to a minor version, no special upgrade operations
13 0ab857d0 Constantinos Venetsanopoulos
are needed except from the package upgrades.
14 0ab857d0 Constantinos Venetsanopoulos
15 0ab857d0 Constantinos Venetsanopoulos
16 0ab857d0 Constantinos Venetsanopoulos
1. Bring down the services
17 0ab857d0 Constantinos Venetsanopoulos
==========================
18 0ab857d0 Constantinos Venetsanopoulos
19 0ab857d0 Constantinos Venetsanopoulos
First, bring all services (Synnefo and Ganeti) down:
20 0ab857d0 Constantinos Venetsanopoulos
21 0ab857d0 Constantinos Venetsanopoulos
.. code-block:: console
22 0ab857d0 Constantinos Venetsanopoulos
23 0ab857d0 Constantinos Venetsanopoulos
   root@astakos-host# /etc/init.d/gunicorn stop
24 0ab857d0 Constantinos Venetsanopoulos
   root@cyclades-host# /etc/init.d/gunicorn stop
25 0ab857d0 Constantinos Venetsanopoulos
   root@pithos-host# /etc/init.d/gunicorn stop
26 0ab857d0 Constantinos Venetsanopoulos
27 0ab857d0 Constantinos Venetsanopoulos
28 0ab857d0 Constantinos Venetsanopoulos
   root@ganeti-master-host# /etc/init.d/ganeti stop
29 0ab857d0 Constantinos Venetsanopoulos
   root@ganeti-master-host# /etc/init.d/snf-ganeti-eventd stop
30 0ab857d0 Constantinos Venetsanopoulos
   root@ganeti-nodeX-host# /etc/init.d/ganeti stop
31 0ab857d0 Constantinos Venetsanopoulos
32 0ab857d0 Constantinos Venetsanopoulos
   root@cyclades-host# /etc/init.d/snf-dispatcher stop
33 0ab857d0 Constantinos Venetsanopoulos
34 0ab857d0 Constantinos Venetsanopoulos
35 0ab857d0 Constantinos Venetsanopoulos
2. Upgrade Ganeti
36 0ab857d0 Constantinos Venetsanopoulos
=================
37 0ab857d0 Constantinos Venetsanopoulos
38 0ab857d0 Constantinos Venetsanopoulos
Once, everything is stopped, upgrade Ganeti following the official upgrade notes
39 0ab857d0 Constantinos Venetsanopoulos
found here:
40 0ab857d0 Constantinos Venetsanopoulos
41 0ab857d0 Constantinos Venetsanopoulos
`Ganeti upgrade notes <http://docs.ganeti.org/ganeti/2.8/html/upgrade.html>`_
42 0ab857d0 Constantinos Venetsanopoulos
43 0ab857d0 Constantinos Venetsanopoulos
In a nutshell:
44 0ab857d0 Constantinos Venetsanopoulos
45 0ab857d0 Constantinos Venetsanopoulos
Install packages
46 0ab857d0 Constantinos Venetsanopoulos
----------------
47 0ab857d0 Constantinos Venetsanopoulos
48 0ab857d0 Constantinos Venetsanopoulos
Install the new Ganeti packages. To be able to use hotplug (which will be part
49 0ab857d0 Constantinos Venetsanopoulos
of the official Ganeti 2.10), we recommend using our Ganeti packages with
50 ee802310 Christos Stavrakakis
version: ``snf-ganeti=2.8.2+snapshot1+b64v1+hotplug3+ippoolfix+rapifix+netxen+lockfix2-1~wheezy``
51 0ab857d0 Constantinos Venetsanopoulos
52 0ab857d0 Constantinos Venetsanopoulos
.. code-block:: console
53 0ab857d0 Constantinos Venetsanopoulos
54 0ab857d0 Constantinos Venetsanopoulos
   root@ganeti-master-host# apt-get install snf-ganeti ganeti-htools ganeti-haskell
55 0ab857d0 Constantinos Venetsanopoulos
   root@ganeti-nodeX-host# apt-get install snf-ganeti ganeti-htools ganeti-haskell
56 0ab857d0 Constantinos Venetsanopoulos
57 0ab857d0 Constantinos Venetsanopoulos
.. note:: Make sure you install all three Ganeti packages to all hosts.
58 0ab857d0 Constantinos Venetsanopoulos
          Also all packages should have the same version.
59 0ab857d0 Constantinos Venetsanopoulos
60 0ab857d0 Constantinos Venetsanopoulos
Upgrade
61 0ab857d0 Constantinos Venetsanopoulos
-------
62 0ab857d0 Constantinos Venetsanopoulos
63 0ab857d0 Constantinos Venetsanopoulos
Upgrade Ganeti's configuration (make sure you do all backup and dry-run steps as
64 0ab857d0 Constantinos Venetsanopoulos
described in the official guide):
65 0ab857d0 Constantinos Venetsanopoulos
66 0ab857d0 Constantinos Venetsanopoulos
.. code-block:: console
67 0ab857d0 Constantinos Venetsanopoulos
68 0ab857d0 Constantinos Venetsanopoulos
   root@ganeti-master-host# /usr/share/ganeti/cfgupgrade
69 0ab857d0 Constantinos Venetsanopoulos
70 0ab857d0 Constantinos Venetsanopoulos
Start Ganeti
71 0ab857d0 Constantinos Venetsanopoulos
------------
72 0ab857d0 Constantinos Venetsanopoulos
73 0ab857d0 Constantinos Venetsanopoulos
Start Ganeti and re-distribute the configuration to all Ganeti master candidates:
74 0ab857d0 Constantinos Venetsanopoulos
75 0ab857d0 Constantinos Venetsanopoulos
.. code-block:: console
76 0ab857d0 Constantinos Venetsanopoulos
77 0ab857d0 Constantinos Venetsanopoulos
   root@ganeti-master-host# /etc/init.d/ganeti start
78 0ab857d0 Constantinos Venetsanopoulos
   root@ganeti-nodeX-host# /etc/init.d/ganeti start
79 0ab857d0 Constantinos Venetsanopoulos
80 0ab857d0 Constantinos Venetsanopoulos
   root@ganeti-master-host# gnt-cluster redist-conf
81 0ab857d0 Constantinos Venetsanopoulos
82 5ccda9de Christos Stavrakakis
   root@ganeti-master-host# /etc/init.d/ganeti stop
83 5ccda9de Christos Stavrakakis
   root@ganeti-nodeX-host# /etc/init.d/ganeti stop
84 0ab857d0 Constantinos Venetsanopoulos
85 0ab857d0 Constantinos Venetsanopoulos
86 0ab857d0 Constantinos Venetsanopoulos
3. Upgrade Synnefo
87 0ab857d0 Constantinos Venetsanopoulos
==================
88 0ab857d0 Constantinos Venetsanopoulos
89 0ab857d0 Constantinos Venetsanopoulos
Install packages
90 0ab857d0 Constantinos Venetsanopoulos
----------------
91 0ab857d0 Constantinos Venetsanopoulos
92 0ab857d0 Constantinos Venetsanopoulos
Install the new v0.14.10 packages on all hosts according to your deployment.
93 0ab857d0 Constantinos Venetsanopoulos
94 0ab857d0 Constantinos Venetsanopoulos
95 0ab857d0 Constantinos Venetsanopoulos
4. Start all services
96 0ab857d0 Constantinos Venetsanopoulos
=====================
97 0ab857d0 Constantinos Venetsanopoulos
98 0ab857d0 Constantinos Venetsanopoulos
Once, everything is installed successfully, start all services
99 0ab857d0 Constantinos Venetsanopoulos
(Synnefo and Ganeti):
100 0ab857d0 Constantinos Venetsanopoulos
101 0ab857d0 Constantinos Venetsanopoulos
.. code-block:: console
102 0ab857d0 Constantinos Venetsanopoulos
103 0ab857d0 Constantinos Venetsanopoulos
   root@cyclades-host# /etc/init.d/snf-dispatcher start
104 0ab857d0 Constantinos Venetsanopoulos
105 0ab857d0 Constantinos Venetsanopoulos
   root@ganeti-master-host# /etc/init.d/snf-ganeti-eventd start
106 0ab857d0 Constantinos Venetsanopoulos
107 0ab857d0 Constantinos Venetsanopoulos
   root@ganeti-master-host# /etc/init.d/ganeti start
108 0ab857d0 Constantinos Venetsanopoulos
   root@ganeti-nodeX-host# /etc/init.d/ganeti start
109 0ab857d0 Constantinos Venetsanopoulos
110 0ab857d0 Constantinos Venetsanopoulos
   root@astakos-host# /etc/init.d/gunicorn start
111 0ab857d0 Constantinos Venetsanopoulos
   root@cyclades-host# /etc/init.d/gunicorn start
112 0ab857d0 Constantinos Venetsanopoulos
   root@pithos-host# /etc/init.d/gunicorn start