Commit a0fefee
committed
CA-260352: Fix upgrade from 1.14-ppx to 1.30
To avoid problems when upgrading to the already-released 1.30 version of xapi,
we need to ensure the database doesn't contain any new fields. Therefore this
commit removes the new field 'enforce_homogeneity' from the database. However,
we do need the functionality the field provided, and hence we're moving it to
other_config. Unfortunately the object in question, 'Pool_update', doesn't have an
other_config field, hence we're storing it on the associated Pool_patch
record, which does have the field.
The other_config key will be:
"enforce_homogeneity"
which will be set to "true" or "false".
In the hopefully vanishingly small chance that we can't find the field (ie,
the pool_patch object has been removed or the other_config map has been
blanked), we will assume the value would have been 'true', unless a pool-wide
override has been set.
In future, this functionality will be removed in favour of a the first-class
field on the pool_update object.
Signed-off-by: Jon Ludlam <[email protected]>1 parent a28d4c0 commit a0fefee
File tree
5 files changed
+86
-15
lines changed- ocaml
- client_records
- idl
- xapi
5 files changed
+86
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1032 | 1032 | | |
1033 | 1033 | | |
1034 | 1034 | | |
1035 | | - | |
| 1035 | + | |
1036 | 1036 | | |
1037 | 1037 | | |
1038 | 1038 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4098 | 4098 | | |
4099 | 4099 | | |
4100 | 4100 | | |
| 4101 | + | |
| 4102 | + | |
| 4103 | + | |
| 4104 | + | |
| 4105 | + | |
| 4106 | + | |
| 4107 | + | |
| 4108 | + | |
| 4109 | + | |
| 4110 | + | |
| 4111 | + | |
4101 | 4112 | | |
4102 | 4113 | | |
4103 | 4114 | | |
| |||
4122 | 4133 | | |
4123 | 4134 | | |
4124 | 4135 | | |
| 4136 | + | |
4125 | 4137 | | |
4126 | 4138 | | |
4127 | 4139 | | |
| |||
4132 | 4144 | | |
4133 | 4145 | | |
4134 | 4146 | | |
4135 | | - | |
4136 | | - | |
4137 | | - | |
4138 | | - | |
4139 | | - | |
4140 | | - | |
4141 | | - | |
4142 | 4147 | | |
4143 | 4148 | | |
4144 | 4149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3949 | 3949 | | |
3950 | 3950 | | |
3951 | 3951 | | |
| 3952 | + | |
3952 | 3953 | | |
3953 | 3954 | | |
3954 | 3955 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
147 | 163 | | |
148 | 164 | | |
149 | 165 | | |
150 | 166 | | |
151 | 167 | | |
152 | | - | |
153 | | - | |
154 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
155 | 171 | | |
156 | 172 | | |
157 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
351 | 397 | | |
352 | 398 | | |
353 | 399 | | |
| |||
360 | 406 | | |
361 | 407 | | |
362 | 408 | | |
363 | | - | |
| 409 | + | |
364 | 410 | | |
365 | 411 | | |
366 | 412 | | |
| |||
371 | 417 | | |
372 | 418 | | |
373 | 419 | | |
374 | | - | |
375 | 420 | | |
376 | 421 | | |
377 | 422 | | |
| |||
462 | 507 | | |
463 | 508 | | |
464 | 509 | | |
465 | | - | |
466 | | - | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
467 | 516 | | |
468 | 517 | | |
469 | 518 | | |
| |||
0 commit comments