Statistics
| Branch: | Tag: | Revision:

root / docs / upgrade / upgrade-0.14.rst @ b4109758

History | View | Annotate | Download (3.7 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
  Rename ``CYCLADES_ASTAKOS_SERVICE_TOKEN`` to ``CYCLADES_SERVICE_TOKEN``.
65

    
66
* In Pithos settings, introduce a ``PITHOS_BASE_URL`` setting.
67
  It must point to the top-level Pithos URL.
68

    
69
3 Register services and migrate quota
70
=====================================
71

    
72
You need to register astakos as a component. Moreover you need to register
73
all services provided by cyclades and pithos.
74

    
75
Running the following script you will be asked to provide the base
76
installation URL for each component. You will also need to specify the URL
77
where the astakos UI resides::
78

    
79
    astakos-host$ snf-component-register
80

    
81
.. note::
82

    
83
   This command is equivalent to running the following series of commands;
84
   in each host it exports the respective service definitions, copies the
85
   exported json file to the astakos host, where it finally imports it:
86

    
87
    .. code-block:: console
88

    
89
       astakos-host$ snf-manage component-add astakos ui_url
90
       astakos-host$ snf-manage service-export-astakos > astakos.json
91
       astakos-host$ snf-manage service-import --json astakos.json
92
       cyclades-host$ snf-manage service-export-cyclades > cyclades.json
93
       # copy the file to astakos-host
94
       astakos-host$ snf-manage service-import --json cyclades.json
95
       pithos-host$ snf-manage service-export-pithos > pithos.json
96
       # copy the file to astakos-host
97
       astakos-host$ snf-manage service-import --json pithos.json
98

    
99
The limit on pending project applications is since 0.14 handled as an
100
Astakos resource, rather than a custom setting. Command::
101

    
102
    astakos-host$ astakos-migrate-0.14
103

    
104
will prompt you to set this limit (replacing setting
105
ASTAKOS_PENDING_APPLICATION_LIMIT) and then automatically migrate the
106
user-specific base quota for the new resource ``astakos.pending_app`` using
107
the deprecated user setting.