Statistics
| Branch: | Tag: | Revision:

root / lib / client @ 70b634e6

Name Size
__init__.py 789 Bytes
gnt_backup.py 4.9 kB
gnt_cluster.py 68.7 kB
gnt_debug.py 22.9 kB
gnt_group.py 11.6 kB
gnt_instance.py 55.8 kB
gnt_job.py 16.6 kB
gnt_network.py 11.9 kB
gnt_node.py 38.1 kB
gnt_os.py 8.3 kB
gnt_storage.py 5.5 kB

Latest revisions

# Date Author Comment
4f90370c 10/15/2013 02:13 pm Helga Velroyen

Make 'gnt-node list-storage' use default storage type

Currently, when no explicit storage type is given, the
'gnt-node list-storage' command defaults to file storage
whether or not file storage is enabled on the cluster
or not. This patch fixes it by defaulting to the default...

d48c944b 10/09/2013 01:40 pm Helga Velroyen

Use 'DTS_LVM' when possible

This patch replaces all usages of the utility function
'GetLvmDiskTemplate' by the new 'DTS_LVM' constant
to make it consistant with the usage of other DTS_*
constants.

Additionally, it provides a unit tests to ensure
consistancy between DTS_LVM and the mapping of disk...

645bba3a 10/09/2013 12:02 pm Klaus Aehlig

If possible, replace symbolic links in place

Naive 'ln -s -f a b' will put the link inside 'b', if
'b' is (a symlink to) a directory; so, during upgrades,
the links in $(sysconfdir) cannot be updated this way.
Removing and readding works, however leaves the risk...

6c2a735a 10/08/2013 01:14 pm Klaus Aehlig

Add --resume option to 'gnt-cluster upgrade'

This option will resume an upgrade of the Ganeti version of
a cluster that got interrupted by a reboot of the master node,
or similar event.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Thomas Thrainer <>

16e81432 10/08/2013 01:14 pm Klaus Aehlig

Add function to determine current configuration version

The 'gnt-cluster upgrade --resume' command needs to determine whether the
configuration has already been updated or not, in order to decide at which
phase to resume. So provide a function to determine the version of the...

36cfb584 10/08/2013 01:14 pm Klaus Aehlig

Add method to read and parse the intent-to-upgrade file

During upgrades, a file is written to disk on master that documents
the fact that an upgrade is currently in progress. Add a function
to parse it.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Thomas Thrainer <>

3b31c9da 10/07/2013 01:47 pm Klaus Aehlig

Write the intent-to-upgrade file during upgrades

To recognize that an upgrade attempt of a cluster was interrupted by a
power failure or similar, write a file into the file system documenting
that currently an upgrade is in progress.

Signed-off-by: Klaus Aehlig <>...

c51ffffe 10/04/2013 05:13 pm Klaus Aehlig

Add an upgrade command to gnt-cluster

This command will coordinate the switching to a new
Ganeti version across the cluster. This has become
possible by the new layout that allows several Ganeti
versions to be present at the same time.

Signed-off-by: Klaus Aehlig <>...

0c455e40 10/04/2013 05:13 pm Klaus Aehlig

Add option to redist-conf while queue is drained

Add a new option to 'gnt-cluster redist-conf' allowing to ignore a drained
state of the Ganeti queue. This is needed (until we implement the fine-grained
queue control) during upgrades, as here we have to redistribute the configuration...

d4d424fb 10/02/2013 03:50 pm Jose A. Lopes

Replace 'IALLOCATOR_NEVAC_*' with 'NODE_EVAC_*'

Replace uses of 'IALLOCATOR_NEVAC_PRI', 'IALLOCATOR_NEVAC_SEC',
'IALLOCATOR_NEVAC_ALL', and 'IALLOCATOR_NEVAC_MODES', with
'NODE_EVAC_PRI', 'NODE_EVAC_SEC', 'NODE_EVAC_ALL', and
'NODE_EVAC_MODES', given that these constants are repeated....

View revisions

Also available in: Atom