htools: Make it possible to load an IAlloc request
authorRené Nussbaumer <rn@google.com>
Fri, 2 Mar 2012 12:15:13 +0000 (13:15 +0100)
committerRené Nussbaumer <rn@google.com>
Tue, 13 Mar 2012 09:29:57 +0000 (10:29 +0100)
This is only useful in the stand-alone command line tools:

- hbal
- hspace
- hinfo

This change also documents the flag in all man-pages.

Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

htools/Ganeti/HTools/Program/Hbal.hs
htools/Ganeti/HTools/Program/Hinfo.hs
htools/Ganeti/HTools/Program/Hspace.hs
man/hbal.rst
man/hinfo.rst
man/hspace.rst
man/htools.rst

index b784833..c6cb629 100644 (file)
@@ -63,6 +63,7 @@ options =
   , oEvacMode
   , oRapiMaster
   , oLuxiSocket
+  , oIAllocSrc
   , oExecJobs
   , oGroup
   , oMaxSolLength
index 5accbdb..548443b 100644 (file)
@@ -51,6 +51,7 @@ options =
   , oDataFile
   , oRapiMaster
   , oLuxiSocket
+  , oIAllocSrc
   , oVerbose
   , oQuiet
   , oOfflineNode
index 3b64159..9dcd3c8 100644 (file)
@@ -56,6 +56,7 @@ options =
   , oNodeSim
   , oRapiMaster
   , oLuxiSocket
+  , oIAllocSrc
   , oVerbose
   , oQuiet
   , oOfflineNode
index 2bf018f..2cda02f 100644 (file)
@@ -16,7 +16,8 @@ SYNOPSIS
 
 Backend options:
 
-{ **-m** *cluster* | **-L[** *path* **] [-X]** | **-t** *data-file* }
+{ **-m** *cluster* | **-L[** *path* **] [-X]** | **-t** *data-file* |
+**-I** *path* }
 
 Algorithm options:
 
index ec1789a..d5109dd 100644 (file)
@@ -16,7 +16,8 @@ SYNOPSIS
 
 Backend options:
 
-{ **-m** *cluster* | **-L[** *path* **] [-X]** | **-t** *data-file* }
+{ **-m** *cluster* | **-L[** *path* **] [-X]** | **-t** *data-file* |
+**-I** *path* }
 
 Algorithm options:
 
index 74da340..f674c5b 100644 (file)
@@ -17,7 +17,7 @@ SYNOPSIS
 Backend options:
 
 { **-m** *cluster* | **-L[** *path* **] [-X]** | **-t** *data-file* |
-**\--simulate** *spec* }
+**\--simulate** *spec* | **-I** *path* }
 
 
 Algorithm options:
index cc9ef39..a05039b 100644 (file)
@@ -203,6 +203,11 @@ support all options. Some common options are:
   on which the master daemon listens; otherwise, the default path used
   by Ganeti (configured at build time) is used.
 
+-I|\--ialloc-src *path*
+  Backend specification: load data directly from an iallocator request
+  (as produced by Ganeti when doing an iallocator call).  The iallocator
+  request is read from specified path.
+
 \--simulate *description*
   Backend specification: instead of using actual data, build an empty
   cluster given a node description. The *description* parameter must be