Provide utility function to check a configuration version
authorKlaus Aehlig <aehlig@google.com>
Mon, 7 Oct 2013 14:40:22 +0000 (16:40 +0200)
committerKlaus Aehlig <aehlig@google.com>
Tue, 8 Oct 2013 10:14:20 +0000 (12:14 +0200)
commit2f1278d8d4529fe2eeca24f99661093a7693e70f
treed1ff8ded81e7d43710287f06cb93519890b78a50
parentec5e54bbb39133e244394a94bf1d4e2cb8596a9f
Provide utility function to check a configuration version

In order for 'gnt-cluster upgrade --resume' to determine whether the configuration
is already upgraded, it needs to compare whether a configuration version is compatible
with a Ganeti target version. Provide a utility function for this.

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Thomas Thrainer <thomasth@google.com>
lib/utils/version.py
test/py/ganeti.utils.version_unittest.py