root / snf-app / docs / src / upgrade.rst @ df285bb3
History | View | Annotate | Download (10.9 kB)
1 |
Upgrade |
---|---|
2 |
======= |
3 |
|
4 |
This file documents the upgrade to newer versions of the Synnefo software. |
5 |
For more information, please see README.deploy. |
6 |
|
7 |
v0.7 -> v0.8 |
8 |
------------ |
9 |
|
10 |
Synnefo is now distributed packaged in python/debian packages. You should |
11 |
consider the following when migration from a previously `source` deployment |
12 |
projects: |
13 |
|
14 |
* To keep consistency with future changes you should change ``python |
15 |
manage.py`` calls with deployed ``snf-manage`` console script. |
16 |
This includes automation scripts, service scripts etc. |
17 |
|
18 |
Same applies for calls to ``dispatcher.py``, ``snf-tools/admin.py``, |
19 |
``snf-tools/burnin.py`` and ``snf-tools/cloud.py`` which are replaced |
20 |
respectively by ``snf-dispatcher``, ``snf-admin``, |
21 |
``snf-burnin`` and ``snf-cloud``. |
22 |
|
23 |
* Copy custom settings files located in projects ``settings.d`` directory |
24 |
to ``/etc/synnefo/`` directory. |
25 |
|
26 |
* Migrate location from which :ref:`static files <static-files>` are served from. |
27 |
|
28 |
|
29 |
NEW APPS |
30 |
* The 'synnefo.ui.userdata' application has been added in |
31 |
settings.d/00-apps.conf. Application urls appended in ui/urls.py. |
32 |
If no custom ROOT_URLCONF module is used, no url change is needed. |
33 |
* The new app has migrations defined. |
34 |
Use './manage.py migrate' to migrate *all* apps. |
35 |
|
36 |
NEW/UPDATED SETTINGS |
37 |
* New config file 31-userdata.conf, containing userdata app settings |
38 |
* USERDATA_SSH_KEY_LENGTH in 31-userdata.conf: |
39 |
Key length in bits for generated ssh keys |
40 |
* USERDATA_SSH_KEY_EXPONENT in 31-userdata.conf: |
41 |
Generated SSH key exponent |
42 |
* USERDATA_MAX_SSH_KEYS_PER_USER in 31-userdata.conf: |
43 |
Maximum number of ssh keys a user is allowed to have |
44 |
* UI_SUPPORT_SSH_OS_LIST, in 30-ui.conf: |
45 |
A list of os names that support ssh public key assignment |
46 |
* UI_OS_DEFAULT_USER_MAP, in 30-ui.conf: |
47 |
OS/username map to identify default user name for a specific os |
48 |
* VM_CREATE_NAME_TPL, in 30-ui.conf: |
49 |
Template to be used for suggesting the user a default name for newly |
50 |
created VMs. String {0} gets replaced by the value of metadata key "os" |
51 |
for the Image. |
52 |
* UI_FLAVORS_DISK_TEMPLATES_INFO added in 30-ui.conf: |
53 |
Name/description metadata for the available flavor disk templates |
54 |
* VM_CREATE_SUGGESTED_FLAVORS in 30-ui.conf: |
55 |
Updated flavor data to include disk_template value. |
56 |
* GANETI_DISK_TEMPLATES and DEFAULT_GANETI_DISK_TEMPLATE in 20-api.conf: |
57 |
The list of disk templates supported by the Ganeti backend. |
58 |
The default template to be used when migrating Flavors with no value for |
59 |
disk_template (i.e., 'drbd'). |
60 |
|
61 |
UI |
62 |
* synnefo.ui.userdata application has been added in INSTALLED_APPS. |
63 |
Database migration is needed for the creation of application db tables. |
64 |
|
65 |
API |
66 |
* A new 'disk_template' attribute has been added to Flavors. |
67 |
A database migration is needed. |
68 |
|
69 |
|
70 |
v0.7.3 -> v0.8 |
71 |
-------------- |
72 |
|
73 |
API |
74 |
* A new 'disk_template' attribute has been added to Flavors. |
75 |
GANETI_DISK_TEMPLATES and DEFAULT_GANETI_DISK_TEMPLATE have been added |
76 |
in 20-api.conf to control its value. A database migration is needed. |
77 |
|
78 |
ADMIN TOOLS |
79 |
* A new --disk-template flag has been added to snf-admin to choose a |
80 |
disk template when creating flavors. Similarly, disk_template support |
81 |
in flavors has beed added to the admin web interface. |
82 |
|
83 |
|
84 |
v0.6.2 -> v0.7 |
85 |
-------------- |
86 |
|
87 |
HTML TEMPLATES |
88 |
* Included a generic service unavailable template based on |
89 |
generic_info_tpl.html, as ui/static/service_unavailable.html. |
90 |
|
91 |
NEW DEPENDENCIES |
92 |
* python-unittest2, python-paramiko needed by the new integration |
93 |
test suite snf-tools/burnin. Paramiko shipped with Squeeze uses |
94 |
broken RandomPool, produces warnings, see #576697. |
95 |
* snf-image must be installed on all Ganeti hosts, see README.deploy, |
96 |
Step 13. |
97 |
|
98 |
COMPONENTS |
99 |
* snf-admin has been updated with new functionality, be sure to upgrade any |
100 |
locally installed versions. |
101 |
* snf-image replaces snf-ganeti-instance-image as the Ganeti OS provider |
102 |
used by Synnefo, and can live alongside snf-ganeti-instance-image. |
103 |
Once snf-image has been deployed on all Ganeti nodes, be sure to modify |
104 |
the value of settings.d/10-backend.conf:GANETI_CREATEINSTANCE_KWARGS |
105 |
to use 'snf-image+default'. |
106 |
|
107 |
UI STATIC FILES |
108 |
* A major reorganization of static files has been commited. All ui and |
109 |
invitations static files has been moved in their own separate directory |
110 |
(ui/static/snf, ui/static/invitations). |
111 |
* UI static files base url is now configurable via UI_MEDIA_URL. |
112 |
* A symlink named after the current version of the ui application has been |
113 |
committed in ui/static directory. The symlink will get updated after each |
114 |
version upgrade to allow us provide unique urls of static files between |
115 |
after each upgrade, see #1460. |
116 |
|
117 |
NEW/UPDATED SETTINGS |
118 |
* EMAIL_SUBJECT_PREFIX: |
119 |
Prepended to automated emails, set to someting that uniquely identifies |
120 |
the deployment. |
121 |
* MAX_PERSONALITY and MAX_PERSONALITY_SIZE in 20-api.conf: |
122 |
Maximum number of files to be injected in newly created servers, |
123 |
maximum total size of encoded file contents. |
124 |
* Renamed SUGGESTED_FLAVORS to VM_CREATE_SUGGESTED_FLAVORS in 30-ui.conf |
125 |
* VM_CREATE_SUGGESTED_ROLES in 30-ui.conf: |
126 |
A list of suggested vm roles to display to user on create wizard. |
127 |
* UI_DELAY_ON_BLUR in 30-ui.conf: |
128 |
Whether to increase the intervals of recurrent requests (networks/vms |
129 |
update) if window loses its focus. |
130 |
* UI_BLUR_DELAY in 30-ui.conf: |
131 |
The value of update intervals if window loses its focus. |
132 |
Considered only if `UI_DELAY_ON_BLUR` is set to True. |
133 |
* UI_UPDATE_HIDDEN_VIEWS in 30-ui.conf: |
134 |
Whether not visible vm views will update their content if vm changes. |
135 |
* UI_SKIP_TIMEOUTS in 30-ui.conf: |
136 |
After how many timeouts of reccurent ajax requests to display the timeout |
137 |
error overlay. |
138 |
* UI_HANDLE_WINDOW_EXCEPTIONS in 30-ui.conf: |
139 |
Whether UI should display error overlay for all Javascript exceptions. |
140 |
* UI_MEDIA_URL in 30-ui.conf: |
141 |
Base url for ui static files, |
142 |
defaults to MEDIA_URL + 'snf-<latest_ui_version>/'. |
143 |
* MEDIA_URL changed in 00-site.conf: |
144 |
Changed to '/static/' since it is now used in ui app. |
145 |
* TEMPLATE_CONTEXT_PROCESSORS changed in 00-apps.conf: |
146 |
added 'django.core.context_processors.media' to allow access of MEDIA_URL |
147 |
in template files. |
148 |
* GANETI_CREATEINSTANCE_KWARGS in 10-backend.conf: |
149 |
Must be updated to use snf-image as the Ganeti OS provider. |
150 |
|
151 |
|
152 |
DB MIGRATION |
153 |
* Uniqueness constraints have been added to the metadata models. |
154 |
A database migration is needed. |
155 |
|
156 |
LOGGING |
157 |
* A new logging mechanism has been implemeted. Please see 00-logging.conf |
158 |
under settings.d/ and read the relevant section in README.admin for more |
159 |
info. |
160 |
|
161 |
|
162 |
v0.6.1 -> v0.6.2 |
163 |
---------------- |
164 |
|
165 |
ADMIN INTERFACE |
166 |
* The models were changed so that Flavors and SynnefoUsers now have |
167 |
a deleted state. The admin tools were updated so that models are |
168 |
now marked as deleted instead of actually being deleted from the DB. |
169 |
A database migration is needed. |
170 |
|
171 |
COMPONENTS |
172 |
* Only the Django webapp is affected, must restart the logic dispatcher |
173 |
due to DB migration taking place. |
174 |
|
175 |
|
176 |
v0.5.5 -> v0.6 |
177 |
-------------- |
178 |
|
179 |
ADMIN INTERFACE |
180 |
* A new Web-based admin interface is available under /admin. |
181 |
It is accessible by users of type 'ADMIN' in the DB, with |
182 |
their authentication token. "snf-admin user modify" may be used |
183 |
to change the type of a specific user. |
184 |
|
185 |
RECONCILIATION |
186 |
* Implemented new reconciliation management command, please see |
187 |
./manage.py reconcile --help and README.admin for more info. |
188 |
Recommended to run ./manage.py reconcile --detect-all periodically, |
189 |
via cron. |
190 |
|
191 |
GANETI-INSTANCE-IMAGE |
192 |
* A new version of ganeti-instance-image is required (v0.5.1-1-snf1). |
193 |
The new version is available for download as a debian package: |
194 |
https://code.grnet.gr/projects/gnt-instance-image/files |
195 |
|
196 |
COMPONENTS |
197 |
* snf-ganeti-tools must be rebuilt, see snf-ganeti-tools/debian/ |
198 |
for Debian packaging. |
199 |
|
200 |
NEW SETTINGS |
201 |
* 30-ui.conf:SUGGESTED_FLAVORS |
202 |
* 30-ui.conf:VM_IMAGE_COMMON_METADATA |
203 |
|
204 |
|
205 |
v0.5.4 -> v0.5.5 |
206 |
---------------- |
207 |
|
208 |
LOGGING |
209 |
* Changed the default logging settings for the dispatcher to also log |
210 |
to /var/log/synnefo/dispatcher.log, redirecting stderr and stdout there |
211 |
|
212 |
QUEUES |
213 |
* Changed default routing key naming for queues. Queues must be redeclared. |
214 |
The suggested upgrade path is to delete ALL (even obsolete) existing |
215 |
queues and restart the dispatcher. To do so, download amqp-utils from |
216 |
|
217 |
https://github.com/dougbarth/amqp-utils |
218 |
|
219 |
and run the amqp-deleteq tool for each declared queue. Alternatively, |
220 |
amqp-utils can be installed with: sudo gem install amqp-utils. |
221 |
|
222 |
UI |
223 |
* Feedback form now uses django native send_mail for sending emails. |
224 |
Proper django settings should be set for feedback mails to work |
225 |
(https://docs.djangoproject.com/en/dev/topics/email/) |
226 |
|
227 |
COMPONENTS |
228 |
* snf-ganeti-tools must be rebuilt, see snf-ganeti-tools/debian/ |
229 |
for Debian packaging. |
230 |
|
231 |
|
232 |
v0.5.3 -> v0.5.4 |
233 |
---------------- |
234 |
|
235 |
REPOSITORY |
236 |
* Split Synnefo Ganeti tools to snf-ganeti-tools, with Debian packaging |
237 |
|
238 |
REMOVED APPS |
239 |
* The ganeti/ app has been removed from the Django project completely. |
240 |
Any explicit references to it in Django settings must be removed. |
241 |
|
242 |
DJANGO SETTINGS |
243 |
* snf-ganeti-tools is configured independently from Django, |
244 |
need to add proper /etc/synnefo/settings.conf |
245 |
* Removed 15-queues.conf: fix_amqp_settings (no need to call it anywhere) |
246 |
* Removed settings.d/98-ganeti-* due to split of snf-ganeti-tools |
247 |
* ~okeanos intro: OKEANOS_VIDEO_URL: Changed from string to dict |
248 |
* ~okeanos intro: OKEANOS_VIDEO_POSTER_IMAGE_URL: New setting |
249 |
* ~okeanos intro: OKEANOS_VIDEO_FLOWPLAYER_URL: New setting |
250 |
|
251 |
DB MIGRATIONS |
252 |
* 0018_auto__add_field_virtualmachine_buildpercentage |
253 |
|
254 |
PACKAGING |
255 |
* Split Synnefo Ganeti tools to separate snf-ganeti-tools Debian package |
256 |
|
257 |
NEW DEPENDENCIES |
258 |
* python-prctl: Needed by the snf-progress-monitor, |
259 |
specified as a dependency of the snf-ganeti-tools Debian package. |
260 |
|
261 |
EXTERNAL COMPONENTS |
262 |
* Ganeti Instance Image must be upgraded to support progress monitoring, |
263 |
please see README.deploy. |
264 |
|
265 |
|
266 |
v0.5.2 -> v0.5.3 |
267 |
---------------- |
268 |
|
269 |
NEW SETTINGS |
270 |
* 30-ui.conf:LOGOUT_URL |
271 |
* 00-admins.conf:DEFAULT_FROM_EMAIL |
272 |
* 90-okeanos.conf.sample:LOGOUT_URL |
273 |
|
274 |
REMOVED SETTINGS |
275 |
* 00-admins.conf:SYSTEM_EMAIL_ADDR |
276 |
* 90-okeanos.conf.sample:APP_INSTALL_URL |
277 |
|
278 |
|
279 |
v0.5.1 -> v0.5.2 |
280 |
---------------- |
281 |
|
282 |
NEW SETTINGS |
283 |
* 10-backend.py:GANETI_CREATEINSTANCE_KWARGS |
284 |
|
285 |
REMOVED SETTINGS |
286 |
* 10-backend.conf:GANETI_OS_PROVIDER |
287 |
* 20-api.conf:GANETI_DISK_TEMPLATE |
288 |
|
289 |
BACKEND CHANGES |
290 |
* Need to patch Ganeti, file: |
291 |
lib/python2.6/site-packages/ganeti/rapi/rlib2.py |
292 |
to honor the wait_for_sync flag, see Synnefo #835. |
293 |
Patch provided under contrib/patches/ganeti-rlib2.py-v0.5.2 |
294 |
|