root / docs / upgrade / upgrade-0.14.rst @ 3f31a848
History | View | Annotate | Download (3.6 kB)
1 |
Upgrade to Synnefo v0.14 |
---|---|
2 |
^^^^^^^^^^^^^^^^^^^^^^^^ |
3 |
|
4 |
The bulk of the upgrade to v0.14 is about resource and quota migrations. |
5 |
|
6 |
|
7 |
.. warning:: |
8 |
|
9 |
It is strongly suggested that you keep separate database backups |
10 |
for each service after the completion of each of step. |
11 |
|
12 |
1. Bring web services down, backup databases |
13 |
============================================ |
14 |
|
15 |
1. All web services must be brought down so that the database maintains a |
16 |
predictable and consistent state during the migration process:: |
17 |
|
18 |
# service gunicorn stop |
19 |
# service snf-dispatcher stop |
20 |
# etc. |
21 |
|
22 |
2. Backup databases for recovery to a pre-migration state. |
23 |
|
24 |
3. Keep the database servers running during the migration process |
25 |
|
26 |
|
27 |
2. Upgrade Synnefo and configure settings |
28 |
========================================= |
29 |
|
30 |
2.2 Sync and migrate Django DB |
31 |
------------------------------ |
32 |
|
33 |
.. note:: |
34 |
|
35 |
If you are asked about stale content types during the migration process, |
36 |
answer 'no' and let the migration finish. |
37 |
|
38 |
:: |
39 |
|
40 |
astakos-host$ snf-manage syncdb |
41 |
astakos-host$ snf-manage migrate quotaholder_app 0001 --fake |
42 |
astakos-host$ snf-manage migrate quotaholder_app |
43 |
astakos-host$ snf-manage migrate im |
44 |
|
45 |
cyclades-host$ snf-manage syncdb |
46 |
cyclades-host$ snf-manage migrate |
47 |
|
48 |
|
49 |
2.3 Configure Base URL settings for all services |
50 |
------------------------------------------------ |
51 |
|
52 |
In order to make all services' URLs configurable and discoverable from |
53 |
a single endpoint in Astakos through the Openstack Keystone API, |
54 |
every service has a ``XXXXX_BASE_URL`` setting, or it's old corresponding |
55 |
setting was renamed to this. Therefore: |
56 |
|
57 |
* Rename ``ASTAKOS_URL`` setting to ``ASTAKOS_BASE_URL`` |
58 |
everywhere in your settings, in all nodes and all config files. |
59 |
This must point to the top-level Astakos URL. |
60 |
|
61 |
* In Cyclades settings, rename the ``APP_INSTALL_URL`` setting |
62 |
to ``CYCLADES_BASE_URL``. If no such setting has been configured, |
63 |
you must set it. It must point to the top-level Cyclades URL. |
64 |
|
65 |
* In Pithos settings, introduce a ``PITHOS_BASE_URL`` setting. |
66 |
It must point to the top-level Pithos URL. |
67 |
|
68 |
3 Register services and migrate quota |
69 |
===================================== |
70 |
|
71 |
You need to register astakos as a component. Moreover you need to register |
72 |
all services provided by cyclades and pithos. |
73 |
|
74 |
Running the following script you will be asked to provide the base |
75 |
installation URL for each component. You will also need to specify the URL |
76 |
where the astakos UI resides:: |
77 |
|
78 |
astakos-host$ snf-register-components |
79 |
|
80 |
.. note:: |
81 |
|
82 |
This command is equivalent to running the following series of commands; |
83 |
in each host it exports the respective service definitions, copies the |
84 |
exported json file to the astakos host, where it finally imports it: |
85 |
|
86 |
.. code-block:: console |
87 |
|
88 |
astakos-host$ snf-manage component-add astakos ui_url |
89 |
astakos-host$ snf-manage service-export-astakos > astakos.json |
90 |
astakos-host$ snf-manage service-import --json astakos.json |
91 |
cyclades-host$ snf-manage service-export-cyclades > cyclades.json |
92 |
# copy the file to astakos-host |
93 |
astakos-host$ snf-manage service-import --json cyclades.json |
94 |
pithos-host$ snf-manage service-export-pithos > pithos.json |
95 |
# copy the file to astakos-host |
96 |
astakos-host$ snf-manage service-import --json pithos.json |
97 |
|
98 |
The limit on pending project applications is since 0.14 handled as an |
99 |
Astakos resource, rather than a custom setting. Command:: |
100 |
|
101 |
astakos-host$ astakos-migrate-0.14 |
102 |
|
103 |
will prompt you to set this limit (replacing setting |
104 |
ASTAKOS_PENDING_APPLICATION_LIMIT) and then automatically migrate the |
105 |
user-specific base quota for the new resource ``astakos.pending_app`` using |
106 |
the deprecated user setting. |