| Branch: | Tag: | Revision:

root / scripts @ 8b46606c

Name Size
gnt-backup 9.7 kB
gnt-cluster 23.3 kB
gnt-debug 6.5 kB
gnt-instance 55.2 kB
gnt-job 10 kB
gnt-node 19.3 kB
gnt-os 4.3 kB

Latest revisions

# Date Author Comment
8b46606c 06/29/2009 05:26 pm Guido Trotter

check_ident_key_val, handle no_ and - prefixes

If an ident member of an IdentKeyVal relationship starts with no_ or -,
handle it the same way we do for a key. Some unittests are added to
check that check_ident_key_val behaves as expected.

This patch also changes ForceDictType to, for now, fail on such an...

f2fd87d7 06/19/2009 02:14 pm Iustin Pop

Fix some small epydoc warnings

Signed-off-by: Iustin Pop <>
Reviewed-by: Guido Trotter <>

a379d9bd 06/18/2009 04:50 pm Guido Trotter

Update gnt-instance batch-create for NIC params

This is compatible with the previous version, but also allows specifying
more than one nic, by giving a "nics" list of dicts. The two methods
(individual fields for the first nic, and list of all nics) are
incompatible with each other....

0b13832c 06/17/2009 04:21 pm Guido Trotter

Fix QueryInstanceData for nic parameters

This CL updates QueryInstanceData to return NICs in the new format (mac,
ip, mode, link) and fixes gnt-instance info to properly display them.

Signed-off-by: Guido Trotter <>
Reviewed-by: Iustin Pop <>

638c6349 06/17/2009 04:21 pm Guido Trotter

Update instance query for NIC parameters

Compatibility with the old parameters is maintained, by allowing to
query for "bridge" "nic.bridges" and "nic.bridge/N", but None is
returned in that case for routed nics.

Signed-off-by: Guido Trotter <>...

255dcebd 06/15/2009 08:08 pm Iustin Pop

Big rewrite of the OS-related functions

Currently the OSes have a special, customized error handling: the OS
object can represent either a valid OS, or an invalid OS. The associated
function, instead of raising other exception or failing, create custom
OS objects representing failed OSes....

29d376ec 06/15/2009 07:37 pm Iustin Pop

Convert volume_list rpc to new style result

This is a big change, because we need to cleanup its users too.

The call and thus LUVerifyDisks LU used to differentiate between failure
at node level and failure at LV level, by returning different types in
the RPC result. This is way too complicated for our needs....

ec0652ad 06/15/2009 01:52 pm Guido Trotter

InitCluster: don't set default_bridge

And remove the -b option, as default nic parameters can be used instead.
We could support the option, but that would add more code, and since
cluster init is not a frequent operation, it's better to keep the code

9ebe9556 06/15/2009 01:52 pm Guido Trotter

QueryClusterInfo: don't show default_bridge

Since default_bridge is deprecated, avoid displaying it when querying
for cluster information.

Signed-off-by: Guido Trotter <>
Reviewed-by: Iustin Pop <>

b6e243ab 06/10/2009 08:32 pm Iustin Pop

Fix gnt-instance reinstall

Commit 55efe6dabe48e5c37dc1ff6099e0bb8afde7a468 "Convert instance
reinstall to multi instance model" actually broke instance reinstall for
single-instance cases. This one-liner fixes it.

Signed-off-by: Iustin Pop <>...

View revisions

Also available in: Atom