Statistics
| Branch: | Tag: | Revision:

root / NEWS @ af8492ff

History | View | Annotate | Download (129.4 kB)

1
News
2
====
3

    
4

    
5
Version 2.12.0 alpha1
6
---------------------
7

    
8
*(unreleased)*
9

    
10
Incompatible/important changes
11
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12

    
13
- Do not use debug mode in production. Certain daemons will issue warnings
14
  when launched in debug mode. Some debug logging violates some of the new
15
  invariants in the system (see "New features"). The logging has been kept as
16
  it aids diagnostics and development.
17

    
18
New features
19
~~~~~~~~~~~~
20

    
21
- OS install script parameters now come in public, private and secret
22
  varieties:
23

    
24
  - Public parameters are like all other parameters in Ganeti.
25
  - Ganeti will not log private and secret parameters, *unless* it is running
26
    in debug mode.
27
  - Ganeti will not save secret parameters to configuration. Secret parameters
28
    must be supplied every time you install, or reinstall, an instance.
29
  - Attempting to override public parameters with private or secret parameters
30
    results in an error. Similarly, you may not use secret parameters to
31
    override private parameters.
32

    
33

    
34
Version 2.11.0 alpha1
35
---------------------
36

    
37
*(unreleased)*
38

    
39
Incompatible/important changes
40
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
41

    
42
- ``gnt-node list`` no longer shows disk space information for shared file
43
  disk templates because it is not a node attribute. (For example, if you have
44
  both the file and shared file disk templates enabled, ``gnt-node list`` now
45
  only shows information about the file disk template.)
46
- The shared file disk template is now in the new 'sharedfile' storage type.
47
  As a result, ``gnt-node list-storage -t file`` now only shows information
48
  about the file disk template and you may use ``gnt-node list-storage -t
49
  sharedfile`` to query storage information for the shared file disk template.
50
- Over luxi, syntactially incorrect queries are now rejected as a whole;
51
  before, a 'SumbmitManyJobs' request was partially executed, if the outer
52
  structure of the request was syntactically correct. As the luxi protocol
53
  is internal (external applications are expected to use RAPI), the impact
54
  of this incompatible change should be limited.
55
- Queries for nodes, instances, groups, backups and networks are now
56
  exclusively done via the luxi daemon. Legacy python code was removed,
57
  as well as the --enable-split-queries configuration option.
58
- Orphan volumes errors are demoted to warnings and no longer affect the exit
59
  code of ``gnt-cluster verify``.
60
- RPC security got enhanced by using different client SSL certificates
61
  for each node. In this context 'gnt-cluster renew-crypto' got a new
62
  option '--renew-node-certificates', which renews the client
63
  certificates of all nodes. After a cluster upgrade from pre-2.11, run
64
  this to create client certificates and activate this feature.
65

    
66
New features
67
~~~~~~~~~~~~
68

    
69
- Instance moves, backups and imports can now use compression to transfer the
70
  instance data.
71
- Node groups can be configured to use an SSH port different than the
72
  default 22.
73
- Added experimental support for Gluster distributed file storage as the
74
  ``gluster`` disk template under the new ``sharedfile`` storage type through
75
  automatic management of per-node FUSE mount points. You can configure the
76
  mount point location at ``gnt-cluster init`` time by using the new
77
  ``--gluster-storage-dir`` switch.
78
- Job scheduling is now handled by luxid, and the maximal number of jobs running
79
  in parallel is a run-time parameter of the cluster.
80

    
81
New dependencies
82
~~~~~~~~~~~~~~~~
83
The following new dependencies have been added:
84

    
85
For Haskell:
86

    
87
- ``zlib`` library (http://hackage.haskell.org/package/base64-bytestring)
88

    
89
- ``base64-bytestring`` library (http://hackage.haskell.org/package/zlib),
90
  at least version 1.0.0.0
91

    
92
- ``lifted-base`` library (http://hackage.haskell.org/package/lifted-base)
93

    
94

    
95
Version 2.10.0 rc2
96
------------------
97

    
98
*(Released Fri, 31 Jan 2014)*
99

    
100
Incompatible/important changes
101
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
102

    
103
- Adding disks with 'gnt-instance modify' now waits for the disks to sync per
104
  default. Specify --no-wait-for-sync to override this behavior.
105
- The Ganeti python code now adheres to a private-module layout. In particular,
106
  the module 'ganeti' is no longer in the python search path.
107
- On instance allocation, the iallocator now considers non-LVM storage
108
  properly. In particular, actual file storage space information is used
109
  when allocating space for a file/sharedfile instance.
110
- When disabling disk templates cluster-wide, the cluster now first
111
  checks whether there are instances still using those templates.
112
- 'gnt-node list-storage' now also reports storage information about
113
  file-based storage types.
114
- In case of non drbd instances, export \*_SECONDARY environment variables
115
  as empty strings (and not "None") during 'instance-migrate' related hooks.
116

    
117
New features
118
~~~~~~~~~~~~
119

    
120
- KVM hypervisors can now access RBD storage directly without having to
121
  go through a block device.
122
- A new command 'gnt-cluster upgrade' was added that automates the upgrade
123
  procedure between two Ganeti versions that are both 2.10 or higher.
124
- The move-instance command can now change disk templates when moving
125
  instances, and does not require any node placement options to be
126
  specified if the destination cluster has a default iallocator.
127
- Users can now change the soundhw and cpuid settings for XEN hypervisors.
128
- Hail and hbal now have the (optional) capability of accessing average CPU
129
  load information through the monitoring deamon, and to use it to dynamically
130
  adapt the allocation of instances.
131
- Hotplug support. Introduce new option '--hotplug' to ``gnt-instance modify``
132
  so that disk and NIC modifications take effect without the need of actual
133
  reboot. There are a couple of constrains currently for this feature:
134

    
135
   - only KVM hypervisor (versions >= 1.0) supports it,
136
   - one can not (yet) hotplug a disk using userspace access mode for RBD
137
   - in case of a downgrade instances should suffer a reboot in order to
138
     be migratable (due to core change of runtime files)
139

    
140
Misc changes
141
~~~~~~~~~~~~
142

    
143
- A new test framework for logical units was introduced and the test
144
  coverage for logical units was improved significantly.
145
- Opcodes are entirely generated from Haskell using the tool 'hs2py' and
146
  the module 'src/Ganeti/OpCodes.hs'.
147
- Constants are also generated from Haskell using the tool
148
  'hs2py-constants' and the module 'src/Ganeti/Constants.hs', with the
149
  exception of socket related constants, which require changing the
150
  cluster configuration file, and HVS related constants, because they
151
  are part of a port of instance queries to Haskell.  As a result, these
152
  changes will be part of the next release of Ganeti.
153

    
154
New dependencies
155
~~~~~~~~~~~~~~~~
156

    
157
The following new dependencies have been added/updated.
158

    
159
Python
160

    
161
- The version requirements for ``python-mock`` have increased to at least
162
  version 1.0.1. It is still used for testing only.
163

    
164
Since 2.10.0 rc1
165
~~~~~~~~~~~~~~~~
166

    
167
- Documentation improvements
168
- Run drbdsetup syncer only on network attach
169
- Include target node in hooks nodes for migration
170
- Fix configure dirs
171
- Support post-upgrade hooks during cluster upgrades
172

    
173
Inherited from the 2.9 branch:
174

    
175
- Ensure that all the hypervisors exist in the config file (Issue 640)
176
- Correctly recognise the role as master node (Issue 687)
177
- configure: allow detection of Sphinx 1.2+ (Issue 502)
178
- gnt-instance now honors the KVM path correctly (Issue 691)
179

    
180
Inherited from the 2.8 branch:
181

    
182
- Change the list separator for the usb_devices parameter from comma to space.
183
  Commas could not work because they are already the hypervisor option
184
  separator (Issue 649)
185
- Add support for blktap2 file-driver (Issue 638)
186
- Add network tag definitions to the haskell codebase (Issue 641)
187
- Fix RAPI network tag handling
188
- Add the network tags to the tags searched by gnt-cluster search-tags
189
- Fix caching bug preventing jobs from being cancelled
190
- Start-master/stop-master was always failing if ConfD was disabled. (Issue 685)
191

    
192
Since 2.10.0 beta1
193
~~~~~~~~~~~~~~~~~~
194

    
195
- All known issues in 2.10.0 beta1 have been resolved (see changes from
196
  the 2.8 branch).
197
- Improve handling of KVM runtime files from earlier Ganeti versions
198
- Documentation fixes
199

    
200
Inherited from the 2.9 branch:
201

    
202
- use custom KVM path if set for version checking
203
- SingleNotifyPipeCondition: don't share pollers
204

    
205
Inherited from the 2.8 branch:
206

    
207
- Fixed Luxi daemon socket permissions after master-failover
208
- Improve IP version detection code directly checking for colons rather than
209
  passing the family from the cluster object
210
- Fix NODE/NODE_RES locking in LUInstanceCreate by not acquiring NODE_RES locks
211
  opportunistically anymore (Issue 622)
212
- Allow link local IPv6 gateways (Issue 624)
213
- Fix error printing (Issue 616)
214
- Fix a bug in InstanceSetParams concerning names: in case no name is passed in
215
  disk modifications, keep the old one. If name=none then set disk name to
216
  None.
217
- Update build_chroot script to work with the latest hackage packages
218
- Add a packet number limit to "fping" in master-ip-setup (Issue 630)
219
- Fix evacuation out of drained node (Issue 615)
220
- Add default file_driver if missing (Issue 571)
221
- Fix job error message after unclean master shutdown (Issue 618)
222
- Lock group(s) when creating instances (Issue 621)
223
- SetDiskID() before accepting an instance (Issue 633)
224
- Allow the ext template disks to receive arbitrary parameters, both at creation
225
  time and while being modified
226
- Xen handle domain shutdown (future proofing cherry-pick)
227
- Refactor reading live data in htools (future proofing cherry-pick)
228

    
229

    
230
Version 2.10.0 rc1
231
------------------
232

    
233
*(Released Tue, 17 Dec 2013)*
234

    
235
This was the first RC release of the 2.10 series. All important changes
236
are listed in the latest 2.10 entry.
237

    
238

    
239
Version 2.10.0 beta1
240
--------------------
241

    
242
*(Released Wed, 27 Nov 2013)*
243

    
244
This was the first beta release of the 2.10 series. All important changes
245
are listed in the latest 2.10 entry.
246

    
247
Known issues
248
~~~~~~~~~~~~
249

    
250
The following issues are known to be present in the beta and will be fixed
251
before rc1.
252

    
253
- Issue 477: Wrong permissions for confd LUXI socket
254
- Issue 621: Instance related opcodes do not aquire network/group locks
255
- Issue 622: Assertion Error: Node locks differ from node resource locks
256
- Issue 623: IPv6 Masterd <-> Luxid communication error
257

    
258

    
259
Version 2.9.4
260
-------------
261

    
262
*(Released Mon, 10 Feb 2014)*
263

    
264
- Fix the RAPI instances-multi-alloc call
265
- assign unique filenames to file-based disks
266
- gracefully handle degraded non-diskless instances with 0 disks (issue 697)
267
- noded now runs with its specified group, which is the default group,
268
  defaulting to root (issue 707)
269
- make using UUIDs to identify nodes in gnt-node consistently possible
270
  (issue 703)
271

    
272

    
273
Version 2.9.3
274
-------------
275

    
276
*(Released Mon, 27 Jan 2014)*
277

    
278
- Ensure that all the hypervisors exist in the config file (Issue 640)
279
- Correctly recognise the role as master node (Issue 687)
280
- configure: allow detection of Sphinx 1.2+ (Issue 502)
281
- gnt-instance now honors the KVM path correctly (Issue 691)
282

    
283
Inherited from the 2.8 branch:
284

    
285
- Change the list separator for the usb_devices parameter from comma to space.
286
  Commas could not work because they are already the hypervisor option
287
  separator (Issue 649)
288
- Add support for blktap2 file-driver (Issue 638)
289
- Add network tag definitions to the haskell codebase (Issue 641)
290
- Fix RAPI network tag handling
291
- Add the network tags to the tags searched by gnt-cluster search-tags
292
- Fix caching bug preventing jobs from being cancelled
293
- Start-master/stop-master was always failing if ConfD was disabled. (Issue 685)
294

    
295

    
296
Version 2.9.2
297
-------------
298

    
299
*(Released Fri, 13 Dec 2013)*
300

    
301
- use custom KVM path if set for version checking
302
- SingleNotifyPipeCondition: don't share pollers
303

    
304
Inherited from the 2.8 branch:
305

    
306
- Fixed Luxi daemon socket permissions after master-failover
307
- Improve IP version detection code directly checking for colons rather than
308
  passing the family from the cluster object
309
- Fix NODE/NODE_RES locking in LUInstanceCreate by not acquiring NODE_RES locks
310
  opportunistically anymore (Issue 622)
311
- Allow link local IPv6 gateways (Issue 624)
312
- Fix error printing (Issue 616)
313
- Fix a bug in InstanceSetParams concerning names: in case no name is passed in
314
  disk modifications, keep the old one. If name=none then set disk name to
315
  None.
316
- Update build_chroot script to work with the latest hackage packages
317
- Add a packet number limit to "fping" in master-ip-setup (Issue 630)
318
- Fix evacuation out of drained node (Issue 615)
319
- Add default file_driver if missing (Issue 571)
320
- Fix job error message after unclean master shutdown (Issue 618)
321
- Lock group(s) when creating instances (Issue 621)
322
- SetDiskID() before accepting an instance (Issue 633)
323
- Allow the ext template disks to receive arbitrary parameters, both at creation
324
  time and while being modified
325
- Xen handle domain shutdown (future proofing cherry-pick)
326
- Refactor reading live data in htools (future proofing cherry-pick)
327

    
328

    
329
Version 2.9.1
330
-------------
331

    
332
*(Released Wed, 13 Nov 2013)*
333

    
334
- fix bug, that kept nodes offline when readding
335
- when verifying DRBD versions, ignore unavailable nodes
336
- fix bug that made the console unavailable on kvm in split-user
337
  setup (issue 608)
338
- DRBD: ensure peers are UpToDate for dual-primary (inherited 2.8.2)
339

    
340

    
341
Version 2.9.0
342
-------------
343

    
344
*(Released Tue, 5 Nov 2013)*
345

    
346
Incompatible/important changes
347
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
348

    
349
- hroller now also plans for capacity to move non-redundant instances off
350
  any node to be rebooted; the old behavior of completely ignoring any
351
  non-redundant instances can be restored by adding the --ignore-non-redundant
352
  option.
353
- The cluster option '--no-lvm-storage' was removed in favor of the new option
354
  '--enabled-disk-templates'.
355
- On instance creation, disk templates no longer need to be specified
356
  with '-t'. The default disk template will be taken from the list of
357
  enabled disk templates.
358
- The monitoring daemon is now running as root, in order to be able to collect
359
  information only available to root (such as the state of Xen instances).
360
- The ConfD client is now IPv6 compatible.
361
- File and shared file storage is no longer dis/enabled at configure time,
362
  but using the option '--enabled-disk-templates' at cluster initialization and
363
  modification.
364
- The default directories for file and shared file storage are not anymore
365
  specified at configure time, but taken from the cluster's configuration.
366
  They can be set at cluster initialization and modification with
367
  '--file-storage-dir' and '--shared-file-storage-dir'.
368
- Cluster verification now includes stricter checks regarding the
369
  default file and shared file storage directories. It now checks that
370
  the directories are explicitely allowed in the 'file-storage-paths' file and
371
  that the directories exist on all nodes.
372
- The list of allowed disk templates in the instance policy and the list
373
  of cluster-wide enabled disk templates is now checked for consistency
374
  on cluster or group modification. On cluster initialization, the ipolicy
375
  disk templates are ensured to be a subset of the cluster-wide enabled
376
  disk templates.
377

    
378
New features
379
~~~~~~~~~~~~
380

    
381
- DRBD 8.4 support. Depending on the installed DRBD version, Ganeti now uses
382
  the correct command syntax. It is possible to use different DRBD versions
383
  on different nodes as long as they are compatible to each other. This
384
  enables rolling upgrades of DRBD with no downtime. As permanent operation
385
  of different DRBD versions within a node group is discouraged,
386
  ``gnt-cluster verify`` will emit a warning if it detects such a situation.
387
- New "inst-status-xen" data collector for the monitoring daemon, providing
388
  information about the state of the xen instances on the nodes.
389
- New "lv" data collector for the monitoring daemon, collecting data about the
390
  logical volumes on the nodes, and pairing them with the name of the instances
391
  they belong to.
392
- New "diskstats" data collector, collecting the data from /proc/diskstats and
393
  presenting them over the monitoring daemon interface.
394
- The ConfD client is now IPv6 compatible.
395

    
396
New dependencies
397
~~~~~~~~~~~~~~~~
398
The following new dependencies have been added.
399

    
400
Python
401

    
402
- ``python-mock`` (http://www.voidspace.org.uk/python/mock/) is now a required
403
  for the unit tests (and only used for testing).
404

    
405
Haskell
406

    
407
- ``hslogger`` (http://software.complete.org/hslogger) is now always
408
  required, even if confd is not enabled.
409

    
410
Since 2.9.0 rc3
411
~~~~~~~~~~~~~~~
412

    
413
- Correctly start/stop luxid during gnt-cluster master-failover (inherited
414
  from stable-2.8)
415
- Improved error messsages (inherited from stable-2.8)
416

    
417

    
418
Version 2.9.0 rc3
419
-----------------
420

    
421
*(Released Tue, 15 Oct 2013)*
422

    
423
The third release candidate in the 2.9 series. Since 2.9.0 rc2:
424

    
425
- in implicit configuration upgrade, match ipolicy with enabled disk templates
426
- improved harep documentation (inherited from stable-2.8)
427

    
428

    
429
Version 2.9.0 rc2
430
-----------------
431

    
432
*(Released Wed, 9 Oct 2013)*
433

    
434
The second release candidate in the 2.9 series. Since 2.9.0 rc1:
435

    
436
- Fix bug in cfgupgrade that led to failure when upgrading from 2.8 with
437
  at least one DRBD instance.
438
- Fix bug in cfgupgrade that led to an invalid 2.8 configuration after
439
  downgrading.
440

    
441

    
442
Version 2.9.0 rc1
443
-----------------
444

    
445
*(Released Tue, 1 Oct 2013)*
446

    
447
The first release candidate in the 2.9 series. Since 2.9.0 beta1:
448

    
449
- various bug fixes
450
- update of the documentation, in particular installation instructions
451
- merging of LD_* constants into DT_* constants
452
- python style changes to be compatible with newer versions of pylint
453

    
454

    
455
Version 2.9.0 beta1
456
-------------------
457

    
458
*(Released Thu, 29 Aug 2013)*
459

    
460
This was the first beta release of the 2.9 series. All important changes
461
are listed in the latest 2.9 entry.
462

    
463

    
464
Version 2.8.4
465
-------------
466

    
467
*(Released Thu, 23 Jan 2014)*
468

    
469
- Change the list separator for the usb_devices parameter from comma to space.
470
  Commas could not work because they are already the hypervisor option
471
  separator (Issue 649)
472
- Add support for blktap2 file-driver (Issue 638)
473
- Add network tag definitions to the haskell codebase (Issue 641)
474
- Fix RAPI network tag handling
475
- Add the network tags to the tags searched by gnt-cluster search-tags
476
- Fix caching bug preventing jobs from being cancelled
477
- Start-master/stop-master was always failing if ConfD was disabled. (Issue 685)
478

    
479

    
480
Version 2.8.3
481
-------------
482

    
483
*(Released Thu, 12 Dec 2013)*
484

    
485
- Fixed Luxi daemon socket permissions after master-failover
486
- Improve IP version detection code directly checking for colons rather than
487
  passing the family from the cluster object
488
- Fix NODE/NODE_RES locking in LUInstanceCreate by not acquiring NODE_RES locks
489
  opportunistically anymore (Issue 622)
490
- Allow link local IPv6 gateways (Issue 624)
491
- Fix error printing (Issue 616)
492
- Fix a bug in InstanceSetParams concerning names: in case no name is passed in
493
  disk modifications, keep the old one. If name=none then set disk name to
494
  None.
495
- Update build_chroot script to work with the latest hackage packages
496
- Add a packet number limit to "fping" in master-ip-setup (Issue 630)
497
- Fix evacuation out of drained node (Issue 615)
498
- Add default file_driver if missing (Issue 571)
499
- Fix job error message after unclean master shutdown (Issue 618)
500
- Lock group(s) when creating instances (Issue 621)
501
- SetDiskID() before accepting an instance (Issue 633)
502
- Allow the ext template disks to receive arbitrary parameters, both at creation
503
  time and while being modified
504
- Xen handle domain shutdown (future proofing cherry-pick)
505
- Refactor reading live data in htools (future proofing cherry-pick)
506

    
507

    
508
Version 2.8.2
509
-------------
510

    
511
*(Released Thu, 07 Nov 2013)*
512

    
513
- DRBD: ensure peers are UpToDate for dual-primary
514
- Improve error message for replace-disks
515
- More dependency checks at configure time
516
- Placate warnings on ganeti.outils_unittest.py
517

    
518

    
519
Version 2.8.1
520
-------------
521

    
522
*(Released Thu, 17 Oct 2013)*
523

    
524
- Correctly start/stop luxid during gnt-cluster master-failover
525
- Don't attempt IPv6 ssh in case of IPv4 cluster (Issue 595)
526
- Fix path for the job queue serial file
527
- Improved harep man page
528
- Minor documentation improvements
529

    
530

    
531
Version 2.8.0
532
-------------
533

    
534
*(Released Mon, 30 Sep 2013)*
535

    
536
Incompatible/important changes
537
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
538

    
539
- Instance policy can contain multiple instance specs, as described in
540
  the โ€œConstrained instance sizesโ€ section of :doc:`Partitioned Ganeti
541
  <design-partitioned>`. As a consequence, it's not possible to partially change
542
  or override instance specs. Bounding specs (min and max) can be specified as a
543
  whole using the new option ``--ipolicy-bounds-specs``, while standard
544
  specs use the new option ``--ipolicy-std-specs``.
545
- The output of the info command of gnt-cluster, gnt-group, gnt-node,
546
  gnt-instance is a valid YAML object.
547
- hail now honors network restrictions when allocating nodes. This led to an
548
  update of the IAllocator protocol. See the IAllocator documentation for
549
  details.
550
- confd now only answers static configuration request over the network. luxid
551
  was extracted, listens on the local LUXI socket and responds to live queries.
552
  This allows finer grained permissions if using separate users.
553

    
554
New features
555
~~~~~~~~~~~~
556

    
557
- The :doc:`Remote API <rapi>` daemon now supports a command line flag
558
  to always require authentication, ``--require-authentication``. It can
559
  be specified in ``$sysconfdir/default/ganeti``.
560
- A new cluster attribute 'enabled_disk_templates' is introduced. It will
561
  be used to manage the disk templates to be used by instances in the cluster.
562
  Initially, it will be set to a list that includes plain, drbd, if they were
563
  enabled by specifying a volume group name, and file and sharedfile, if those
564
  were enabled at configure time. Additionally, it will include all disk
565
  templates that are currently used by instances. The order of disk templates
566
  will be based on Ganeti's history of supporting them. In the future, the
567
  first entry of the list will be used as a default disk template on instance
568
  creation.
569
- ``cfgupgrade`` now supports a ``--downgrade`` option to bring the
570
  configuration back to the previous stable version.
571
- Disk templates in group ipolicy can be restored to the default value.
572
- Initial support for diskless instances and virtual clusters in QA.
573
- More QA and unit tests for instance policies.
574
- Every opcode now contains a reason trail (visible through ``gnt-job info``)
575
  describing why the opcode itself was executed.
576
- The monitoring daemon is now available. It allows users to query the cluster
577
  for obtaining information about the status of the system. The daemon is only
578
  responsible for providing the information over the network: the actual data
579
  gathering is performed by data collectors (currently, only the DRBD status
580
  collector is available).
581
- In order to help developers work on Ganeti, a new script
582
  (``devel/build_chroot``) is provided, for building a chroot that contains all
583
  the required development libraries and tools for compiling Ganeti on a Debian
584
  Squeeze system.
585
- A new tool, ``harep``, for performing self-repair and recreation of instances
586
  in Ganeti has been added.
587
- Split queries are enabled for tags, network, exports, cluster info, groups,
588
  jobs, nodes.
589
- New command ``show-ispecs-cmd`` for ``gnt-cluster`` and ``gnt-group``.
590
  It prints the command line to set the current policies, to ease
591
  changing them.
592
- Add the ``vnet_hdr`` HV parameter for KVM, to control whether the tap
593
  devices for KVM virtio-net interfaces will get created with VNET_HDR
594
  (IFF_VNET_HDR) support. If set to false, it disables offloading on the
595
  virtio-net interfaces, which prevents host kernel tainting and log
596
  flooding, when dealing with broken or malicious virtio-net drivers.
597
  It's set to true by default.
598
- Instance failover now supports a ``--cleanup`` parameter for fixing previous
599
  failures.
600
- Support 'viridian' parameter in Xen HVM
601
- Support DSA SSH keys in bootstrap
602
- To simplify the work of packaging frameworks that want to add the needed users
603
  and groups in a split-user setup themselves, at build time three files in
604
  ``doc/users`` will be generated. The ``groups`` files contains, one per line,
605
  the groups to be generated, the ``users`` file contains, one per line, the
606
  users to be generated, optionally followed by their primary group, where
607
  important. The ``groupmemberships`` file contains, one per line, additional
608
  user-group membership relations that need to be established. The syntax of
609
  these files will remain stable in all future versions.
610

    
611

    
612
New dependencies
613
~~~~~~~~~~~~~~~~
614
The following new dependencies have been added:
615

    
616
For Haskell:
617
- The ``curl`` library is not optional anymore for compiling the Haskell code.
618
- ``snap-server`` library (if monitoring is enabled).
619

    
620
For Python:
621
- The minimum Python version needed to run Ganeti is now 2.6.
622
- ``yaml`` library (only for running the QA).
623

    
624
Since 2.8.0 rc3
625
~~~~~~~~~~~~~~~
626
- Perform proper cleanup on termination of Haskell daemons
627
- Fix corner-case in handling of remaining retry time
628

    
629

    
630
Version 2.8.0 rc3
631
-----------------
632

    
633
*(Released Tue, 17 Sep 2013)*
634

    
635
- To simplify the work of packaging frameworks that want to add the needed users
636
  and groups in a split-user setup themselves, at build time three files in
637
  ``doc/users`` will be generated. The ``groups`` files contains, one per line,
638
  the groups to be generated, the ``users`` file contains, one per line, the
639
  users to be generated, optionally followed by their primary group, where
640
  important. The ``groupmemberships`` file contains, one per line, additional
641
  user-group membership relations that need to be established. The syntax of
642
  these files will remain stable in all future versions.
643
- Add a default to file-driver when unspecified over RAPI (Issue 571)
644
- Mark the DSA host pubkey as optional, and remove it during config downgrade
645
  (Issue 560)
646
- Some documentation fixes
647

    
648

    
649
Version 2.8.0 rc2
650
-----------------
651

    
652
*(Released Tue, 27 Aug 2013)*
653

    
654
The second release candidate of the 2.8 series. Since 2.8.0. rc1:
655

    
656
- Support 'viridian' parameter in Xen HVM (Issue 233)
657
- Include VCS version in ``gnt-cluster version``
658
- Support DSA SSH keys in bootstrap (Issue 338)
659
- Fix batch creation of instances
660
- Use FQDN to check master node status (Issue 551)
661
- Make the DRBD collector more failure-resilient
662

    
663

    
664
Version 2.8.0 rc1
665
-----------------
666

    
667
*(Released Fri, 2 Aug 2013)*
668

    
669
The first release candidate of the 2.8 series. Since 2.8.0 beta1:
670

    
671
- Fix upgrading/downgrading from 2.7
672
- Increase maximum RAPI message size
673
- Documentation updates
674
- Split ``confd`` between ``luxid`` and ``confd``
675
- Merge 2.7 series up to the 2.7.1 release
676
- Allow the ``modify_etc_hosts`` option to be changed
677
- Add better debugging for ``luxid`` queries
678
- Expose bulk parameter for GetJobs in RAPI client
679
- Expose missing ``network`` fields in RAPI
680
- Add some ``cluster verify`` tests
681
- Some unittest fixes
682
- Fix a malfunction in ``hspace``'s tiered allocation
683
- Fix query compatibility between haskell and python implementations
684
- Add the ``vnet_hdr`` HV parameter for KVM
685
- Add ``--cleanup`` to instance failover
686
- Change the connected groups format in ``gnt-network info`` output; it
687
  was previously displayed as a raw list by mistake. (Merged from 2.7)
688

    
689

    
690
Version 2.8.0 beta1
691
-------------------
692

    
693
*(Released Mon, 24 Jun 2013)*
694

    
695
This was the first beta release of the 2.8 series. All important changes
696
are listed in the latest 2.8 entry.
697

    
698

    
699
Version 2.7.2
700
-------------
701

    
702
*(Released Thu, 26 Sep 2013)*
703

    
704
- Change the connected groups format in ``gnt-network info`` output; it
705
  was previously displayed as a raw list by mistake
706
- Check disk template in right dict when copying
707
- Support multi-instance allocs without iallocator
708
- Fix some errors in the documentation
709
- Fix formatting of tuple in an error message
710

    
711

    
712
Version 2.7.1
713
-------------
714

    
715
*(Released Thu, 25 Jul 2013)*
716

    
717
- Add logrotate functionality in daemon-util
718
- Add logrotate example file
719
- Add missing fields to network queries over rapi
720
- Fix network object timestamps
721
- Add support for querying network timestamps
722
- Fix a typo in the example crontab
723
- Fix a documentation typo
724

    
725

    
726
Version 2.7.0
727
-------------
728

    
729
*(Released Thu, 04 Jul 2013)*
730

    
731
Incompatible/important changes
732
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
733

    
734
- Instance policies for disk size were documented to be on a per-disk
735
  basis, but hail applied them to the sum of all disks. This has been
736
  fixed.
737
- ``hbal`` will now exit with status 0 if, during job execution over
738
  LUXI, early exit has been requested and all jobs are successful;
739
  before, exit status 1 was used, which cannot be differentiated from
740
  "job error" case
741
- Compatibility with newer versions of rbd has been fixed
742
- ``gnt-instance batch-create`` has been changed to use the bulk create
743
  opcode from Ganeti. This lead to incompatible changes in the format of
744
  the JSON file. It's now not a custom dict anymore but a dict
745
  compatible with the ``OpInstanceCreate`` opcode.
746
- Parent directories for file storage need to be listed in
747
  ``$sysconfdir/ganeti/file-storage-paths`` now. ``cfgupgrade`` will
748
  write the file automatically based on old configuration values, but it
749
  can not distribute it across all nodes and the file contents should be
750
  verified. Use ``gnt-cluster copyfile
751
  $sysconfdir/ganeti/file-storage-paths`` once the cluster has been
752
  upgraded. The reason for requiring this list of paths now is that
753
  before it would have been possible to inject new paths via RPC,
754
  allowing files to be created in arbitrary locations. The RPC protocol
755
  is protected using SSL/X.509 certificates, but as a design principle
756
  Ganeti does not permit arbitrary paths to be passed.
757
- The parsing of the variants file for OSes (see
758
  :manpage:`ganeti-os-interface(7)`) has been slightly changed: now empty
759
  lines and comment lines (starting with ``#``) are ignored for better
760
  readability.
761
- The ``setup-ssh`` tool added in Ganeti 2.2 has been replaced and is no
762
  longer available. ``gnt-node add`` now invokes a new tool on the
763
  destination node, named ``prepare-node-join``, to configure the SSH
764
  daemon. Paramiko is no longer necessary to configure nodes' SSH
765
  daemons via ``gnt-node add``.
766
- Draining (``gnt-cluster queue drain``) and un-draining the job queue
767
  (``gnt-cluster queue undrain``) now affects all nodes in a cluster and
768
  the flag is not reset after a master failover.
769
- Python 2.4 has *not* been tested with this release. Using 2.6 or above
770
  is recommended. 2.6 will be mandatory from the 2.8 series.
771

    
772

    
773
New features
774
~~~~~~~~~~~~
775

    
776
- New network management functionality to support automatic allocation
777
  of IP addresses and managing of network parameters. See
778
  :manpage:`gnt-network(8)` for more details.
779
- New external storage backend, to allow managing arbitrary storage
780
  systems external to the cluster. See
781
  :manpage:`ganeti-extstorage-interface(7)`.
782
- New ``exclusive-storage`` node parameter added, restricted to
783
  nodegroup level. When it's set to true, physical disks are assigned in
784
  an exclusive fashion to instances, as documented in :doc:`Partitioned
785
  Ganeti <design-partitioned>`.  Currently, only instances using the
786
  ``plain`` disk template are supported.
787
- The KVM hypervisor has been updated with many new hypervisor
788
  parameters, including a generic one for passing arbitrary command line
789
  values. See a complete list in :manpage:`gnt-instance(8)`. It is now
790
  compatible up to qemu 1.4.
791
- A new tool, called ``mon-collector``, is the stand-alone executor of
792
  the data collectors for a monitoring system. As of this version, it
793
  just includes the DRBD data collector, that can be executed by calling
794
  ``mon-collector`` using the ``drbd`` parameter. See
795
  :manpage:`mon-collector(7)`.
796
- A new user option, :pyeval:`rapi.RAPI_ACCESS_READ`, has been added
797
  for RAPI users. It allows granting permissions to query for
798
  information to a specific user without giving
799
  :pyeval:`rapi.RAPI_ACCESS_WRITE` permissions.
800
- A new tool named ``node-cleanup`` has been added. It cleans remains of
801
  a cluster from a machine by stopping all daemons, removing
802
  certificates and ssconf files. Unless the ``--no-backup`` option is
803
  given, copies of the certificates are made.
804
- Instance creations now support the use of opportunistic locking,
805
  potentially speeding up the (parallel) creation of multiple instances.
806
  This feature is currently only available via the :doc:`RAPI
807
  <rapi>` interface and when an instance allocator is used. If the
808
  ``opportunistic_locking`` parameter is set the opcode will try to
809
  acquire as many locks as possible, but will not wait for any locks
810
  held by other opcodes. If not enough resources can be found to
811
  allocate the instance, the temporary error code
812
  :pyeval:`errors.ECODE_TEMP_NORES` is returned. The operation can be
813
  retried thereafter, with or without opportunistic locking.
814
- New experimental linux-ha resource scripts.
815
- Restricted-commands support: ganeti can now be asked (via command line
816
  or rapi) to perform commands on a node. These are passed via ganeti
817
  RPC rather than ssh. This functionality is restricted to commands
818
  specified on the ``$sysconfdir/ganeti/restricted-commands`` for security
819
  reasons. The file is not copied automatically.
820

    
821

    
822
Misc changes
823
~~~~~~~~~~~~
824

    
825
- Diskless instances are now externally mirrored (Issue 237). This for
826
  now has only been tested in conjunction with explicit target nodes for
827
  migration/failover.
828
- Queries not needing locks or RPC access to the node can now be
829
  performed by the confd daemon, making them independent from jobs, and
830
  thus faster to execute. This is selectable at configure time.
831
- The functionality for allocating multiple instances at once has been
832
  overhauled and is now also available through :doc:`RAPI <rapi>`.
833

    
834
There are no significant changes from version 2.7.0~rc3.
835

    
836

    
837
Version 2.7.0 rc3
838
-----------------
839

    
840
*(Released Tue, 25 Jun 2013)*
841

    
842
- Fix permissions on the confd query socket (Issue 477)
843
- Fix permissions on the job archive dir (Issue 498)
844
- Fix handling of an internal exception in replace-disks (Issue 472)
845
- Fix gnt-node info handling of shortened names (Issue 497)
846
- Fix gnt-instance grow-disk when wiping is enabled
847
- Documentation improvements, and support for newer pandoc
848
- Fix hspace honoring ipolicy for disks (Issue 484)
849
- Improve handling of the ``kvm_extra`` HV parameter
850

    
851

    
852
Version 2.7.0 rc2
853
-----------------
854

    
855
*(Released Fri, 24 May 2013)*
856

    
857
- ``devel/upload`` now works when ``/var/run`` on the target nodes is a
858
  symlink.
859
- Disks added through ``gnt-instance modify`` or created through
860
  ``gnt-instance recreate-disks`` are wiped, if the
861
  ``prealloc_wipe_disks`` flag is set.
862
- If wiping newly created disks fails, the disks are removed. Also,
863
  partial failures in creating disks through ``gnt-instance modify``
864
  triggers a cleanup of the partially-created disks.
865
- Removing the master IP address doesn't fail if the address has been
866
  already removed.
867
- Fix ownership of the OS log dir
868
- Workaround missing SO_PEERCRED constant (Issue 191)
869

    
870

    
871
Version 2.7.0 rc1
872
-----------------
873

    
874
*(Released Fri, 3 May 2013)*
875

    
876
This was the first release candidate of the 2.7 series. Since beta3:
877

    
878
- Fix kvm compatibility with qemu 1.4 (Issue 389)
879
- Documentation updates (admin guide, upgrade notes, install
880
  instructions) (Issue 372)
881
- Fix gnt-group list nodes and instances count (Issue 436)
882
- Fix compilation without non-mandatory libraries (Issue 441)
883
- Fix xen-hvm hypervisor forcing nics to type 'ioemu' (Issue 247)
884
- Make confd logging more verbose at INFO level (Issue 435)
885
- Improve "networks" documentation in :manpage:`gnt-instance(8)`
886
- Fix failure path for instance storage type conversion (Issue 229)
887
- Update htools text backend documentation
888
- Improve the renew-crypto section of :manpage:`gnt-cluster(8)`
889
- Disable inter-cluster instance move for file-based instances, because
890
  it is dependant on instance export, which is not supported for
891
  file-based instances. (Issue 414)
892
- Fix gnt-job crashes on non-ascii characters (Issue 427)
893
- Fix volume group checks on non-vm-capable nodes (Issue 432)
894

    
895

    
896
Version 2.7.0 beta3
897
-------------------
898

    
899
*(Released Mon, 22 Apr 2013)*
900

    
901
This was the third beta release of the 2.7 series. Since beta2:
902

    
903
- Fix hail to verify disk instance policies on a per-disk basis (Issue 418).
904
- Fix data loss on wrong usage of ``gnt-instance move``
905
- Properly export errors in confd-based job queries
906
- Add ``users-setup`` tool
907
- Fix iallocator protocol to report 0 as a disk size for diskless
908
  instances. This avoids hail breaking when a diskless instance is
909
  present.
910
- Fix job queue directory permission problem that made confd job queries
911
  fail. This requires running an ``ensure-dirs --full-run`` on upgrade
912
  for access to archived jobs (Issue 406).
913
- Limit the sizes of networks supported by ``gnt-network`` to something
914
  between a ``/16`` and a ``/30`` to prevent memory bloat and crashes.
915
- Fix bugs in instance disk template conversion
916
- Fix GHC 7 compatibility
917
- Fix ``burnin`` install path (Issue 426).
918
- Allow very small disk grows (Issue 347).
919
- Fix a ``ganeti-noded`` memory bloat introduced in 2.5, by making sure
920
  that noded doesn't import masterd code (Issue 419).
921
- Make sure the default metavg at cluster init is the same as the vg, if
922
  unspecified (Issue 358).
923
- Fix cleanup of partially created disks (part of Issue 416)
924

    
925

    
926
Version 2.7.0 beta2
927
-------------------
928

    
929
*(Released Tue, 2 Apr 2013)*
930

    
931
This was the second beta release of the 2.7 series. Since beta1:
932

    
933
- Networks no longer have a "type" slot, since this information was
934
  unused in Ganeti: instead of it tags should be used.
935
- The rapi client now has a ``target_node`` option to MigrateInstance.
936
- Fix early exit return code for hbal (Issue 386).
937
- Fix ``gnt-instance migrate/failover -n`` (Issue 396).
938
- Fix ``rbd showmapped`` output parsing (Issue 312).
939
- Networks are now referenced indexed by UUID, rather than name. This
940
  will require running cfgupgrade, from 2.7.0beta1, if networks are in
941
  use.
942
- The OS environment now includes network information.
943
- Deleting of a network is now disallowed if any instance nic is using
944
  it, to prevent dangling references.
945
- External storage is now documented in man pages.
946
- The exclusive_storage flag can now only be set at nodegroup level.
947
- Hbal can now submit an explicit priority with its jobs.
948
- Many network related locking fixes.
949
- Bump up the required pylint version to 0.25.1.
950
- Fix the ``no_remember`` option in RAPI client.
951
- Many ipolicy related tests, qa, and fixes.
952
- Many documentation improvements and fixes.
953
- Fix building with ``--disable-file-storage``.
954
- Fix ``-q`` option in htools, which was broken if passed more than
955
  once.
956
- Some haskell/python interaction improvements and fixes.
957
- Fix iallocator in case of missing LVM storage.
958
- Fix confd config load in case of ``--no-lvm-storage``.
959
- The confd/query functionality is now mentioned in the security
960
  documentation.
961

    
962

    
963
Version 2.7.0 beta1
964
-------------------
965

    
966
*(Released Wed, 6 Feb 2013)*
967

    
968
This was the first beta release of the 2.7 series. All important changes
969
are listed in the latest 2.7 entry.
970

    
971

    
972
Version 2.6.2
973
-------------
974

    
975
*(Released Fri, 21 Dec 2012)*
976

    
977
Important behaviour change: hbal won't rebalance anymore instances which
978
have the ``auto_balance`` attribute set to false. This was the intention
979
all along, but until now it only skipped those from the N+1 memory
980
reservation (DRBD-specific).
981

    
982
A significant number of bug fixes in this release:
983

    
984
- Fixed disk adoption interaction with ipolicy checks.
985
- Fixed networking issues when instances are started, stopped or
986
  migrated, by forcing the tap device's MAC prefix to "fe" (issue 217).
987
- Fixed the warning in cluster verify for shared storage instances not
988
  being redundant.
989
- Fixed removal of storage directory on shared file storage (issue 262).
990
- Fixed validation of LVM volume group name in OpClusterSetParams
991
  (``gnt-cluster modify``) (issue 285).
992
- Fixed runtime memory increases (``gnt-instance modify -m``).
993
- Fixed live migration under Xen's ``xl`` mode.
994
- Fixed ``gnt-instance console`` with ``xl``.
995
- Fixed building with newer Haskell compiler/libraries.
996
- Fixed PID file writing in Haskell daemons (confd); this prevents
997
  restart issues if confd was launched manually (outside of
998
  ``daemon-util``) while another copy of it was running
999
- Fixed a type error when doing live migrations with KVM (issue 297) and
1000
  the error messages for failing migrations have been improved.
1001
- Fixed opcode validation for the out-of-band commands (``gnt-node
1002
  power``).
1003
- Fixed a type error when unsetting OS hypervisor parameters (issue
1004
  311); now it's possible to unset all OS-specific hypervisor
1005
  parameters.
1006
- Fixed the ``dry-run`` mode for many operations: verification of
1007
  results was over-zealous but didn't take into account the ``dry-run``
1008
  operation, resulting in "wrong" failures.
1009
- Fixed bash completion in ``gnt-job list`` when the job queue has
1010
  hundreds of entries; especially with older ``bash`` versions, this
1011
  results in significant CPU usage.
1012

    
1013
And lastly, a few other improvements have been made:
1014

    
1015
- Added option to force master-failover without voting (issue 282).
1016
- Clarified error message on lock conflict (issue 287).
1017
- Logging of newly submitted jobs has been improved (issue 290).
1018
- Hostname checks have been made uniform between instance rename and
1019
  create (issue 291).
1020
- The ``--submit`` option is now supported by ``gnt-debug delay``.
1021
- Shutting down the master daemon by sending SIGTERM now stops it from
1022
  processing jobs waiting for locks; instead, those jobs will be started
1023
  once again after the master daemon is started the next time (issue
1024
  296).
1025
- Support for Xen's ``xl`` program has been improved (besides the fixes
1026
  above).
1027
- Reduced logging noise in the Haskell confd daemon (only show one log
1028
  entry for each config reload, instead of two).
1029
- Several man page updates and typo fixes.
1030

    
1031

    
1032
Version 2.6.1
1033
-------------
1034

    
1035
*(Released Fri, 12 Oct 2012)*
1036

    
1037
A small bugfix release. Among the bugs fixed:
1038

    
1039
- Fixed double use of ``PRIORITY_OPT`` in ``gnt-node migrate``, that
1040
  made the command unusable.
1041
- Commands that issue many jobs don't fail anymore just because some jobs
1042
  take so long that other jobs are archived.
1043
- Failures during ``gnt-instance reinstall`` are reflected by the exit
1044
  status.
1045
- Issue 190 fixed. Check for DRBD in cluster verify is enabled only when
1046
  DRBD is enabled.
1047
- When ``always_failover`` is set, ``--allow-failover`` is not required
1048
  in migrate commands anymore.
1049
- ``bash_completion`` works even if extglob is disabled.
1050
- Fixed bug with locks that made failover for RDB-based instances fail.
1051
- Fixed bug in non-mirrored instance allocation that made Ganeti choose
1052
  a random node instead of one based on the allocator metric.
1053
- Support for newer versions of pylint and pep8.
1054
- Hail doesn't fail anymore when trying to add an instance of type
1055
  ``file``, ``sharedfile`` or ``rbd``.
1056
- Added new Makefile target to rebuild the whole distribution, so that
1057
  all files are included.
1058

    
1059

    
1060
Version 2.6.0
1061
-------------
1062

    
1063
*(Released Fri, 27 Jul 2012)*
1064

    
1065

    
1066
.. attention:: The ``LUXI`` protocol has been made more consistent
1067
   regarding its handling of command arguments. This, however, leads to
1068
   incompatibility issues with previous versions. Please ensure that you
1069
   restart Ganeti daemons soon after the upgrade, otherwise most
1070
   ``LUXI`` calls (job submission, setting/resetting the drain flag,
1071
   pausing/resuming the watcher, cancelling and archiving jobs, querying
1072
   the cluster configuration) will fail.
1073

    
1074

    
1075
New features
1076
~~~~~~~~~~~~
1077

    
1078
Instance run status
1079
+++++++++++++++++++
1080

    
1081
The current ``admin_up`` field, which used to denote whether an instance
1082
should be running or not, has been removed. Instead, ``admin_state`` is
1083
introduced, with 3 possible values -- ``up``, ``down`` and ``offline``.
1084

    
1085
The rational behind this is that an instance being โ€œdownโ€ can have
1086
different meanings:
1087

    
1088
- it could be down during a reboot
1089
- it could be temporarily be down for a reinstall
1090
- or it could be down because it is deprecated and kept just for its
1091
  disk
1092

    
1093
The previous Boolean state was making it difficult to do capacity
1094
calculations: should Ganeti reserve memory for a down instance? Now, the
1095
tri-state field makes it clear:
1096

    
1097
- in ``up`` and ``down`` state, all resources are reserved for the
1098
  instance, and it can be at any time brought up if it is down
1099
- in ``offline`` state, only disk space is reserved for it, but not
1100
  memory or CPUs
1101

    
1102
The field can have an extra use: since the transition between ``up`` and
1103
``down`` and vice-versus is done via ``gnt-instance start/stop``, but
1104
transition between ``offline`` and ``down`` is done via ``gnt-instance
1105
modify``, it is possible to given different rights to users. For
1106
example, owners of an instance could be allowed to start/stop it, but
1107
not transition it out of the offline state.
1108

    
1109
Instance policies and specs
1110
+++++++++++++++++++++++++++
1111

    
1112
In previous Ganeti versions, an instance creation request was not
1113
limited on the minimum size and on the maximum size just by the cluster
1114
resources. As such, any policy could be implemented only in third-party
1115
clients (RAPI clients, or shell wrappers over ``gnt-*``
1116
tools). Furthermore, calculating cluster capacity via ``hspace`` again
1117
required external input with regards to instance sizes.
1118

    
1119
In order to improve these workflows and to allow for example better
1120
per-node group differentiation, we introduced instance specs, which
1121
allow declaring:
1122

    
1123
- minimum instance disk size, disk count, memory size, cpu count
1124
- maximum values for the above metrics
1125
- and โ€œstandardโ€ values (used in ``hspace`` to calculate the standard
1126
  sized instances)
1127

    
1128
The minimum/maximum values can be also customised at node-group level,
1129
for example allowing more powerful hardware to support bigger instance
1130
memory sizes.
1131

    
1132
Beside the instance specs, there are a few other settings belonging to
1133
the instance policy framework. It is possible now to customise, per
1134
cluster and node-group:
1135

    
1136
- the list of allowed disk templates
1137
- the maximum ratio of VCPUs per PCPUs (to control CPU oversubscription)
1138
- the maximum ratio of instance to spindles (see below for more
1139
  information) for local storage
1140

    
1141
All these together should allow all tools that talk to Ganeti to know
1142
what are the ranges of allowed values for instances and the
1143
over-subscription that is allowed.
1144

    
1145
For the VCPU/PCPU ratio, we already have the VCPU configuration from the
1146
instance configuration, and the physical CPU configuration from the
1147
node. For the spindle ratios however, we didn't track before these
1148
values, so new parameters have been added:
1149

    
1150
- a new node parameter ``spindle_count``, defaults to 1, customisable at
1151
  node group or node level
1152
- at new backend parameter (for instances), ``spindle_use`` defaults to 1
1153

    
1154
Note that spindles in this context doesn't need to mean actual
1155
mechanical hard-drives; it's just a relative number for both the node
1156
I/O capacity and instance I/O consumption.
1157

    
1158
Instance migration behaviour
1159
++++++++++++++++++++++++++++
1160

    
1161
While live-migration is in general desirable over failover, it is
1162
possible that for some workloads it is actually worse, due to the
1163
variable time of the โ€œsuspendโ€ phase during live migration.
1164

    
1165
To allow the tools to work consistently over such instances (without
1166
having to hard-code instance names), a new backend parameter
1167
``always_failover`` has been added to control the migration/failover
1168
behaviour. When set to True, all migration requests for an instance will
1169
instead fall-back to failover.
1170

    
1171
Instance memory ballooning
1172
++++++++++++++++++++++++++
1173

    
1174
Initial support for memory ballooning has been added. The memory for an
1175
instance is no longer fixed (backend parameter ``memory``), but instead
1176
can vary between minimum and maximum values (backend parameters
1177
``minmem`` and ``maxmem``). Currently we only change an instance's
1178
memory when:
1179

    
1180
- live migrating or failing over and instance and the target node
1181
  doesn't have enough memory
1182
- user requests changing the memory via ``gnt-instance modify
1183
  --runtime-memory``
1184

    
1185
Instance CPU pinning
1186
++++++++++++++++++++
1187

    
1188
In order to control the use of specific CPUs by instance, support for
1189
controlling CPU pinning has been added for the Xen, HVM and LXC
1190
hypervisors. This is controlled by a new hypervisor parameter
1191
``cpu_mask``; details about possible values for this are in the
1192
:manpage:`gnt-instance(8)`. Note that use of the most specific (precise
1193
VCPU-to-CPU mapping) form will work well only when all nodes in your
1194
cluster have the same amount of CPUs.
1195

    
1196
Disk parameters
1197
+++++++++++++++
1198

    
1199
Another area in which Ganeti was not customisable were the parameters
1200
used for storage configuration, e.g. how many stripes to use for LVM,
1201
DRBD resync configuration, etc.
1202

    
1203
To improve this area, we've added disks parameters, which are
1204
customisable at cluster and node group level, and which allow to
1205
specify various parameters for disks (DRBD has the most parameters
1206
currently), for example:
1207

    
1208
- DRBD resync algorithm and parameters (e.g. speed)
1209
- the default VG for meta-data volumes for DRBD
1210
- number of stripes for LVM (plain disk template)
1211
- the RBD pool
1212

    
1213
These parameters can be modified via ``gnt-cluster modify -D โ€ฆ`` and
1214
``gnt-group modify -D โ€ฆ``, and are used at either instance creation (in
1215
case of LVM stripes, for example) or at disk โ€œactivationโ€ time
1216
(e.g. resync speed).
1217

    
1218
Rados block device support
1219
++++++++++++++++++++++++++
1220

    
1221
A Rados (http://ceph.com/wiki/Rbd) storage backend has been added,
1222
denoted by the ``rbd`` disk template type. This is considered
1223
experimental, feedback is welcome. For details on configuring it, see
1224
the :doc:`install` document and the :manpage:`gnt-cluster(8)` man page.
1225

    
1226
Master IP setup
1227
+++++++++++++++
1228

    
1229
The existing master IP functionality works well only in simple setups (a
1230
single network shared by all nodes); however, if nodes belong to
1231
different networks, then the ``/32`` setup and lack of routing
1232
information is not enough.
1233

    
1234
To allow the master IP to function well in more complex cases, the
1235
system was reworked as follows:
1236

    
1237
- a master IP netmask setting has been added
1238
- the master IP activation/turn-down code was moved from the node daemon
1239
  to a separate script
1240
- whether to run the Ganeti-supplied master IP script or a user-supplied
1241
  on is a ``gnt-cluster init`` setting
1242

    
1243
Details about the location of the standard and custom setup scripts are
1244
in the man page :manpage:`gnt-cluster(8)`; for information about the
1245
setup script protocol, look at the Ganeti-supplied script.
1246

    
1247
SPICE support
1248
+++++++++++++
1249

    
1250
The `SPICE <http://www.linux-kvm.org/page/SPICE>`_ support has been
1251
improved.
1252

    
1253
It is now possible to use TLS-protected connections, and when renewing
1254
or changing the cluster certificates (via ``gnt-cluster renew-crypto``,
1255
it is now possible to specify spice or spice CA certificates. Also, it
1256
is possible to configure a password for SPICE sessions via the
1257
hypervisor parameter ``spice_password_file``.
1258

    
1259
There are also new parameters to control the compression and streaming
1260
options (e.g. ``spice_image_compression``, ``spice_streaming_video``,
1261
etc.). For details, see the man page :manpage:`gnt-instance(8)` and look
1262
for the spice parameters.
1263

    
1264
Lastly, it is now possible to see the SPICE connection information via
1265
``gnt-instance console``.
1266

    
1267
OVF converter
1268
+++++++++++++
1269

    
1270
A new tool (``tools/ovfconverter``) has been added that supports
1271
conversion between Ganeti and the `Open Virtualization Format
1272
<http://en.wikipedia.org/wiki/Open_Virtualization_Format>`_ (both to and
1273
from).
1274

    
1275
This relies on the ``qemu-img`` tool to convert the disk formats, so the
1276
actual compatibility with other virtualization solutions depends on it.
1277

    
1278
Confd daemon changes
1279
++++++++++++++++++++
1280

    
1281
The configuration query daemon (``ganeti-confd``) is now optional, and
1282
has been rewritten in Haskell; whether to use the daemon at all, use the
1283
Python (default) or the Haskell version is selectable at configure time
1284
via the ``--enable-confd`` parameter, which can take one of the
1285
``haskell``, ``python`` or ``no`` values. If not used, disabling the
1286
daemon will result in a smaller footprint; for larger systems, we
1287
welcome feedback on the Haskell version which might become the default
1288
in future versions.
1289

    
1290
If you want to use ``gnt-node list-drbd`` you need to have the Haskell
1291
daemon running. The Python version doesn't implement the new call.
1292

    
1293

    
1294
User interface changes
1295
~~~~~~~~~~~~~~~~~~~~~~
1296

    
1297
We have replaced the ``--disks`` option of ``gnt-instance
1298
replace-disks`` with a more flexible ``--disk`` option, which allows
1299
adding and removing disks at arbitrary indices (Issue 188). Furthermore,
1300
disk size and mode can be changed upon recreation (via ``gnt-instance
1301
recreate-disks``, which accepts the same ``--disk`` option).
1302

    
1303
As many people are used to a ``show`` command, we have added that as an
1304
alias to ``info`` on all ``gnt-*`` commands.
1305

    
1306
The ``gnt-instance grow-disk`` command has a new mode in which it can
1307
accept the target size of the disk, instead of the delta; this can be
1308
more safe since two runs in absolute mode will be idempotent, and
1309
sometimes it's also easier to specify the desired size directly.
1310

    
1311
Also the handling of instances with regard to offline secondaries has
1312
been improved. Instance operations should not fail because one of it's
1313
secondary nodes is offline, even though it's safe to proceed.
1314

    
1315
A new command ``list-drbd`` has been added to the ``gnt-node`` script to
1316
support debugging of DRBD issues on nodes. It provides a mapping of DRBD
1317
minors to instance name.
1318

    
1319
API changes
1320
~~~~~~~~~~~
1321

    
1322
RAPI coverage has improved, with (for example) new resources for
1323
recreate-disks, node power-cycle, etc.
1324

    
1325
Compatibility
1326
~~~~~~~~~~~~~
1327

    
1328
There is partial support for ``xl`` in the Xen hypervisor; feedback is
1329
welcome.
1330

    
1331
Python 2.7 is better supported, and after Ganeti 2.6 we will investigate
1332
whether to still support Python 2.4 or move to Python 2.6 as minimum
1333
required version.
1334

    
1335
Support for Fedora has been slightly improved; the provided example
1336
init.d script should work better on it and the INSTALL file should
1337
document the needed dependencies.
1338

    
1339
Internal changes
1340
~~~~~~~~~~~~~~~~
1341

    
1342
The deprecated ``QueryLocks`` LUXI request has been removed. Use
1343
``Query(what=QR_LOCK, ...)`` instead.
1344

    
1345
The LUXI requests :pyeval:`luxi.REQ_QUERY_JOBS`,
1346
:pyeval:`luxi.REQ_QUERY_INSTANCES`, :pyeval:`luxi.REQ_QUERY_NODES`,
1347
:pyeval:`luxi.REQ_QUERY_GROUPS`, :pyeval:`luxi.REQ_QUERY_EXPORTS` and
1348
:pyeval:`luxi.REQ_QUERY_TAGS` are deprecated and will be removed in a
1349
future version. :pyeval:`luxi.REQ_QUERY` should be used instead.
1350

    
1351
RAPI client: ``CertificateError`` now derives from
1352
``GanetiApiError``. This should make it more easy to handle Ganeti
1353
errors.
1354

    
1355
Deprecation warnings due to PyCrypto/paramiko import in
1356
``tools/setup-ssh`` have been silenced, as usually they are safe; please
1357
make sure to run an up-to-date paramiko version, if you use this tool.
1358

    
1359
The QA scripts now depend on Python 2.5 or above (the main code base
1360
still works with Python 2.4).
1361

    
1362
The configuration file (``config.data``) is now written without
1363
indentation for performance reasons; if you want to edit it, it can be
1364
re-formatted via ``tools/fmtjson``.
1365

    
1366
A number of bugs has been fixed in the cluster merge tool.
1367

    
1368
``x509`` certification verification (used in import-export) has been
1369
changed to allow the same clock skew as permitted by the cluster
1370
verification. This will remove some rare but hard to diagnose errors in
1371
import-export.
1372

    
1373

    
1374
Version 2.6.0 rc4
1375
-----------------
1376

    
1377
*(Released Thu, 19 Jul 2012)*
1378

    
1379
Very few changes from rc4 to the final release, only bugfixes:
1380

    
1381
- integrated fixes from release 2.5.2 (fix general boot flag for KVM
1382
  instance, fix CDROM booting for KVM instances)
1383
- fixed node group modification of node parameters
1384
- fixed issue in LUClusterVerifyGroup with multi-group clusters
1385
- fixed generation of bash completion to ensure a stable ordering
1386
- fixed a few typos
1387

    
1388

    
1389
Version 2.6.0 rc3
1390
-----------------
1391

    
1392
*(Released Fri, 13 Jul 2012)*
1393

    
1394
Third release candidate for 2.6. The following changes were done from
1395
rc3 to rc4:
1396

    
1397
- Fixed ``UpgradeConfig`` w.r.t. to disk parameters on disk objects.
1398
- Fixed an inconsistency in the LUXI protocol with the provided
1399
  arguments (NOT backwards compatible)
1400
- Fixed a bug with node groups ipolicy where ``min`` was greater than
1401
  the cluster ``std`` value
1402
- Implemented a new ``gnt-node list-drbd`` call to list DRBD minors for
1403
  easier instance debugging on nodes (requires ``hconfd`` to work)
1404

    
1405

    
1406
Version 2.6.0 rc2
1407
-----------------
1408

    
1409
*(Released Tue, 03 Jul 2012)*
1410

    
1411
Second release candidate for 2.6. The following changes were done from
1412
rc2 to rc3:
1413

    
1414
- Fixed ``gnt-cluster verify`` regarding ``master-ip-script`` on non
1415
  master candidates
1416
- Fixed a RAPI regression on missing beparams/memory
1417
- Fixed redistribution of files on offline nodes
1418
- Added possibility to run activate-disks even though secondaries are
1419
  offline. With this change it relaxes also the strictness on some other
1420
  commands which use activate disks internally:
1421
  * ``gnt-instance start|reboot|rename|backup|export``
1422
- Made it possible to remove safely an instance if its secondaries are
1423
  offline
1424
- Made it possible to reinstall even though secondaries are offline
1425

    
1426

    
1427
Version 2.6.0 rc1
1428
-----------------
1429

    
1430
*(Released Mon, 25 Jun 2012)*
1431

    
1432
First release candidate for 2.6. The following changes were done from
1433
rc1 to rc2:
1434

    
1435
- Fixed bugs with disk parameters and ``rbd`` templates as well as
1436
  ``instance_os_add``
1437
- Made ``gnt-instance modify`` more consistent regarding new NIC/Disk
1438
  behaviour. It supports now the modify operation
1439
- ``hcheck`` implemented to analyze cluster health and possibility of
1440
  improving health by rebalance
1441
- ``hbal`` has been improved in dealing with split instances
1442

    
1443

    
1444
Version 2.6.0 beta2
1445
-------------------
1446

    
1447
*(Released Mon, 11 Jun 2012)*
1448

    
1449
Second beta release of 2.6. The following changes were done from beta2
1450
to rc1:
1451

    
1452
- Fixed ``daemon-util`` with non-root user models
1453
- Fixed creation of plain instances with ``--no-wait-for-sync``
1454
- Fix wrong iv_names when running ``cfgupgrade``
1455
- Export more information in RAPI group queries
1456
- Fixed bug when changing instance network interfaces
1457
- Extended burnin to do NIC changes
1458
- query: Added ``<``, ``>``, ``<=``, ``>=`` comparison operators
1459
- Changed default for DRBD barriers
1460
- Fixed DRBD error reporting for syncer rate
1461
- Verify the options on disk parameters
1462

    
1463
And of course various fixes to documentation and improved unittests and
1464
QA.
1465

    
1466

    
1467
Version 2.6.0 beta1
1468
-------------------
1469

    
1470
*(Released Wed, 23 May 2012)*
1471

    
1472
First beta release of 2.6. The following changes were done from beta1 to
1473
beta2:
1474

    
1475
- integrated patch for distributions without ``start-stop-daemon``
1476
- adapted example init.d script to work on Fedora
1477
- fixed log handling in Haskell daemons
1478
- adapted checks in the watcher for pycurl linked against libnss
1479
- add partial support for ``xl`` instead of ``xm`` for Xen
1480
- fixed a type issue in cluster verification
1481
- fixed ssconf handling in the Haskell code (was breaking confd in IPv6
1482
  clusters)
1483

    
1484
Plus integrated fixes from the 2.5 branch:
1485

    
1486
- fixed ``kvm-ifup`` to use ``/bin/bash``
1487
- fixed parallel build failures
1488
- KVM live migration when using a custom keymap
1489

    
1490

    
1491
Version 2.5.2
1492
-------------
1493

    
1494
*(Released Tue, 24 Jul 2012)*
1495

    
1496
A small bugfix release, with no new features:
1497

    
1498
- fixed bash-isms in kvm-ifup, for compatibility with systems which use a
1499
  different default shell (e.g. Debian, Ubuntu)
1500
- fixed KVM startup and live migration with a custom keymap (fixes Issue
1501
  243 and Debian bug #650664)
1502
- fixed compatibility with KVM versions that don't support multiple boot
1503
  devices (fixes Issue 230 and Debian bug #624256)
1504

    
1505
Additionally, a few fixes were done to the build system (fixed parallel
1506
build failures) and to the unittests (fixed race condition in test for
1507
FileID functions, and the default enable/disable mode for QA test is now
1508
customisable).
1509

    
1510

    
1511
Version 2.5.1
1512
-------------
1513

    
1514
*(Released Fri, 11 May 2012)*
1515

    
1516
A small bugfix release.
1517

    
1518
The main issues solved are on the topic of compatibility with newer LVM
1519
releases:
1520

    
1521
- fixed parsing of ``lv_attr`` field
1522
- adapted to new ``vgreduce --removemissing`` behaviour where sometimes
1523
  the ``--force`` flag is needed
1524

    
1525
Also on the topic of compatibility, ``tools/lvmstrap`` has been changed
1526
to accept kernel 3.x too (was hardcoded to 2.6.*).
1527

    
1528
A regression present in 2.5.0 that broke handling (in the gnt-* scripts)
1529
of hook results and that also made display of other errors suboptimal
1530
was fixed; the code behaves now like 2.4 and earlier.
1531

    
1532
Another change in 2.5, the cleanup of the OS scripts environment, is too
1533
aggressive: it removed even the ``PATH`` variable, which requires the OS
1534
scripts to *always* need to export it. Since this is a bit too strict,
1535
we now export a minimal PATH, the same that we export for hooks.
1536

    
1537
The fix for issue 201 (Preserve bridge MTU in KVM ifup script) was
1538
integrated into this release.
1539

    
1540
Finally, a few other miscellaneous changes were done (no new features,
1541
just small improvements):
1542

    
1543
- Fix ``gnt-group --help`` display
1544
- Fix hardcoded Xen kernel path
1545
- Fix grow-disk handling of invalid units
1546
- Update synopsis for ``gnt-cluster repair-disk-sizes``
1547
- Accept both PUT and POST in noded (makes future upgrade to 2.6 easier)
1548

    
1549

    
1550
Version 2.5.0
1551
-------------
1552

    
1553
*(Released Thu, 12 Apr 2012)*
1554

    
1555
Incompatible/important changes and bugfixes
1556
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1557

    
1558
- The default of the ``/2/instances/[instance_name]/rename`` RAPI
1559
  resource's ``ip_check`` parameter changed from ``True`` to ``False``
1560
  to match the underlying LUXI interface.
1561
- The ``/2/nodes/[node_name]/evacuate`` RAPI resource was changed to use
1562
  body parameters, see :doc:`RAPI documentation <rapi>`. The server does
1563
  not maintain backwards-compatibility as the underlying operation
1564
  changed in an incompatible way. The RAPI client can talk to old
1565
  servers, but it needs to be told so as the return value changed.
1566
- When creating file-based instances via RAPI, the ``file_driver``
1567
  parameter no longer defaults to ``loop`` and must be specified.
1568
- The deprecated ``bridge`` NIC parameter is no longer supported. Use
1569
  ``link`` instead.
1570
- Support for the undocumented and deprecated RAPI instance creation
1571
  request format version 0 has been dropped. Use version 1, supported
1572
  since Ganeti 2.1.3 and :doc:`documented <rapi>`, instead.
1573
- Pyparsing 1.4.6 or above is required, see :doc:`installation
1574
  documentation <install>`.
1575
- The "cluster-verify" hooks are now executed per group by the
1576
  ``OP_CLUSTER_VERIFY_GROUP`` opcode. This maintains the same behavior
1577
  if you just run ``gnt-cluster verify``, which generates one opcode per
1578
  group.
1579
- The environment as passed to the OS scripts is cleared, and thus no
1580
  environment variables defined in the node daemon's environment will be
1581
  inherited by the scripts.
1582
- The :doc:`iallocator <iallocator>` mode ``multi-evacuate`` has been
1583
  deprecated.
1584
- :doc:`New iallocator modes <design-multi-reloc>` have been added to
1585
  support operations involving multiple node groups.
1586
- Offline nodes are ignored when failing over an instance.
1587
- Support for KVM version 1.0, which changed the version reporting format
1588
  from 3 to 2 digits.
1589
- TCP/IP ports used by DRBD disks are returned to a pool upon instance
1590
  removal.
1591
- ``Makefile`` is now compatible with Automake 1.11.2
1592
- Includes all bugfixes made in the 2.4 series
1593

    
1594
New features
1595
~~~~~~~~~~~~
1596

    
1597
- The ganeti-htools project has been merged into the ganeti-core source
1598
  tree and will be built as part of Ganeti (see :doc:`install-quick`).
1599
- Implemented support for :doc:`shared storage <design-shared-storage>`.
1600
- Add support for disks larger than 2 TB in ``lvmstrap`` by supporting
1601
  GPT-style partition tables (requires `parted
1602
  <http://www.gnu.org/s/parted/>`_).
1603
- Added support for floppy drive and 2nd CD-ROM drive in KVM hypervisor.
1604
- Allowed adding tags on instance creation.
1605
- Export instance tags to hooks (``INSTANCE_TAGS``, see :doc:`hooks`)
1606
- Allow instances to be started in a paused state, enabling the user to
1607
  see the complete console output on boot using the console.
1608
- Added new hypervisor flag to control default reboot behaviour
1609
  (``reboot_behavior``).
1610
- Added support for KVM keymaps (hypervisor parameter ``keymap``).
1611
- Improved out-of-band management support:
1612

    
1613
  - Added ``gnt-node health`` command reporting the health status of
1614
    nodes.
1615
  - Added ``gnt-node power`` command to manage power status of nodes.
1616
  - Added command for emergency power-off (EPO), ``gnt-cluster epo``.
1617

    
1618
- Instance migration can fall back to failover if instance is not
1619
  running.
1620
- Filters can be used when listing nodes, instances, groups and locks;
1621
  see :manpage:`ganeti(7)` manpage.
1622
- Added post-execution status as variables to :doc:`hooks <hooks>`
1623
  environment.
1624
- Instance tags are exported/imported together with the instance.
1625
- When given an explicit job ID, ``gnt-job info`` will work for archived
1626
  jobs.
1627
- Jobs can define dependencies on other jobs (not yet supported via
1628
  RAPI or command line, but used by internal commands and usable via
1629
  LUXI).
1630

    
1631
  - Lock monitor (``gnt-debug locks``) shows jobs waiting for
1632
    dependencies.
1633

    
1634
- Instance failover is now available as a RAPI resource
1635
  (``/2/instances/[instance_name]/failover``).
1636
- ``gnt-instance info`` defaults to static information if primary node
1637
  is offline.
1638
- Opcodes have a new ``comment`` attribute.
1639
- Added basic SPICE support to KVM hypervisor.
1640
- ``tools/ganeti-listrunner`` allows passing of arguments to executable.
1641

    
1642
Node group improvements
1643
~~~~~~~~~~~~~~~~~~~~~~~
1644

    
1645
- ``gnt-cluster verify`` has been modified to check groups separately,
1646
  thereby improving performance.
1647
- Node group support has been added to ``gnt-cluster verify-disks``,
1648
  which now operates per node group.
1649
- Watcher has been changed to work better with node groups.
1650

    
1651
  - One process and state file per node group.
1652
  - Slow watcher in one group doesn't block other group's watcher.
1653

    
1654
- Added new command, ``gnt-group evacuate``, to move all instances in a
1655
  node group to other groups.
1656
- Added ``gnt-instance change-group`` to move an instance to another
1657
  node group.
1658
- ``gnt-cluster command`` and ``gnt-cluster copyfile`` now support
1659
  per-group operations.
1660
- Node groups can be tagged.
1661
- Some operations switch from an exclusive to a shared lock as soon as
1662
  possible.
1663
- Instance's primary and secondary nodes' groups are now available as
1664
  query fields (``pnode.group``, ``pnode.group.uuid``, ``snodes.group``
1665
  and ``snodes.group.uuid``).
1666

    
1667
Misc
1668
~~~~
1669

    
1670
- Numerous updates to documentation and manpages.
1671

    
1672
  - :doc:`RAPI <rapi>` documentation now has detailed parameter
1673
    descriptions.
1674
  - Some opcode/job results are now also documented, see :doc:`RAPI
1675
    <rapi>`.
1676

    
1677
- A lockset's internal lock is now also visible in lock monitor.
1678
- Log messages from job queue workers now contain information about the
1679
  opcode they're processing.
1680
- ``gnt-instance console`` no longer requires the instance lock.
1681
- A short delay when waiting for job changes reduces the number of LUXI
1682
  requests significantly.
1683
- DRBD metadata volumes are overwritten with zeros during disk creation.
1684
- Out-of-band commands no longer acquire the cluster lock in exclusive
1685
  mode.
1686
- ``devel/upload`` now uses correct permissions for directories.
1687

    
1688

    
1689
Version 2.5.0 rc6
1690
-----------------
1691

    
1692
*(Released Fri, 23 Mar 2012)*
1693

    
1694
This was the sixth release candidate of the 2.5 series.
1695

    
1696

    
1697
Version 2.5.0 rc5
1698
-----------------
1699

    
1700
*(Released Mon, 9 Jan 2012)*
1701

    
1702
This was the fifth release candidate of the 2.5 series.
1703

    
1704

    
1705
Version 2.5.0 rc4
1706
-----------------
1707

    
1708
*(Released Thu, 27 Oct 2011)*
1709

    
1710
This was the fourth release candidate of the 2.5 series.
1711

    
1712

    
1713
Version 2.5.0 rc3
1714
-----------------
1715

    
1716
*(Released Wed, 26 Oct 2011)*
1717

    
1718
This was the third release candidate of the 2.5 series.
1719

    
1720

    
1721
Version 2.5.0 rc2
1722
-----------------
1723

    
1724
*(Released Tue, 18 Oct 2011)*
1725

    
1726
This was the second release candidate of the 2.5 series.
1727

    
1728

    
1729
Version 2.5.0 rc1
1730
-----------------
1731

    
1732
*(Released Tue, 4 Oct 2011)*
1733

    
1734
This was the first release candidate of the 2.5 series.
1735

    
1736

    
1737
Version 2.5.0 beta3
1738
-------------------
1739

    
1740
*(Released Wed, 31 Aug 2011)*
1741

    
1742
This was the third beta release of the 2.5 series.
1743

    
1744

    
1745
Version 2.5.0 beta2
1746
-------------------
1747

    
1748
*(Released Mon, 22 Aug 2011)*
1749

    
1750
This was the second beta release of the 2.5 series.
1751

    
1752

    
1753
Version 2.5.0 beta1
1754
-------------------
1755

    
1756
*(Released Fri, 12 Aug 2011)*
1757

    
1758
This was the first beta release of the 2.5 series.
1759

    
1760

    
1761
Version 2.4.5
1762
-------------
1763

    
1764
*(Released Thu, 27 Oct 2011)*
1765

    
1766
- Fixed bug when parsing command line parameter values ending in
1767
  backslash
1768
- Fixed assertion error after unclean master shutdown
1769
- Disable HTTP client pool for RPC, significantly reducing memory usage
1770
  of master daemon
1771
- Fixed queue archive creation with wrong permissions
1772

    
1773

    
1774
Version 2.4.4
1775
-------------
1776

    
1777
*(Released Tue, 23 Aug 2011)*
1778

    
1779
Small bug-fixes:
1780

    
1781
- Fixed documentation for importing with ``--src-dir`` option
1782
- Fixed a bug in ``ensure-dirs`` with queue/archive permissions
1783
- Fixed a parsing issue with DRBD 8.3.11 in the Linux kernel
1784

    
1785

    
1786
Version 2.4.3
1787
-------------
1788

    
1789
*(Released Fri, 5 Aug 2011)*
1790

    
1791
Many bug-fixes and a few small features:
1792

    
1793
- Fixed argument order in ``ReserveLV`` and ``ReserveMAC`` which caused
1794
  issues when you tried to add an instance with two MAC addresses in one
1795
  request
1796
- KVM: fixed per-instance stored UID value
1797
- KVM: configure bridged NICs at migration start
1798
- KVM: Fix a bug where instance will not start with never KVM versions
1799
  (>= 0.14)
1800
- Added OS search path to ``gnt-cluster info``
1801
- Fixed an issue with ``file_storage_dir`` where you were forced to
1802
  provide an absolute path, but the documentation states it is a
1803
  relative path, the documentation was right
1804
- Added a new parameter to instance stop/start called ``--no-remember``
1805
  that will make the state change to not be remembered
1806
- Implemented ``no_remember`` at RAPI level
1807
- Improved the documentation
1808
- Node evacuation: don't call IAllocator if node is already empty
1809
- Fixed bug in DRBD8 replace disks on current nodes
1810
- Fixed bug in recreate-disks for DRBD instances
1811
- Moved assertion checking locks in ``gnt-instance replace-disks``
1812
  causing it to abort with not owning the right locks for some situation
1813
- Job queue: Fixed potential race condition when cancelling queued jobs
1814
- Fixed off-by-one bug in job serial generation
1815
- ``gnt-node volumes``: Fix instance names
1816
- Fixed aliases in bash completion
1817
- Fixed a bug in reopening log files after being sent a SIGHUP
1818
- Added a flag to burnin to allow specifying VCPU count
1819
- Bugfixes to non-root Ganeti configuration
1820

    
1821

    
1822
Version 2.4.2
1823
-------------
1824

    
1825
*(Released Thu, 12 May 2011)*
1826

    
1827
Many bug-fixes and a few new small features:
1828

    
1829
- Fixed a bug related to log opening failures
1830
- Fixed a bug in instance listing with orphan instances
1831
- Fixed a bug which prevented resetting the cluster-level node parameter
1832
  ``oob_program`` to the default
1833
- Many fixes related to the ``cluster-merge`` tool
1834
- Fixed a race condition in the lock monitor, which caused failures
1835
  during (at least) creation of many instances in parallel
1836
- Improved output for gnt-job info
1837
- Removed the quiet flag on some ssh calls which prevented debugging
1838
  failures
1839
- Improved the N+1 failure messages in cluster verify by actually
1840
  showing the memory values (needed and available)
1841
- Increased lock attempt timeouts so that when executing long operations
1842
  (e.g. DRBD replace-disks) other jobs do not enter 'blocking acquire'
1843
  too early and thus prevent the use of the 'fair' mechanism
1844
- Changed instance query data (``gnt-instance info``) to not acquire
1845
  locks unless needed, thus allowing its use on locked instance if only
1846
  static information is asked for
1847
- Improved behaviour with filesystems that do not support rename on an
1848
  opened file
1849
- Fixed the behaviour of ``prealloc_wipe_disks`` cluster parameter which
1850
  kept locks on all nodes during the wipe, which is unneeded
1851
- Fixed ``gnt-watcher`` handling of errors during hooks execution
1852
- Fixed bug in ``prealloc_wipe_disks`` with small disk sizes (less than
1853
  10GiB) which caused the wipe to fail right at the end in some cases
1854
- Fixed master IP activation when doing master failover with no-voting
1855
- Fixed bug in ``gnt-node add --readd`` which allowed the re-adding of
1856
  the master node itself
1857
- Fixed potential data-loss in under disk full conditions, where Ganeti
1858
  wouldn't check correctly the return code and would consider
1859
  partially-written files 'correct'
1860
- Fixed bug related to multiple VGs and DRBD disk replacing
1861
- Added new disk parameter ``metavg`` that allows placement of the meta
1862
  device for DRBD in a different volume group
1863
- Fixed error handling in the node daemon when the system libc doesn't
1864
  have major number 6 (i.e. if ``libc.so.6`` is not the actual libc)
1865
- Fixed lock release during replace-disks, which kept cluster-wide locks
1866
  when doing disk replaces with an iallocator script
1867
- Added check for missing bridges in cluster verify
1868
- Handle EPIPE errors while writing to the terminal better, so that
1869
  piping the output to e.g. ``less`` doesn't cause a backtrace
1870
- Fixed rare case where a ^C during Luxi calls could have been
1871
  interpreted as server errors, instead of simply terminating
1872
- Fixed a race condition in LUGroupAssignNodes (``gnt-group
1873
  assign-nodes``)
1874
- Added a few more parameters to the KVM hypervisor, allowing a second
1875
  CDROM, custom disk type for CDROMs and a floppy image
1876
- Removed redundant message in instance rename when the name is given
1877
  already as a FQDN
1878
- Added option to ``gnt-instance recreate-disks`` to allow creating the
1879
  disks on new nodes, allowing recreation when the original instance
1880
  nodes are completely gone
1881
- Added option when converting disk templates to DRBD to skip waiting
1882
  for the resync, in order to make the instance available sooner
1883
- Added two new variables to the OS scripts environment (containing the
1884
  instance's nodes)
1885
- Made the root_path and optional parameter for the xen-pvm hypervisor,
1886
  to allow use of ``pvgrub`` as bootloader
1887
- Changed the instance memory modifications to only check out-of-memory
1888
  conditions on memory increases, and turned the secondary node warnings
1889
  into errors (they can still be overridden via ``--force``)
1890
- Fixed the handling of a corner case when the Python installation gets
1891
  corrupted (e.g. a bad disk) while ganeti-noded is running and we try
1892
  to execute a command that doesn't exist
1893
- Fixed a bug in ``gnt-instance move`` (LUInstanceMove) when the primary
1894
  node of the instance returned failures during instance shutdown; this
1895
  adds the option ``--ignore-consistency`` to gnt-instance move
1896

    
1897
And as usual, various improvements to the error messages, documentation
1898
and man pages.
1899

    
1900

    
1901
Version 2.4.1
1902
-------------
1903

    
1904
*(Released Wed, 09 Mar 2011)*
1905

    
1906
Emergency bug-fix release. ``tools/cfgupgrade`` was broken and overwrote
1907
the RAPI users file if run twice (even with ``--dry-run``).
1908

    
1909
The release fixes that bug (nothing else changed).
1910

    
1911

    
1912
Version 2.4.0
1913
-------------
1914

    
1915
*(Released Mon, 07 Mar 2011)*
1916

    
1917
Final 2.4.0 release. Just a few small fixes:
1918

    
1919
- Fixed RAPI node evacuate
1920
- Fixed the kvm-ifup script
1921
- Fixed internal error handling for special job cases
1922
- Updated man page to specify the escaping feature for options
1923

    
1924

    
1925
Version 2.4.0 rc3
1926
-----------------
1927

    
1928
*(Released Mon, 28 Feb 2011)*
1929

    
1930
A critical fix for the ``prealloc_wipe_disks`` feature: it is possible
1931
that this feature wiped the disks of the wrong instance, leading to loss
1932
of data.
1933

    
1934
Other changes:
1935

    
1936
- Fixed title of query field containing instance name
1937
- Expanded the glossary in the documentation
1938
- Fixed one unittest (internal issue)
1939

    
1940

    
1941
Version 2.4.0 rc2
1942
-----------------
1943

    
1944
*(Released Mon, 21 Feb 2011)*
1945

    
1946
A number of bug fixes plus just a couple functionality changes.
1947

    
1948
On the user-visible side, the ``gnt-* list`` command output has changed
1949
with respect to "special" field states. The current rc1 style of display
1950
can be re-enabled by passing a new ``--verbose`` (``-v``) flag, but in
1951
the default output mode special fields states are displayed as follows:
1952

    
1953
- Offline resource: ``*``
1954
- Unavailable/not applicable: ``-``
1955
- Data missing (RPC failure): ``?``
1956
- Unknown field: ``??``
1957

    
1958
Another user-visible change is the addition of ``--force-join`` to
1959
``gnt-node add``.
1960

    
1961
As for bug fixes:
1962

    
1963
- ``tools/cluster-merge`` has seen many fixes and is now enabled again
1964
- Fixed regression in RAPI/instance reinstall where all parameters were
1965
  required (instead of optional)
1966
- Fixed ``gnt-cluster repair-disk-sizes``, was broken since Ganeti 2.2
1967
- Fixed iallocator usage (offline nodes were not considered offline)
1968
- Fixed ``gnt-node list`` with respect to non-vm_capable nodes
1969
- Fixed hypervisor and OS parameter validation with respect to
1970
  non-vm_capable nodes
1971
- Fixed ``gnt-cluster verify`` with respect to offline nodes (mostly
1972
  cosmetic)
1973
- Fixed ``tools/listrunner`` with respect to agent-based usage
1974

    
1975

    
1976
Version 2.4.0 rc1
1977
-----------------
1978

    
1979
*(Released Fri,  4 Feb 2011)*
1980

    
1981
Many changes and fixes since the beta1 release. While there were some
1982
internal changes, the code has been mostly stabilised for the RC
1983
release.
1984

    
1985
Note: the dumb allocator was removed in this release, as it was not kept
1986
up-to-date with the IAllocator protocol changes. It is recommended to
1987
use the ``hail`` command from the ganeti-htools package.
1988

    
1989
Note: the 2.4 and up versions of Ganeti are not compatible with the
1990
0.2.x branch of ganeti-htools. You need to upgrade to
1991
ganeti-htools-0.3.0 (or later).
1992

    
1993
Regressions fixed from 2.3
1994
~~~~~~~~~~~~~~~~~~~~~~~~~~
1995

    
1996
- Fixed the ``gnt-cluster verify-disks`` command
1997
- Made ``gnt-cluster verify-disks`` work in parallel (as opposed to
1998
  serially on nodes)
1999
- Fixed disk adoption breakage
2000
- Fixed wrong headers in instance listing for field aliases
2001

    
2002
Other bugs fixed
2003
~~~~~~~~~~~~~~~~
2004

    
2005
- Fixed corner case in KVM handling of NICs
2006
- Fixed many cases of wrong handling of non-vm_capable nodes
2007
- Fixed a bug where a missing instance symlink was not possible to
2008
  recreate with any ``gnt-*`` command (now ``gnt-instance
2009
  activate-disks`` does it)
2010
- Fixed the volume group name as reported by ``gnt-cluster
2011
  verify-disks``
2012
- Increased timeouts for the import-export code, hopefully leading to
2013
  fewer aborts due network or instance timeouts
2014
- Fixed bug in ``gnt-node list-storage``
2015
- Fixed bug where not all daemons were started on cluster
2016
  initialisation, but only at the first watcher run
2017
- Fixed many bugs in the OOB implementation
2018
- Fixed watcher behaviour in presence of instances with offline
2019
  secondaries
2020
- Fixed instance list output for instances running on the wrong node
2021
- a few fixes to the cluster-merge tool, but it still cannot merge
2022
  multi-node groups (currently it is not recommended to use this tool)
2023

    
2024

    
2025
Improvements
2026
~~~~~~~~~~~~
2027

    
2028
- Improved network configuration for the KVM hypervisor
2029
- Added e1000 as a supported NIC for Xen-HVM
2030
- Improved the lvmstrap tool to also be able to use partitions, as
2031
  opposed to full disks
2032
- Improved speed of disk wiping (the cluster parameter
2033
  ``prealloc_wipe_disks``, so that it has a low impact on the total time
2034
  of instance creations
2035
- Added documentation for the OS parameters
2036
- Changed ``gnt-instance deactivate-disks`` so that it can work if the
2037
  hypervisor is not responding
2038
- Added display of blacklisted and hidden OS information in
2039
  ``gnt-cluster info``
2040
- Extended ``gnt-cluster verify`` to also validate hypervisor, backend,
2041
  NIC and node parameters, which might create problems with currently
2042
  invalid (but undetected) configuration files, but prevents validation
2043
  failures when unrelated parameters are modified
2044
- Changed cluster initialisation to wait for the master daemon to become
2045
  available
2046
- Expanded the RAPI interface:
2047

    
2048
  - Added config redistribution resource
2049
  - Added activation/deactivation of instance disks
2050
  - Added export of console information
2051

    
2052
- Implemented log file reopening on SIGHUP, which allows using
2053
  logrotate(8) for the Ganeti log files
2054
- Added a basic OOB helper script as an example
2055

    
2056

    
2057
Version 2.4.0 beta1
2058
-------------------
2059

    
2060
*(Released Fri, 14 Jan 2011)*
2061

    
2062
User-visible
2063
~~~~~~~~~~~~
2064

    
2065
- Fixed timezone issues when formatting timestamps
2066
- Added support for node groups, available via ``gnt-group`` and other
2067
  commands
2068
- Added out-of-band framework and management, see :doc:`design
2069
  document <design-oob>`
2070
- Removed support for roman numbers from ``gnt-node list`` and
2071
  ``gnt-instance list``.
2072
- Allowed modification of master network interface via ``gnt-cluster
2073
  modify --master-netdev``
2074
- Accept offline secondaries while shutting down instance disks
2075
- Added ``blockdev_prefix`` parameter to Xen PVM and HVM hypervisors
2076
- Added support for multiple LVM volume groups
2077
- Avoid sorting nodes for ``gnt-node list`` if specific nodes are
2078
  requested
2079
- Added commands to list available fields:
2080

    
2081
  - ``gnt-node list-fields``
2082
  - ``gnt-group list-fields``
2083
  - ``gnt-instance list-fields``
2084

    
2085
- Updated documentation and man pages
2086

    
2087
Integration
2088
~~~~~~~~~~~
2089

    
2090
- Moved ``rapi_users`` file into separate directory, now named
2091
  ``.../ganeti/rapi/users``, ``cfgupgrade`` moves the file and creates a
2092
  symlink
2093
- Added new tool for running commands on many machines,
2094
  ``tools/ganeti-listrunner``
2095
- Implemented more verbose result in ``OpInstanceConsole`` opcode, also
2096
  improving the ``gnt-instance console`` output
2097
- Allowed customisation of disk index separator at ``configure`` time
2098
- Export node group allocation policy to :doc:`iallocator <iallocator>`
2099
- Added support for non-partitioned md disks in ``lvmstrap``
2100
- Added script to gracefully power off KVM instances
2101
- Split ``utils`` module into smaller parts
2102
- Changed query operations to return more detailed information, e.g.
2103
  whether an information is unavailable due to an offline node. To use
2104
  this new functionality, the LUXI call ``Query`` must be used. Field
2105
  information is now stored by the master daemon and can be retrieved
2106
  using ``QueryFields``. Instances, nodes and groups can also be queried
2107
  using the new opcodes ``OpQuery`` and ``OpQueryFields`` (not yet
2108
  exposed via RAPI). The following commands make use of this
2109
  infrastructure change:
2110

    
2111
  - ``gnt-group list``
2112
  - ``gnt-group list-fields``
2113
  - ``gnt-node list``
2114
  - ``gnt-node list-fields``
2115
  - ``gnt-instance list``
2116
  - ``gnt-instance list-fields``
2117
  - ``gnt-debug locks``
2118

    
2119
Remote API
2120
~~~~~~~~~~
2121

    
2122
- New RAPI resources (see :doc:`rapi`):
2123

    
2124
  - ``/2/modify``
2125
  - ``/2/groups``
2126
  - ``/2/groups/[group_name]``
2127
  - ``/2/groups/[group_name]/assign-nodes``
2128
  - ``/2/groups/[group_name]/modify``
2129
  - ``/2/groups/[group_name]/rename``
2130
  - ``/2/instances/[instance_name]/disk/[disk_index]/grow``
2131

    
2132
- RAPI changes:
2133

    
2134
  - Implemented ``no_install`` for instance creation
2135
  - Implemented OS parameters for instance reinstallation, allowing
2136
    use of special settings on reinstallation (e.g. for preserving data)
2137

    
2138
Misc
2139
~~~~
2140

    
2141
- Added IPv6 support in import/export
2142
- Pause DRBD synchronization while wiping disks on instance creation
2143
- Updated unittests and QA scripts
2144
- Improved network parameters passed to KVM
2145
- Converted man pages from docbook to reStructuredText
2146

    
2147

    
2148
Version 2.3.1
2149
-------------
2150

    
2151
*(Released Mon, 20 Dec 2010)*
2152

    
2153
Released version 2.3.1~rc1 without any changes.
2154

    
2155

    
2156
Version 2.3.1 rc1
2157
-----------------
2158

    
2159
*(Released Wed, 1 Dec 2010)*
2160

    
2161
- impexpd: Disable OpenSSL compression in socat if possible (backport
2162
  from master, commit e90739d625b, see :doc:`installation guide
2163
  <install-quick>` for details)
2164
- Changed unittest coverage report to exclude test scripts
2165
- Added script to check version format
2166

    
2167

    
2168
Version 2.3.0
2169
-------------
2170

    
2171
*(Released Wed, 1 Dec 2010)*
2172

    
2173
Released version 2.3.0~rc1 without any changes.
2174

    
2175

    
2176
Version 2.3.0 rc1
2177
-----------------
2178

    
2179
*(Released Fri, 19 Nov 2010)*
2180

    
2181
A number of bugfixes and documentation updates:
2182

    
2183
- Update ganeti-os-interface documentation
2184
- Fixed a bug related to duplicate MACs or similar items which should be
2185
  unique
2186
- Fix breakage in OS state modify
2187
- Reinstall instance: disallow offline secondaries (fixes bug related to
2188
  OS changing but reinstall failing)
2189
- plus all the other fixes between 2.2.1 and 2.2.2
2190

    
2191

    
2192
Version 2.3.0 rc0
2193
-----------------
2194

    
2195
*(Released Tue, 2 Nov 2010)*
2196

    
2197
- Fixed clearing of the default iallocator using ``gnt-cluster modify``
2198
- Fixed master failover race with watcher
2199
- Fixed a bug in ``gnt-node modify`` which could lead to an inconsistent
2200
  configuration
2201
- Accept previously stopped instance for export with instance removal
2202
- Simplify and extend the environment variables for instance OS scripts
2203
- Added new node flags, ``master_capable`` and ``vm_capable``
2204
- Added optional instance disk wiping prior during allocation. This is a
2205
  cluster-wide option and can be set/modified using
2206
  ``gnt-cluster {init,modify} --prealloc-wipe-disks``.
2207
- Added IPv6 support, see :doc:`design document <design-2.3>` and
2208
  :doc:`install-quick`
2209
- Added a new watcher option (``--ignore-pause``)
2210
- Added option to ignore offline node on instance start/stop
2211
  (``--ignore-offline``)
2212
- Allow overriding OS parameters with ``gnt-instance reinstall``
2213
- Added ability to change node's secondary IP address using ``gnt-node
2214
  modify``
2215
- Implemented privilege separation for all daemons except
2216
  ``ganeti-noded``, see ``configure`` options
2217
- Complain if an instance's disk is marked faulty in ``gnt-cluster
2218
  verify``
2219
- Implemented job priorities (see ``ganeti(7)`` manpage)
2220
- Ignore failures while shutting down instances during failover from
2221
  offline node
2222
- Exit daemon's bootstrap process only once daemon is ready
2223
- Export more information via ``LUInstanceQuery``/remote API
2224
- Improved documentation, QA and unittests
2225
- RAPI daemon now watches ``rapi_users`` all the time and doesn't need a
2226
  restart if the file was created or changed
2227
- Added LUXI protocol version sent with each request and response,
2228
  allowing detection of server/client mismatches
2229
- Moved the Python scripts among gnt-* and ganeti-* into modules
2230
- Moved all code related to setting up SSH to an external script,
2231
  ``setup-ssh``
2232
- Infrastructure changes for node group support in future versions
2233

    
2234

    
2235
Version 2.2.2
2236
-------------
2237

    
2238
*(Released Fri, 19 Nov 2010)*
2239

    
2240
A few small bugs fixed, and some improvements to the build system:
2241

    
2242
- Fix documentation regarding conversion to drbd
2243
- Fix validation of parameters in cluster modify (``gnt-cluster modify
2244
  -B``)
2245
- Fix error handling in node modify with multiple changes
2246
- Allow remote imports without checked names
2247

    
2248

    
2249
Version 2.2.1
2250
-------------
2251

    
2252
*(Released Tue, 19 Oct 2010)*
2253

    
2254
- Disable SSL session ID cache in RPC client
2255

    
2256

    
2257
Version 2.2.1 rc1
2258
-----------------
2259

    
2260
*(Released Thu, 14 Oct 2010)*
2261

    
2262
- Fix interaction between Curl/GnuTLS and the Python's HTTP server
2263
  (thanks Apollon Oikonomopoulos!), finally allowing the use of Curl
2264
  with GnuTLS
2265
- Fix problems with interaction between Curl and Python's HTTP server,
2266
  resulting in increased speed in many RPC calls
2267
- Improve our release script to prevent breakage with older aclocal and
2268
  Python 2.6
2269

    
2270

    
2271
Version 2.2.1 rc0
2272
-----------------
2273

    
2274
*(Released Thu, 7 Oct 2010)*
2275

    
2276
- Fixed issue 125, replace hardcoded "xenvg" in ``gnt-cluster`` with
2277
  value retrieved from master
2278
- Added support for blacklisted or hidden OS definitions
2279
- Added simple lock monitor (accessible via (``gnt-debug locks``)
2280
- Added support for -mem-path in KVM hypervisor abstraction layer
2281
- Allow overriding instance parameters in tool for inter-cluster
2282
  instance moves (``tools/move-instance``)
2283
- Improved opcode summaries (e.g. in ``gnt-job list``)
2284
- Improve consistency of OS listing by sorting it
2285
- Documentation updates
2286

    
2287

    
2288
Version 2.2.0.1
2289
---------------
2290

    
2291
*(Released Fri, 8 Oct 2010)*
2292

    
2293
- Rebuild with a newer autotools version, to fix python 2.6 compatibility
2294

    
2295

    
2296
Version 2.2.0
2297
-------------
2298

    
2299
*(Released Mon, 4 Oct 2010)*
2300

    
2301
- Fixed regression in ``gnt-instance rename``
2302

    
2303

    
2304
Version 2.2.0 rc2
2305
-----------------
2306

    
2307
*(Released Wed, 22 Sep 2010)*
2308

    
2309
- Fixed OS_VARIANT variable for OS scripts
2310
- Fixed cluster tag operations via RAPI
2311
- Made ``setup-ssh`` exit with non-zero code if an error occurred
2312
- Disabled RAPI CA checks in watcher
2313

    
2314

    
2315
Version 2.2.0 rc1
2316
-----------------
2317

    
2318
*(Released Mon, 23 Aug 2010)*
2319

    
2320
- Support DRBD versions of the format "a.b.c.d"
2321
- Updated manpages
2322
- Re-introduce support for usage from multiple threads in RAPI client
2323
- Instance renames and modify via RAPI
2324
- Work around race condition between processing and archival in job
2325
  queue
2326
- Mark opcodes following failed one as failed, too
2327
- Job field ``lock_status`` was removed due to difficulties making it
2328
  work with the changed job queue in Ganeti 2.2; a better way to monitor
2329
  locks is expected for a later 2.2.x release
2330
- Fixed dry-run behaviour with many commands
2331
- Support ``ssh-agent`` again when adding nodes
2332
- Many additional bugfixes
2333

    
2334

    
2335
Version 2.2.0 rc0
2336
-----------------
2337

    
2338
*(Released Fri, 30 Jul 2010)*
2339

    
2340
Important change: the internal RPC mechanism between Ganeti nodes has
2341
changed from using a home-grown http library (based on the Python base
2342
libraries) to use the PycURL library. This requires that PycURL is
2343
installed on nodes. Please note that on Debian/Ubuntu, PycURL is linked
2344
against GnuTLS by default. cURL's support for GnuTLS had known issues
2345
before cURL 7.21.0 and we recommend using the latest cURL release or
2346
linking against OpenSSL. Most other distributions already link PycURL
2347
and cURL against OpenSSL. The command::
2348

    
2349
  python -c 'import pycurl; print pycurl.version'
2350

    
2351
can be used to determine the libraries PycURL and cURL are linked
2352
against.
2353

    
2354
Other significant changes:
2355

    
2356
- Rewrote much of the internals of the job queue, in order to achieve
2357
  better parallelism; this decouples job query operations from the job
2358
  processing, and it should allow much nicer behaviour of the master
2359
  daemon under load, and it also has uncovered some long-standing bugs
2360
  related to the job serialisation (now fixed)
2361
- Added a default iallocator setting to the cluster parameters,
2362
  eliminating the need to always pass nodes or an iallocator for
2363
  operations that require selection of new node(s)
2364
- Added experimental support for the LXC virtualization method
2365
- Added support for OS parameters, which allows the installation of
2366
  instances to pass parameter to OS scripts in order to customise the
2367
  instance
2368
- Added a hypervisor parameter controlling the migration type (live or
2369
  non-live), since hypervisors have various levels of reliability; this
2370
  has renamed the 'live' parameter to 'mode'
2371
- Added a cluster parameter ``reserved_lvs`` that denotes reserved
2372
  logical volumes, meaning that cluster verify will ignore them and not
2373
  flag their presence as errors
2374
- The watcher will now reset the error count for failed instances after
2375
  8 hours, thus allowing self-healing if the problem that caused the
2376
  instances to be down/fail to start has cleared in the meantime
2377
- Added a cluster parameter ``drbd_usermode_helper`` that makes Ganeti
2378
  check for, and warn, if the drbd module parameter ``usermode_helper``
2379
  is not consistent with the cluster-wide setting; this is needed to
2380
  make diagnose easier of failed drbd creations
2381
- Started adding base IPv6 support, but this is not yet
2382
  enabled/available for use
2383
- Rename operations (cluster, instance) will now return the new name,
2384
  which is especially useful if a short name was passed in
2385
- Added support for instance migration in RAPI
2386
- Added a tool to pre-configure nodes for the SSH setup, before joining
2387
  them to the cluster; this will allow in the future a simplified model
2388
  for node joining (but not yet fully enabled in 2.2); this needs the
2389
  paramiko python library
2390
- Fixed handling of name-resolving errors
2391
- Fixed consistency of job results on the error path
2392
- Fixed master-failover race condition when executed multiple times in
2393
  sequence
2394
- Fixed many bugs related to the job queue (mostly introduced during the
2395
  2.2 development cycle, so not all are impacting 2.1)
2396
- Fixed instance migration with missing disk symlinks
2397
- Fixed handling of unknown jobs in ``gnt-job archive``
2398
- And many other small fixes/improvements
2399

    
2400
Internal changes:
2401

    
2402
- Enhanced both the unittest and the QA coverage
2403
- Switched the opcode validation to a generic model, and extended the
2404
  validation to all opcode parameters
2405
- Changed more parts of the code that write shell scripts to use the
2406
  same class for this
2407
- Switched the master daemon to use the asyncore library for the Luxi
2408
  server endpoint
2409

    
2410

    
2411
Version 2.2.0 beta0
2412
-------------------
2413

    
2414
*(Released Thu, 17 Jun 2010)*
2415

    
2416
- Added tool (``move-instance``) and infrastructure to move instances
2417
  between separate clusters (see :doc:`separate documentation
2418
  <move-instance>` and :doc:`design document <design-2.2>`)
2419
- Added per-request RPC timeout
2420
- RAPI now requires a Content-Type header for requests with a body (e.g.
2421
  ``PUT`` or ``POST``) which must be set to ``application/json`` (see
2422
  :rfc:`2616` (HTTP/1.1), section 7.2.1)
2423
- ``ganeti-watcher`` attempts to restart ``ganeti-rapi`` if RAPI is not
2424
  reachable
2425
- Implemented initial support for running Ganeti daemons as separate
2426
  users, see configure-time flags ``--with-user-prefix`` and
2427
  ``--with-group-prefix`` (only ``ganeti-rapi`` is supported at this
2428
  time)
2429
- Instances can be removed after export (``gnt-backup export
2430
  --remove-instance``)
2431
- Self-signed certificates generated by Ganeti now use a 2048 bit RSA
2432
  key (instead of 1024 bit)
2433
- Added new cluster configuration file for cluster domain secret
2434
- Import/export now use SSL instead of SSH
2435
- Added support for showing estimated time when exporting an instance,
2436
  see the ``ganeti-os-interface(7)`` manpage and look for
2437
  ``EXP_SIZE_FD``
2438

    
2439

    
2440
Version 2.1.8
2441
-------------
2442

    
2443
*(Released Tue, 16 Nov 2010)*
2444

    
2445
Some more bugfixes. Unless critical bugs occur, this will be the last
2446
2.1 release:
2447

    
2448
- Fix case of MAC special-values
2449
- Fix mac checker regex
2450
- backend: Fix typo causing "out of range" error
2451
- Add missing --units in gnt-instance list man page
2452

    
2453

    
2454
Version 2.1.7
2455
-------------
2456

    
2457
*(Released Tue, 24 Aug 2010)*
2458

    
2459
Bugfixes only:
2460
  - Don't ignore secondary node silently on non-mirrored disk templates
2461
    (issue 113)
2462
  - Fix --master-netdev arg name in gnt-cluster(8) (issue 114)
2463
  - Fix usb_mouse parameter breaking with vnc_console (issue 109)
2464
  - Properly document the usb_mouse parameter
2465
  - Fix path in ganeti-rapi(8) (issue 116)
2466
  - Adjust error message when the ganeti user's .ssh directory is
2467
    missing
2468
  - Add same-node-check when changing the disk template to drbd
2469

    
2470

    
2471
Version 2.1.6
2472
-------------
2473

    
2474
*(Released Fri, 16 Jul 2010)*
2475

    
2476
Bugfixes only:
2477
  - Add an option to only select some reboot types during qa/burnin.
2478
    (on some hypervisors consequent reboots are not supported)
2479
  - Fix infrequent race condition in master failover. Sometimes the old
2480
    master ip address would be still detected as up for a short time
2481
    after it was removed, causing failover to fail.
2482
  - Decrease mlockall warnings when the ctypes module is missing. On
2483
    Python 2.4 we support running even if no ctypes module is installed,
2484
    but we were too verbose about this issue.
2485
  - Fix building on old distributions, on which man doesn't have a
2486
    --warnings option.
2487
  - Fix RAPI not to ignore the MAC address on instance creation
2488
  - Implement the old instance creation format in the RAPI client.
2489

    
2490

    
2491
Version 2.1.5
2492
-------------
2493

    
2494
*(Released Thu, 01 Jul 2010)*
2495

    
2496
A small bugfix release:
2497
  - Fix disk adoption: broken by strict --disk option checking in 2.1.4
2498
  - Fix batch-create: broken in the whole 2.1 series due to a lookup on
2499
    a non-existing option
2500
  - Fix instance create: the --force-variant option was ignored
2501
  - Improve pylint 0.21 compatibility and warnings with Python 2.6
2502
  - Fix modify node storage with non-FQDN arguments
2503
  - Fix RAPI client to authenticate under Python 2.6 when used
2504
    for more than 5 requests needing authentication
2505
  - Fix gnt-instance modify -t (storage) giving a wrong error message
2506
    when converting a non-shutdown drbd instance to plain
2507

    
2508

    
2509
Version 2.1.4
2510
-------------
2511

    
2512
*(Released Fri, 18 Jun 2010)*
2513

    
2514
A small bugfix release:
2515

    
2516
  - Fix live migration of KVM instances started with older Ganeti
2517
    versions which had fewer hypervisor parameters
2518
  - Fix gnt-instance grow-disk on down instances
2519
  - Fix an error-reporting bug during instance migration
2520
  - Better checking of the ``--net`` and ``--disk`` values, to avoid
2521
    silently ignoring broken ones
2522
  - Fix an RPC error reporting bug affecting, for example, RAPI client
2523
    users
2524
  - Fix bug triggered by different API version os-es on different nodes
2525
  - Fix a bug in instance startup with custom hvparams: OS level
2526
    parameters would fail to be applied.
2527
  - Fix the RAPI client under Python 2.6 (but more work is needed to
2528
    make it work completely well with OpenSSL)
2529
  - Fix handling of errors when resolving names from DNS
2530

    
2531

    
2532
Version 2.1.3
2533
-------------
2534

    
2535
*(Released Thu, 3 Jun 2010)*
2536

    
2537
A medium sized development cycle. Some new features, and some
2538
fixes/small improvements/cleanups.
2539

    
2540
Significant features
2541
~~~~~~~~~~~~~~~~~~~~
2542

    
2543
The node deamon now tries to mlock itself into memory, unless the
2544
``--no-mlock`` flag is passed. It also doesn't fail if it can't write
2545
its logs, and falls back to console logging. This allows emergency
2546
features such as ``gnt-node powercycle`` to work even in the event of a
2547
broken node disk (tested offlining the disk hosting the node's
2548
filesystem and dropping its memory caches; don't try this at home)
2549

    
2550
KVM: add vhost-net acceleration support. It can be tested with a new
2551
enough version of the kernel and of qemu-kvm.
2552

    
2553
KVM: Add instance chrooting feature. If you use privilege dropping for
2554
your VMs you can also now force them to chroot to an empty directory,
2555
before starting the emulated guest.
2556

    
2557
KVM: Add maximum migration bandwith and maximum downtime tweaking
2558
support (requires a new-enough version of qemu-kvm).
2559

    
2560
Cluster verify will now warn if the master node doesn't have the master
2561
ip configured on it.
2562

    
2563
Add a new (incompatible) instance creation request format to RAPI which
2564
supports all parameters (previously only a subset was supported, and it
2565
wasn't possible to extend the old format to accomodate all the new
2566
features. The old format is still supported, and a client can check for
2567
this feature, before using it, by checking for its presence in the
2568
``features`` RAPI resource.
2569

    
2570
Now with ancient latin support. Try it passing the ``--roman`` option to
2571
``gnt-instance info``, ``gnt-cluster info`` or ``gnt-node list``
2572
(requires the python-roman module to be installed, in order to work).
2573

    
2574
Other changes
2575
~~~~~~~~~~~~~
2576

    
2577
As usual many internal code refactorings, documentation updates, and
2578
such. Among others:
2579

    
2580
  - Lots of improvements and cleanups to the experimental Remote API
2581
    (RAPI) client library.
2582
  - A new unit test suite for the core daemon libraries.
2583
  - A fix to creating missing directories makes sure the umask is not
2584
    applied anymore. This enforces the same directory permissions
2585
    everywhere.
2586
  - Better handling terminating daemons with ctrl+c (used when running
2587
    them in debugging mode).
2588
  - Fix a race condition in live migrating a KVM instance, when stat()
2589
    on the old proc status file returned EINVAL, which is an unexpected
2590
    value.
2591
  - Fixed manpage checking with newer man and utf-8 charachters. But now
2592
    you need the en_US.UTF-8 locale enabled to build Ganeti from git.
2593

    
2594

    
2595
Version 2.1.2.1
2596
---------------
2597

    
2598
*(Released Fri, 7 May 2010)*
2599

    
2600
Fix a bug which prevented untagged KVM instances from starting.
2601

    
2602

    
2603
Version 2.1.2
2604
-------------
2605

    
2606
*(Released Fri, 7 May 2010)*
2607

    
2608
Another release with a long development cycle, during which many
2609
different features were added.
2610

    
2611
Significant features
2612
~~~~~~~~~~~~~~~~~~~~
2613

    
2614
The KVM hypervisor now can run the individual instances as non-root, to
2615
reduce the impact of a VM being hijacked due to bugs in the
2616
hypervisor. It is possible to run all instances as a single (non-root)
2617
user, to manually specify a user for each instance, or to dynamically
2618
allocate a user out of a cluster-wide pool to each instance, with the
2619
guarantee that no two instances will run under the same user ID on any
2620
given node.
2621

    
2622
An experimental RAPI client library, that can be used standalone
2623
(without the other Ganeti libraries), is provided in the source tree as
2624
``lib/rapi/client.py``. Note this client might change its interface in
2625
the future, as we iterate on its capabilities.
2626

    
2627
A new command, ``gnt-cluster renew-crypto`` has been added to easily
2628
replace the cluster's certificates and crypto keys. This might help in
2629
case they have been compromised, or have simply expired.
2630

    
2631
A new disk option for instance creation has been added that allows one
2632
to "adopt" currently existing logical volumes, with data
2633
preservation. This should allow easier migration to Ganeti from
2634
unmanaged (or managed via other software) instances.
2635

    
2636
Another disk improvement is the possibility to convert between redundant
2637
(DRBD) and plain (LVM) disk configuration for an instance. This should
2638
allow better scalability (starting with one node and growing the
2639
cluster, or shrinking a two-node cluster to one node).
2640

    
2641
A new feature that could help with automated node failovers has been
2642
implemented: if a node sees itself as offline (by querying the master
2643
candidates), it will try to shutdown (hard) all instances and any active
2644
DRBD devices. This reduces the risk of duplicate instances if an
2645
external script automatically failovers the instances on such nodes. To
2646
enable this, the cluster parameter ``maintain_node_health`` should be
2647
enabled; in the future this option (per the name) will enable other
2648
automatic maintenance features.
2649

    
2650
Instance export/import now will reuse the original instance
2651
specifications for all parameters; that means exporting an instance,
2652
deleting it and the importing it back should give an almost identical
2653
instance. Note that the default import behaviour has changed from
2654
before, where it created only one NIC; now it recreates the original
2655
number of NICs.
2656

    
2657
Cluster verify has added a few new checks: SSL certificates validity,
2658
/etc/hosts consistency across the cluster, etc.
2659

    
2660
Other changes
2661
~~~~~~~~~~~~~
2662

    
2663
As usual, many internal changes were done, documentation fixes,
2664
etc. Among others:
2665

    
2666
- Fixed cluster initialization with disabled cluster storage (regression
2667
  introduced in 2.1.1)
2668
- File-based storage supports growing the disks
2669
- Fixed behaviour of node role changes
2670
- Fixed cluster verify for some corner cases, plus a general rewrite of
2671
  cluster verify to allow future extension with more checks
2672
- Fixed log spamming by watcher and node daemon (regression introduced
2673
  in 2.1.1)
2674
- Fixed possible validation issues when changing the list of enabled
2675
  hypervisors
2676
- Fixed cleanup of /etc/hosts during node removal
2677
- Fixed RAPI response for invalid methods
2678
- Fixed bug with hashed passwords in ``ganeti-rapi`` daemon
2679
- Multiple small improvements to the KVM hypervisor (VNC usage, booting
2680
  from ide disks, etc.)
2681
- Allow OS changes without re-installation (to record a changed OS
2682
  outside of Ganeti, or to allow OS renames)
2683
- Allow instance creation without OS installation (useful for example if
2684
  the OS will be installed manually, or restored from a backup not in
2685
  Ganeti format)
2686
- Implemented option to make cluster ``copyfile`` use the replication
2687
  network
2688
- Added list of enabled hypervisors to ssconf (possibly useful for
2689
  external scripts)
2690
- Added a new tool (``tools/cfgupgrade12``) that allows upgrading from
2691
  1.2 clusters
2692
- A partial form of node re-IP is possible via node readd, which now
2693
  allows changed node primary IP
2694
- Command line utilities now show an informational message if the job is
2695
  waiting for a lock
2696
- The logs of the master daemon now show the PID/UID/GID of the
2697
  connected client
2698

    
2699

    
2700
Version 2.1.1
2701
-------------
2702

    
2703
*(Released Fri, 12 Mar 2010)*
2704

    
2705
During the 2.1.0 long release candidate cycle, a lot of improvements and
2706
changes have accumulated with were released later as 2.1.1.
2707

    
2708
Major changes
2709
~~~~~~~~~~~~~
2710

    
2711
The node evacuate command (``gnt-node evacuate``) was significantly
2712
rewritten, and as such the IAllocator protocol was changed - a new
2713
request type has been added. This unfortunate change during a stable
2714
series is designed to improve performance of node evacuations; on
2715
clusters with more than about five nodes and which are well-balanced,
2716
evacuation should proceed in parallel for all instances of the node
2717
being evacuated. As such, any existing IAllocator scripts need to be
2718
updated, otherwise the above command will fail due to the unknown
2719
request. The provided "dumb" allocator has not been updated; but the
2720
ganeti-htools package supports the new protocol since version 0.2.4.
2721

    
2722
Another important change is increased validation of node and instance
2723
names. This might create problems in special cases, if invalid host
2724
names are being used.
2725

    
2726
Also, a new layer of hypervisor parameters has been added, that sits at
2727
OS level between the cluster defaults and the instance ones. This allows
2728
customisation of virtualization parameters depending on the installed
2729
OS. For example instances with OS 'X' may have a different KVM kernel
2730
(or any other parameter) than the cluster defaults. This is intended to
2731
help managing a multiple OSes on the same cluster, without manual
2732
modification of each instance's parameters.
2733

    
2734
A tool for merging clusters, ``cluster-merge``, has been added in the
2735
tools sub-directory.
2736

    
2737
Bug fixes
2738
~~~~~~~~~
2739

    
2740
- Improved the int/float conversions that should make the code more
2741
  robust in face of errors from the node daemons
2742
- Fixed the remove node code in case of internal configuration errors
2743
- Fixed the node daemon behaviour in face of inconsistent queue
2744
  directory (e.g. read-only file-system where we can't open the files
2745
  read-write, etc.)
2746
- Fixed the behaviour of gnt-node modify for master candidate demotion;
2747
  now it either aborts cleanly or, if given the new "auto_promote"
2748
  parameter, will automatically promote other nodes as needed
2749
- Fixed compatibility with (unreleased yet) Python 2.6.5 that would
2750
  completely prevent Ganeti from working
2751
- Fixed bug for instance export when not all disks were successfully
2752
  exported
2753
- Fixed behaviour of node add when the new node is slow in starting up
2754
  the node daemon
2755
- Fixed handling of signals in the LUXI client, which should improve
2756
  behaviour of command-line scripts
2757
- Added checks for invalid node/instance names in the configuration (now
2758
  flagged during cluster verify)
2759
- Fixed watcher behaviour for disk activation errors
2760
- Fixed two potentially endless loops in http library, which led to the
2761
  RAPI daemon hanging and consuming 100% CPU in some cases
2762
- Fixed bug in RAPI daemon related to hashed passwords
2763
- Fixed bug for unintended qemu-level bridging of multi-NIC KVM
2764
  instances
2765
- Enhanced compatibility with non-Debian OSes, but not using absolute
2766
  path in some commands and allowing customisation of the ssh
2767
  configuration directory
2768
- Fixed possible future issue with new Python versions by abiding to the
2769
  proper use of ``__slots__`` attribute on classes
2770
- Added checks that should prevent directory traversal attacks
2771
- Many documentation fixes based on feedback from users
2772

    
2773
New features
2774
~~~~~~~~~~~~
2775

    
2776
- Added an "early_release" more for instance replace disks and node
2777
  evacuate, where we release locks earlier and thus allow higher
2778
  parallelism within the cluster
2779
- Added watcher hooks, intended to allow the watcher to restart other
2780
  daemons (e.g. from the ganeti-nbma project), but they can be used of
2781
  course for any other purpose
2782
- Added a compile-time disable for DRBD barriers, to increase
2783
  performance if the administrator trusts the power supply or the
2784
  storage system to not lose writes
2785
- Added the option of using syslog for logging instead of, or in
2786
  addition to, Ganeti's own log files
2787
- Removed boot restriction for paravirtual NICs for KVM, recent versions
2788
  can indeed boot from a paravirtual NIC
2789
- Added a generic debug level for many operations; while this is not
2790
  used widely yet, it allows one to pass the debug value all the way to
2791
  the OS scripts
2792
- Enhanced the hooks environment for instance moves (failovers,
2793
  migrations) where the primary/secondary nodes changed during the
2794
  operation, by adding {NEW,OLD}_{PRIMARY,SECONDARY} vars
2795
- Enhanced data validations for many user-supplied values; one important
2796
  item is the restrictions imposed on instance and node names, which
2797
  might reject some (invalid) host names
2798
- Add a configure-time option to disable file-based storage, if it's not
2799
  needed; this allows greater security separation between the master
2800
  node and the other nodes from the point of view of the inter-node RPC
2801
  protocol
2802
- Added user notification in interactive tools if job is waiting in the
2803
  job queue or trying to acquire locks
2804
- Added log messages when a job is waiting for locks
2805
- Added filtering by node tags in instance operations which admit
2806
  multiple instances (start, stop, reboot, reinstall)
2807
- Added a new tool for cluster mergers, ``cluster-merge``
2808
- Parameters from command line which are of the form ``a=b,c=d`` can now
2809
  use backslash escapes to pass in values which contain commas,
2810
  e.g. ``a=b\\c,d=e`` where the 'a' parameter would get the value
2811
  ``b,c``
2812
- For KVM, the instance name is the first parameter passed to KVM, so
2813
  that it's more visible in the process list
2814

    
2815

    
2816
Version 2.1.0
2817
-------------
2818

    
2819
*(Released Tue, 2 Mar 2010)*
2820

    
2821
Ganeti 2.1 brings many improvements with it. Major changes:
2822

    
2823
- Added infrastructure to ease automated disk repairs
2824
- Added new daemon to export configuration data in a cheaper way than
2825
  using the remote API
2826
- Instance NICs can now be routed instead of being associated with a
2827
  networking bridge
2828
- Improved job locking logic to reduce impact of jobs acquiring multiple
2829
  locks waiting for other long-running jobs
2830

    
2831
In-depth implementation details can be found in the Ganeti 2.1 design
2832
document.
2833

    
2834
Details
2835
~~~~~~~
2836

    
2837
- Added chroot hypervisor
2838
- Added more options to xen-hvm hypervisor (``kernel_path`` and
2839
  ``device_model``)
2840
- Added more options to xen-pvm hypervisor (``use_bootloader``,
2841
  ``bootloader_path`` and ``bootloader_args``)
2842
- Added the ``use_localtime`` option for the xen-hvm and kvm
2843
  hypervisors, and the default value for this has changed to false (in
2844
  2.0 xen-hvm always enabled it)
2845
- Added luxi call to submit multiple jobs in one go
2846
- Added cluster initialization option to not modify ``/etc/hosts``
2847
  file on nodes
2848
- Added network interface parameters
2849
- Added dry run mode to some LUs
2850
- Added RAPI resources:
2851

    
2852
  - ``/2/instances/[instance_name]/info``
2853
  - ``/2/instances/[instance_name]/replace-disks``
2854
  - ``/2/nodes/[node_name]/evacuate``
2855
  - ``/2/nodes/[node_name]/migrate``
2856
  - ``/2/nodes/[node_name]/role``
2857
  - ``/2/nodes/[node_name]/storage``
2858
  - ``/2/nodes/[node_name]/storage/modify``
2859
  - ``/2/nodes/[node_name]/storage/repair``
2860

    
2861
- Added OpCodes to evacuate or migrate all instances on a node
2862
- Added new command to list storage elements on nodes (``gnt-node
2863
  list-storage``) and modify them (``gnt-node modify-storage``)
2864
- Added new ssconf files with master candidate IP address
2865
  (``ssconf_master_candidates_ips``), node primary IP address
2866
  (``ssconf_node_primary_ips``) and node secondary IP address
2867
  (``ssconf_node_secondary_ips``)
2868
- Added ``ganeti-confd`` and a client library to query the Ganeti
2869
  configuration via UDP
2870
- Added ability to run hooks after cluster initialization and before
2871
  cluster destruction
2872
- Added automatic mode for disk replace (``gnt-instance replace-disks
2873
  --auto``)
2874
- Added ``gnt-instance recreate-disks`` to re-create (empty) disks
2875
  after catastrophic data-loss
2876
- Added ``gnt-node repair-storage`` command to repair damaged LVM volume
2877
  groups
2878
- Added ``gnt-instance move`` command to move instances
2879
- Added ``gnt-cluster watcher`` command to control watcher
2880
- Added ``gnt-node powercycle`` command to powercycle nodes
2881
- Added new job status field ``lock_status``
2882
- Added parseable error codes to cluster verification (``gnt-cluster
2883
  verify --error-codes``) and made output less verbose (use
2884
  ``--verbose`` to restore previous behaviour)
2885
- Added UUIDs to the main config entities (cluster, nodes, instances)
2886
- Added support for OS variants
2887
- Added support for hashed passwords in the Ganeti remote API users file
2888
  (``rapi_users``)
2889
- Added option to specify maximum timeout on instance shutdown
2890
- Added ``--no-ssh-init`` option to ``gnt-cluster init``
2891
- Added new helper script to start and stop Ganeti daemons
2892
  (``daemon-util``), with the intent to reduce the work necessary to
2893
  adjust Ganeti for non-Debian distributions and to start/stop daemons
2894
  from one place
2895
- Added more unittests
2896
- Fixed critical bug in ganeti-masterd startup
2897
- Removed the configure-time ``kvm-migration-port`` parameter, this is
2898
  now customisable at the cluster level for both the KVM and Xen
2899
  hypervisors using the new ``migration_port`` parameter
2900
- Pass ``INSTANCE_REINSTALL`` variable to OS installation script when
2901
  reinstalling an instance
2902
- Allowed ``@`` in tag names
2903
- Migrated to Sphinx (http://sphinx.pocoo.org/) for documentation
2904
- Many documentation updates
2905
- Distribute hypervisor files on ``gnt-cluster redist-conf``
2906
- ``gnt-instance reinstall`` can now reinstall multiple instances
2907
- Updated many command line parameters
2908
- Introduced new OS API version 15
2909
- No longer support a default hypervisor
2910
- Treat virtual LVs as inexistent
2911
- Improved job locking logic to reduce lock contention
2912
- Match instance and node names case insensitively
2913
- Reimplemented bash completion script to be more complete
2914
- Improved burnin
2915

    
2916

    
2917
Version 2.0.6
2918
-------------
2919

    
2920
*(Released Thu, 4 Feb 2010)*
2921

    
2922
- Fix cleaner behaviour on nodes not in a cluster (Debian bug 568105)
2923
- Fix a string formatting bug
2924
- Improve safety of the code in some error paths
2925
- Improve data validation in the master of values returned from nodes
2926

    
2927

    
2928
Version 2.0.5
2929
-------------
2930

    
2931
*(Released Thu, 17 Dec 2009)*
2932

    
2933
- Fix security issue due to missing validation of iallocator names; this
2934
  allows local and remote execution of arbitrary executables
2935
- Fix failure of gnt-node list during instance removal
2936
- Ship the RAPI documentation in the archive
2937

    
2938

    
2939
Version 2.0.4
2940
-------------
2941

    
2942
*(Released Wed, 30 Sep 2009)*
2943

    
2944
- Fixed many wrong messages
2945
- Fixed a few bugs related to the locking library
2946
- Fixed MAC checking at instance creation time
2947
- Fixed a DRBD parsing bug related to gaps in /proc/drbd
2948
- Fixed a few issues related to signal handling in both daemons and
2949
  scripts
2950
- Fixed the example startup script provided
2951
- Fixed insserv dependencies in the example startup script (patch from
2952
  Debian)
2953
- Fixed handling of drained nodes in the iallocator framework
2954
- Fixed handling of KERNEL_PATH parameter for xen-hvm (Debian bug
2955
  #528618)
2956
- Fixed error related to invalid job IDs in job polling
2957
- Fixed job/opcode persistence on unclean master shutdown
2958
- Fixed handling of partial job processing after unclean master
2959
  shutdown
2960
- Fixed error reporting from LUs, previously all errors were converted
2961
  into execution errors
2962
- Fixed error reporting from burnin
2963
- Decreased significantly the memory usage of the job queue
2964
- Optimised slightly multi-job submission
2965
- Optimised slightly opcode loading
2966
- Backported the multi-job submit framework from the development
2967
  branch; multi-instance start and stop should be faster
2968
- Added script to clean archived jobs after 21 days; this will reduce
2969
  the size of the queue directory
2970
- Added some extra checks in disk size tracking
2971
- Added an example ethers hook script
2972
- Added a cluster parameter that prevents Ganeti from modifying of
2973
  /etc/hosts
2974
- Added more node information to RAPI responses
2975
- Added a ``gnt-job watch`` command that allows following the ouput of a
2976
  job
2977
- Added a bind-address option to ganeti-rapi
2978
- Added more checks to the configuration verify
2979
- Enhanced the burnin script such that some operations can be retried
2980
  automatically
2981
- Converted instance reinstall to multi-instance model
2982

    
2983

    
2984
Version 2.0.3
2985
-------------
2986

    
2987
*(Released Fri, 7 Aug 2009)*
2988

    
2989
- Added ``--ignore-size`` to the ``gnt-instance activate-disks`` command
2990
  to allow using the pre-2.0.2 behaviour in activation, if any existing
2991
  instances have mismatched disk sizes in the configuration
2992
- Added ``gnt-cluster repair-disk-sizes`` command to check and update
2993
  any configuration mismatches for disk sizes
2994
- Added ``gnt-master cluste-failover --no-voting`` to allow master
2995
  failover to work on two-node clusters
2996
- Fixed the ``--net`` option of ``gnt-backup import``, which was
2997
  unusable
2998
- Fixed detection of OS script errors in ``gnt-backup export``
2999
- Fixed exit code of ``gnt-backup export``
3000

    
3001

    
3002
Version 2.0.2
3003
-------------
3004

    
3005
*(Released Fri, 17 Jul 2009)*
3006

    
3007
- Added experimental support for stripped logical volumes; this should
3008
  enhance performance but comes with a higher complexity in the block
3009
  device handling; stripping is only enabled when passing
3010
  ``--with-lvm-stripecount=N`` to ``configure``, but codepaths are
3011
  affected even in the non-stripped mode
3012
- Improved resiliency against transient failures at the end of DRBD
3013
  resyncs, and in general of DRBD resync checks
3014
- Fixed a couple of issues with exports and snapshot errors
3015
- Fixed a couple of issues in instance listing
3016
- Added display of the disk size in ``gnt-instance info``
3017
- Fixed checking for valid OSes in instance creation
3018
- Fixed handling of the "vcpus" parameter in instance listing and in
3019
  general of invalid parameters
3020
- Fixed http server library, and thus RAPI, to handle invalid
3021
  username/password combinations correctly; this means that now they
3022
  report unauthorized for queries too, not only for modifications,
3023
  allowing earlier detect of configuration problems
3024
- Added a new "role" node list field, equivalent to the master/master
3025
  candidate/drained/offline flags combinations
3026
- Fixed cluster modify and changes of candidate pool size
3027
- Fixed cluster verify error messages for wrong files on regular nodes
3028
- Fixed a couple of issues with node demotion from master candidate role
3029
- Fixed node readd issues
3030
- Added non-interactive mode for ``ganeti-masterd --no-voting`` startup
3031
- Added a new ``--no-voting`` option for masterfailover to fix failover
3032
  on two-nodes clusters when the former master node is unreachable
3033
- Added instance reinstall over RAPI
3034

    
3035

    
3036
Version 2.0.1
3037
-------------
3038

    
3039
*(Released Tue, 16 Jun 2009)*
3040

    
3041
- added ``-H``/``-B`` startup parameters to ``gnt-instance``, which will
3042
  allow re-adding the start in single-user option (regression from 1.2)
3043
- the watcher writes the instance status to a file, to allow monitoring
3044
  to report the instance status (from the master) based on cached
3045
  results of the watcher's queries; while this can get stale if the
3046
  watcher is being locked due to other work on the cluster, this is
3047
  still an improvement
3048
- the watcher now also restarts the node daemon and the rapi daemon if
3049
  they died
3050
- fixed the watcher to handle full and drained queue cases
3051
- hooks export more instance data in the environment, which helps if
3052
  hook scripts need to take action based on the instance's properties
3053
  (no longer need to query back into ganeti)
3054
- instance failovers when the instance is stopped do not check for free
3055
  RAM, so that failing over a stopped instance is possible in low memory
3056
  situations
3057
- rapi uses queries for tags instead of jobs (for less job traffic), and
3058
  for cluster tags it won't talk to masterd at all but read them from
3059
  ssconf
3060
- a couple of error handling fixes in RAPI
3061
- drbd handling: improved the error handling of inconsistent disks after
3062
  resync to reduce the frequency of "there are some degraded disks for
3063
  this instance" messages
3064
- fixed a bug in live migration when DRBD doesn't want to reconnect (the
3065
  error handling path called a wrong function name)
3066

    
3067

    
3068
Version 2.0.0
3069
-------------
3070

    
3071
*(Released Wed, 27 May 2009)*
3072

    
3073
- no changes from rc5
3074

    
3075

    
3076
Version 2.0 rc5
3077
---------------
3078

    
3079
*(Released Wed, 20 May 2009)*
3080

    
3081
- fix a couple of bugs (validation, argument checks)
3082
- fix ``gnt-cluster getmaster`` on non-master nodes (regression)
3083
- some small improvements to RAPI and IAllocator
3084
- make watcher automatically start the master daemon if down
3085

    
3086

    
3087
Version 2.0 rc4
3088
---------------
3089

    
3090
*(Released Mon, 27 Apr 2009)*
3091

    
3092
- change the OS list to not require locks; this helps with big clusters
3093
- fix ``gnt-cluster verify`` and ``gnt-cluster verify-disks`` when the
3094
  volume group is broken
3095
- ``gnt-instance info``, without any arguments, doesn't run for all
3096
  instances anymore; either pass ``--all`` or pass the desired
3097
  instances; this helps against mistakes on big clusters where listing
3098
  the information for all instances takes a long time
3099
- miscellaneous doc and man pages fixes
3100

    
3101

    
3102
Version 2.0 rc3
3103
---------------
3104

    
3105
*(Released Wed, 8 Apr 2009)*
3106

    
3107
- Change the internal locking model of some ``gnt-node`` commands, in
3108
  order to reduce contention (and blocking of master daemon) when
3109
  batching many creation/reinstall jobs
3110
- Fixes to Xen soft reboot
3111
- No longer build documentation at build time, instead distribute it in
3112
  the archive, in order to reduce the need for the whole docbook/rst
3113
  toolchains
3114

    
3115

    
3116
Version 2.0 rc2
3117
---------------
3118

    
3119
*(Released Fri, 27 Mar 2009)*
3120

    
3121
- Now the cfgupgrade scripts works and can upgrade 1.2.7 clusters to 2.0
3122
- Fix watcher startup sequence, improves the behaviour of busy clusters
3123
- Some other fixes in ``gnt-cluster verify``, ``gnt-instance
3124
  replace-disks``, ``gnt-instance add``, ``gnt-cluster queue``, KVM VNC
3125
  bind address and other places
3126
- Some documentation fixes and updates
3127

    
3128

    
3129
Version 2.0 rc1
3130
---------------
3131

    
3132
*(Released Mon, 2 Mar 2009)*
3133

    
3134
- More documentation updates, now all docs should be more-or-less
3135
  up-to-date
3136
- A couple of small fixes (mixed hypervisor clusters, offline nodes,
3137
  etc.)
3138
- Added a customizable HV_KERNEL_ARGS hypervisor parameter (for Xen PVM
3139
  and KVM)
3140
- Fix an issue related to $libdir/run/ganeti and cluster creation
3141

    
3142

    
3143
Version 2.0 beta2
3144
-----------------
3145

    
3146
*(Released Thu, 19 Feb 2009)*
3147

    
3148
- Xen PVM and KVM have switched the default value for the instance root
3149
  disk to the first partition on the first drive, instead of the whole
3150
  drive; this means that the OS installation scripts must be changed
3151
  accordingly
3152
- Man pages have been updated
3153
- RAPI has been switched by default to HTTPS, and the exported functions
3154
  should all work correctly
3155
- RAPI v1 has been removed
3156
- Many improvements to the KVM hypervisor
3157
- Block device errors are now better reported
3158
- Many other bugfixes and small improvements
3159

    
3160

    
3161
Version 2.0 beta1
3162
-----------------
3163

    
3164
*(Released Mon, 26 Jan 2009)*
3165

    
3166
- Version 2 is a general rewrite of the code and therefore the
3167
  differences are too many to list, see the design document for 2.0 in
3168
  the ``doc/`` subdirectory for more details
3169
- In this beta version there is not yet a migration path from 1.2 (there
3170
  will be one in the final 2.0 release)
3171
- A few significant changes are:
3172

    
3173
  - all commands are executed by a daemon (``ganeti-masterd``) and the
3174
    various ``gnt-*`` commands are just front-ends to it
3175
  - all the commands are entered into, and executed from a job queue,
3176
    see the ``gnt-job(8)`` manpage
3177
  - the RAPI daemon supports read-write operations, secured by basic
3178
    HTTP authentication on top of HTTPS
3179
  - DRBD version 0.7 support has been removed, DRBD 8 is the only
3180
    supported version (when migrating from Ganeti 1.2 to 2.0, you need
3181
    to migrate to DRBD 8 first while still running Ganeti 1.2)
3182
  - DRBD devices are using statically allocated minor numbers, which
3183
    will be assigned to existing instances during the migration process
3184
  - there is support for both Xen PVM and Xen HVM instances running on
3185
    the same cluster
3186
  - KVM virtualization is supported too
3187
  - file-based storage has been implemented, which means that it is
3188
    possible to run the cluster without LVM and DRBD storage, for
3189
    example using a shared filesystem exported from shared storage (and
3190
    still have live migration)
3191

    
3192

    
3193
Version 1.2.7
3194
-------------
3195

    
3196
*(Released Tue, 13 Jan 2009)*
3197

    
3198
- Change the default reboot type in ``gnt-instance reboot`` to "hard"
3199
- Reuse the old instance mac address by default on instance import, if
3200
  the instance name is the same.
3201
- Handle situations in which the node info rpc returns incomplete
3202
  results (issue 46)
3203
- Add checks for tcp/udp ports collisions in ``gnt-cluster verify``
3204
- Improved version of batcher:
3205

    
3206
  - state file support
3207
  - instance mac address support
3208
  - support for HVM clusters/instances
3209

    
3210
- Add an option to show the number of cpu sockets and nodes in
3211
  ``gnt-node list``
3212
- Support OSes that handle more than one version of the OS api (but do
3213
  not change the current API in any other way)
3214
- Fix ``gnt-node migrate``
3215
- ``gnt-debug`` man page
3216
- Fixes various more typos and small issues
3217
- Increase disk resync maximum speed to 60MB/s (from 30MB/s)
3218

    
3219

    
3220
Version 1.2.6
3221
-------------
3222

    
3223
*(Released Wed, 24 Sep 2008)*
3224

    
3225
- new ``--hvm-nic-type`` and ``--hvm-disk-type`` flags to control the
3226
  type of disk exported to fully virtualized instances.
3227
- provide access to the serial console of HVM instances
3228
- instance auto_balance flag, set by default. If turned off it will
3229
  avoid warnings on cluster verify if there is not enough memory to fail
3230
  over an instance. in the future it will prevent automatically failing
3231
  it over when we will support that.
3232
- batcher tool for instance creation, see ``tools/README.batcher``
3233
- ``gnt-instance reinstall --select-os`` to interactively select a new
3234
  operating system when reinstalling an instance.
3235
- when changing the memory amount on instance modify a check has been
3236
  added that the instance will be able to start. also warnings are
3237
  emitted if the instance will not be able to fail over, if auto_balance
3238
  is true.
3239
- documentation fixes
3240
- sync fields between ``gnt-instance list/modify/add/import``
3241
- fix a race condition in drbd when the sync speed was set after giving
3242
  the device a remote peer.
3243

    
3244

    
3245
Version 1.2.5
3246
-------------
3247

    
3248
*(Released Tue, 22 Jul 2008)*
3249

    
3250
- note: the allowed size and number of tags per object were reduced
3251
- fix a bug in ``gnt-cluster verify`` with inconsistent volume groups
3252
- fixed twisted 8.x compatibility
3253
- fixed ``gnt-instance replace-disks`` with iallocator
3254
- add TCP keepalives on twisted connections to detect restarted nodes
3255
- disk increase support, see ``gnt-instance grow-disk``
3256
- implement bulk node/instance query for RAPI
3257
- add tags in node/instance listing (optional)
3258
- experimental migration (and live migration) support, read the man page
3259
  for ``gnt-instance migrate``
3260
- the ``ganeti-watcher`` logs are now timestamped, and the watcher also
3261
  has some small improvements in handling its state file
3262

    
3263

    
3264
Version 1.2.4
3265
-------------
3266

    
3267
*(Released Fri, 13 Jun 2008)*
3268

    
3269
- Experimental readonly, REST-based remote API implementation;
3270
  automatically started on master node, TCP port 5080, if enabled by
3271
  ``--enable-rapi`` parameter to configure script.
3272
- Instance allocator support. Add and import instance accept a
3273
  ``--iallocator`` parameter, and call that instance allocator to decide
3274
  which node to use for the instance. The iallocator document describes
3275
  what's expected from an allocator script.
3276
- ``gnt-cluster verify`` N+1 memory redundancy checks: Unless passed the
3277
  ``--no-nplus1-mem`` option ``gnt-cluster verify`` now checks that if a
3278
  node is lost there is still enough memory to fail over the instances
3279
  that reside on it.
3280
- ``gnt-cluster verify`` hooks: it is now possible to add post-hooks to
3281
  ``gnt-cluster verify``, to check for site-specific compliance. All the
3282
  hooks will run, and their output, if any, will be displayed. Any
3283
  failing hook will make the verification return an error value.
3284
- ``gnt-cluster verify`` now checks that its peers are reachable on the
3285
  primary and secondary interfaces
3286
- ``gnt-node add`` now supports the ``--readd`` option, to readd a node
3287
  that is still declared as part of the cluster and has failed.
3288
- ``gnt-* list`` commands now accept a new ``-o +field`` way of
3289
  specifying output fields, that just adds the chosen fields to the
3290
  default ones.
3291
- ``gnt-backup`` now has a new ``remove`` command to delete an existing
3292
  export from the filesystem.
3293
- New per-instance parameters hvm_acpi, hvm_pae and hvm_cdrom_image_path
3294
  have been added. Using them you can enable/disable acpi and pae
3295
  support, and specify a path for a cd image to be exported to the
3296
  instance. These parameters as the name suggest only work on HVM
3297
  clusters.
3298
- When upgrading an HVM cluster to Ganeti 1.2.4, the values for ACPI and
3299
  PAE support will be set to the previously hardcoded values, but the
3300
  (previously hardcoded) path to the CDROM ISO image will be unset and
3301
  if required, needs to be set manually with ``gnt-instance modify``
3302
  after the upgrade.
3303
- The address to which an instance's VNC console is bound is now
3304
  selectable per-instance, rather than being cluster wide. Of course
3305
  this only applies to instances controlled via VNC, so currently just
3306
  applies to HVM clusters.
3307

    
3308

    
3309
Version 1.2.3
3310
-------------
3311

    
3312
*(Released Mon, 18 Feb 2008)*
3313

    
3314
- more tweaks to the disk activation code (especially helpful for DRBD)
3315
- change the default ``gnt-instance list`` output format, now there is
3316
  one combined status field (see the manpage for the exact values this
3317
  field will have)
3318
- some more fixes for the mac export to hooks change
3319
- make Ganeti not break with DRBD 8.2.x (which changed the version
3320
  format in ``/proc/drbd``) (issue 24)
3321
- add an upgrade tool from "remote_raid1" disk template to "drbd" disk
3322
  template, allowing migration from DRBD0.7+MD to DRBD8
3323

    
3324

    
3325
Version 1.2.2
3326
-------------
3327

    
3328
*(Released Wed, 30 Jan 2008)*
3329

    
3330
- fix ``gnt-instance modify`` breakage introduced in 1.2.1 with the HVM
3331
  support (issue 23)
3332
- add command aliases infrastructure and a few aliases
3333
- allow listing of VCPUs in the ``gnt-instance list`` and improve the
3334
  man pages and the ``--help`` option of ``gnt-node
3335
  list``/``gnt-instance list``
3336
- fix ``gnt-backup list`` with down nodes (issue 21)
3337
- change the tools location (move from $pkgdatadir to $pkglibdir/tools)
3338
- fix the dist archive and add a check for including svn/git files in
3339
  the future
3340
- some developer-related changes: improve the burnin and the QA suite,
3341
  add an upload script for testing during development
3342

    
3343

    
3344
Version 1.2.1
3345
-------------
3346

    
3347
*(Released Wed, 16 Jan 2008)*
3348

    
3349
- experimental HVM support, read the install document, section
3350
  "Initializing the cluster"
3351
- allow for the PVM hypervisor per-instance kernel and initrd paths
3352
- add a new command ``gnt-cluster verify-disks`` which uses a new
3353
  algorithm to improve the reconnection of the DRBD pairs if the device
3354
  on the secondary node has gone away
3355
- make logical volume code auto-activate LVs at disk activation time
3356
- slightly improve the speed of activating disks
3357
- allow specification of the MAC address at instance creation time, and
3358
  changing it later via ``gnt-instance modify``
3359
- fix handling of external commands that generate lots of output on
3360
  stderr
3361
- update documentation with regard to minimum version of DRBD8 supported
3362

    
3363

    
3364
Version 1.2.0
3365
-------------
3366

    
3367
*(Released Tue, 4 Dec 2007)*
3368

    
3369
- Log the ``xm create`` output to the node daemon log on failure (to
3370
  help diagnosing the error)
3371
- In debug mode, log all external commands output if failed to the logs
3372
- Change parsing of lvm commands to ignore stderr
3373

    
3374

    
3375
Version 1.2 beta3
3376
-----------------
3377

    
3378
*(Released Wed, 28 Nov 2007)*
3379

    
3380
- Another round of updates to the DRBD 8 code to deal with more failures
3381
  in the replace secondary node operation
3382
- Some more logging of failures in disk operations (lvm, drbd)
3383
- A few documentation updates
3384
- QA updates
3385

    
3386

    
3387
Version 1.2 beta2
3388
-----------------
3389

    
3390
*(Released Tue, 13 Nov 2007)*
3391

    
3392
- Change configuration file format from Python's Pickle to JSON.
3393
  Upgrading is possible using the cfgupgrade utility.
3394
- Add support for DRBD 8.0 (new disk template ``drbd``) which allows for
3395
  faster replace disks and is more stable (DRBD 8 has many improvements
3396
  compared to DRBD 0.7)
3397
- Added command line tags support (see man pages for ``gnt-instance``,
3398
  ``gnt-node``, ``gnt-cluster``)
3399
- Added instance rename support
3400
- Added multi-instance startup/shutdown
3401
- Added cluster rename support
3402
- Added ``gnt-node evacuate`` to simplify some node operations
3403
- Added instance reboot operation that can speedup reboot as compared to
3404
  stop and start
3405
- Soften the requirement that hostnames are in FQDN format
3406
- The ``ganeti-watcher`` now activates drbd pairs after secondary node
3407
  reboots
3408
- Removed dependency on debian's patched fping that uses the
3409
  non-standard ``-S`` option
3410
- Now the OS definitions are searched for in multiple, configurable
3411
  paths (easier for distros to package)
3412
- Some changes to the hooks infrastructure (especially the new
3413
  post-configuration update hook)
3414
- Other small bugfixes
3415

    
3416
.. vim: set textwidth=72 syntax=rst :
3417
.. Local Variables:
3418
.. mode: rst
3419
.. fill-column: 72
3420
.. End: