Activity

From 12/16/2010 to 01/14/2011

01/14/2011

06:15 pm Revision 33590e1d: Merge branch 'devel-2.3' into devel-2.4
* devel-2.3:
Allow burnin with hidden OSes
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin...
Guido Trotter
06:14 pm Revision eddc9815: Allow burnin with hidden OSes
burnin is a cluster/testing feature, so it makes sense that a hidden OS
can be used for it.
Signed-off-by: Guido Tro...
Guido Trotter
02:42 pm Revision a91f69c4: Bump version for Ganeti 2.4.0~beta1
Update the version in all necessary places. Update NEWS with release
date.
Signed-off-by: Michael Hanselmann <hansmi...
Michael Hanselmann
02:42 pm Revision 3daa24ea: Update NEWS for Ganeti 2.4
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Reviewed-by: René N...
Michael Hanselmann
02:42 pm Revision cc7d6f1a: Update RPC protocol version for Ganeti 2.4
As it's quite easy to forget updating the protocol version (and was
actually forgotten for Ganeti 2.3), it is now der...
Michael Hanselmann
11:38 am Revision 4fc977e9: Set +x on tools/ganeti-listrunner
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: René Nussbaumer <rn@google.com>
Michael Hanselmann
11:36 am Revision b32d6567: Merge branch 'devel-2.3'
Conflicts:
doc/design-2.3.rst
This was a minor conflict with some rewording of a phrase
lib/client/gnt_instance....
René Nussbaumer
11:27 am Revision 8f8ce6d1: query: Update docstrings
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: René Nussbaumer <rn@google.com>
Michael Hanselmann

01/13/2011

06:11 pm Revision 6d33a6eb: Fix growing of DRBD disks
Patch 03941a26 made disk growth VG-aware, but the code has a bug: it
only works for LD_LV disks, and not LD_DRBD. To ...
Iustin Pop
02:09 pm Revision b288b6f3: List node parameters in gnt-group list
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Reviewed-by: Adeodato Simo...
René Nussbaumer
02:08 pm Revision 8572f1fe: List node parameters (if any) in gnt-node info
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanse...
René Nussbaumer
02:08 pm Revision 88be69ee: List node parameters in gnt-cluster info output
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
René Nussbaumer

01/12/2011

07:54 pm Revision b58a4d16: Fix typos in RAPI docstrings, add unittest
This patch fixes a number of typos and standardizes RAPI resource
docstrings. A unittest is added.
Signed-off-by: Mi...
Michael Hanselmann
05:59 pm Revision acd19189: Move FormatParameterDict from gnt_instance.py to cli.py
This function is useful for other cli-tools who need to display
a dict based parameter field.
Signed-off-by: René Nu...
René Nussbaumer
05:57 pm Revision 904b3bfe: gnt-group modify: ndparams not correctly updated
ndparams should delete keys which are reset to default
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: A...
René Nussbaumer
02:33 pm Revision 78b40c5e: Add Ganeti 2.4 design document
It contains links to the two implemented designs. The detailed documents
are removed from the visible table of conten...
Michael Hanselmann
02:23 pm Revision f78f971e: last_resort groups prioritized by iallocator plugin
Also change language slightly for preferred groups to look better now
that it's repeated.
Signed-off-by: Stephen Shi...
Stephen Shirley
02:10 pm Revision 25be0c75: Remove --master-netdev default value
Since the --master-netdev option is now used both at cluster init and at
cluster modify time, it cannot have a defaul...
Guido Trotter
12:41 pm Revision 3582eef6: Run pylint over QA code too
Right now, the QA code is not covered by pylint, and this shows at
least one low-impact bug.
This patch does the nec...
Iustin Pop
11:18 am Revision f7e6f3c8: QA: use a persistent SSH connection to the master
The recent additions to QA (many more tests) make QA slow if the
machine on which the QA runs is not very close to th...
Iustin Pop
10:17 am Revision 69df9d2b: QA: Fix duplicated OOB tests
Patch f55312bd added the OOB tests to TestClusterVerify, which is not
actually a test for cluster verify, but a runne...
Iustin Pop

01/11/2011

07:33 pm Revision 7b0bf9cd: Add ability to retain specified fds open in RunCmd
Passing tap devices to KVM as file descriptors requires that the respective
file decriptors remain open during utils....
Apollon Oikonomopoulos
05:39 pm Revision 6a050007: Add tests for objects.Instance
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
05:39 pm Revision daa55b04: objects: Fix off-by-one in error message
For an instance with a single disk the message should be “… disks 0 to
0”, not “… 0 to 1”.
Signed-off-by: Michael Ha...
Michael Hanselmann
05:33 pm Revision 63fc4229: utils: Cleanup and sort wildcard imports
Also convert the per-line pylint instructions to one per-module
instruction.
Signed-off-by: Michael Hanselmann <hans...
Michael Hanselmann
05:33 pm Revision 79b60c1c: utils: Drop RemovePidFile
It's equivalent to a simple RemoveFile now.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iusti...
Michael Hanselmann
05:33 pm Revision 90e234a6: utils: Move NewUUID to utils.io
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
05:33 pm Revision 7ebd876f: utils: Move more text-related code
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
05:33 pm Revision a4ccecf6: utils: Move process-related code into separate file
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
05:32 pm Revision 44c9b4fe: utils: Move ResetTempfileModule to wrappers module
It's not exactly a wrapper, but this seemed like the best place.
Signed-off-by: Michael Hanselmann <hansmi@google.co...
Michael Hanselmann
05:32 pm Revision 7d444d59: utils: Move RunningTimeout to utils.algo
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
05:32 pm Revision 17b97ab3: utils: Move code manipulating /etc/hosts to separate file
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
04:53 pm Revision 3ae8dd03: Fix utils.io unittest
“import signal” was missing, but of course it didn't show during my
testing.
Signed-off-by: Michael Hanselmann <hans...
Michael Hanselmann
04:25 pm Revision c50645c0: utils: Move X509-related code into separate file
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
04:25 pm Revision 3865ca48: utils: Move I/O-related code into separate file
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
04:25 pm Revision 9d1b963f: utils: Move code related to file locking into separate file
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
04:25 pm Revision 7831fc5f: utils: Move wrappers into separate file
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
04:24 pm Revision 7b4baeb1: utils: Use function to disable fork
Use a function instead of a variable written by another module.
Signed-off-by: Michael Hanselmann <hansmi@google.com...
Michael Hanselmann
04:24 pm Revision 8342c325: utils: Change RemovePidFile to take path, not name
This avoids having to monkey-patch the utils module for unittests.
Monkey patching is evil and caused a bug while mov...
Michael Hanselmann
03:09 pm Revision 0f39886a: Fix a typo in backend.py
Sorry I thought I did run commit-check but must not have paid attention
to its output. There was a typo in the docstr...
René Nussbaumer
02:44 pm Revision 1d5f1b4c: Pause/Resume sync accordingly before wiping disk
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanse...
René Nussbaumer
02:44 pm Revision 9c007da8: Add RPC calls for pause/resume sync of devices
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
René Nussbaumer
02:44 pm Revision 5119c79e: Add backend method for pause/resume sync of devices
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanse...
René Nussbaumer
02:44 pm Revision a3fffcc6: Make it possible to pause/resume sync of mirrored dev
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
René Nussbaumer
12:39 pm Revision 18009c1e: Fix some doc issues introduced in recent commits
The hooks is due to me not checking the recent patch from David, and
the cli.py change is due to the utils.py split.
...
Iustin Pop
12:03 pm Revision dd5e7794: More fixes to hooks documentation
Signed-off-by: David Knowles <dknowles@google.com>
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Iustin ...
David Knowles

01/10/2011

06:32 pm Revision f3fd2c9d: Add QA tests for OpAssignGroupNodes
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Adeodato Simo
06:32 pm Revision 0a05f959: Fix docstring for "cmd" in qa_utils.GetSSHCommand
Docstring indicated "cmd" should be a list, when it's expected that
it'll be a string.
Also, converted docstring to ...
Adeodato Simo
06:32 pm Revision 8ec505dd: Add unit tests for CheckAssignmentForSplitInstances
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Adeodato Simo
06:32 pm Revision 96276ae7: Add OpAssignGroupNodes and LUAssignGroupNodes
This operation allows to assign nodes to a group, verifying whether
the change would leave any mirrored instance spli...
Adeodato Simo
06:32 pm Revision 919852da: Add `gnt-group assign-nodes` in the CLI
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Adeodato Simo
06:32 pm Revision 3eff8ae6: Cluster verify warns if there are split instances
Emit a warning for each instance with a mirrored disk template that has
its primary and secondary nodes living in dif...
Adeodato Simo
06:32 pm Revision 4245446f: Expose OpAssignGroupNodes over RAPI and RAPI client
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Adeodato Simo
06:17 pm Revision 3af47e13: Validate RAPI resource paths
To stay consistent, RAPI resources should only use a restricted set of
characters. No uppercase, no “_”, etc. This is...
Michael Hanselmann
06:16 pm Revision 1ae4c5a1: utils: Move logging-related code into separate file
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
06:16 pm Revision 71ab9dbe: utils: Rename _CloseFDNoErr to CloseFdNoError
This makes it a public function, which is necessary for
moving code into separate files.
Signed-off-by: Michael Hans...
Michael Hanselmann
06:16 pm Revision f21bb4b7: utils: Move hashing-related code into separate file
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
06:16 pm Revision 4d130f34: utils: Remove unused variables
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
06:15 pm Revision 4fd029cf: utils: Split algorithms into separate file
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
06:15 pm Revision 36a4acd4: utils: Move Mlockall into separate file
The unittest file is renamed to match the other utils.* tests.
Signed-off-by: Michael Hanselmann <hansmi@google.com>...
Michael Hanselmann
06:15 pm Revision 7fcffe27: utils: Move text-related functions into separate file
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
06:15 pm Revision 79d22269: utils: Split Retry & co. into separate file
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
06:15 pm Revision c047a981: utils: Move to separate module
This is preparing for splitting the whole units module.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Review...
Michael Hanselmann
04:50 pm Revision 3986684e: Rapi: read and use the vm_capable node flag
Similar to the IAllocator change, this patch reads and uses the
vm_capable flag in Rapi. Furthermore, it changes the ...
Iustin Pop
04:50 pm Revision 3eeea90f: IAllocator: read and use the vm_capable node flag
This allows non-vm_capable nodes, which don't export runtime data, to
not break the IAllocator message parsing.
Sign...
Iustin Pop
04:50 pm Revision 1b2cb110: IAllocator: replace fake policy with real one
This small patch actually reads the allocation policy from the
IAllocator message.
Signed-off-by: Iustin Pop <iustin...
Iustin Pop
04:50 pm Revision 2befdc14: JSON: improve error reporting
Currently, we list the entire object in error messages. But for large
objects (e.g. an IAllocator message), this make...
Iustin Pop
04:49 pm Revision e8230242: JSON functions: change signature of (maybe)fromObj
Currently, fromObj/maybeFromObj take first the key, and then the
object. This is suboptimal, as this form is not easy...
Iustin Pop
04:07 pm Revision 7187e6ff: Add unit test for ganeti.rapi.client's ModifyGroup
This was forgotten in f18fab7.
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Iustin Pop <iustin@google...
Adeodato Simo
02:42 pm Revision a1a7bc78: mcpu: Automatically build the DISPATCH_TABLE
While reviewing dato's interdiff for the OpAssignGroupNodes, I
realised that we can do better. This patch replaces th...
Iustin Pop
02:41 pm Revision 687c10d9: Generalize the OpCode-should-be-in-mcpu test
Currently, the unittest TestDispatchTable in mcpu unittest does a
hard-coded approach to test whether an opcode shoul...
Iustin Pop
11:47 am Revision bde65914: Document the intended use of (vm|master)_capable
This patch adds the intended usage scenarios of these two flags.
Additionally it corrects the tag valid charset.
Si...
Iustin Pop
11:47 am Revision a1cef11c: IAllocator: fix breakage for non-vm_capable nodes
Currently, the IAllocator doesn't know that non-vm_capable nodes
should not be queried for hypervisor/instance inform...
Iustin Pop

01/07/2011

06:05 pm Revision abd42b0a: Fix syntax error with Python 2.4
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
05:47 pm Revision b577dac4: gnt-instance info: Show disk template
The data was already there, but not shown.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin...
Michael Hanselmann
05:39 pm Revision 1bc47d38: Convert node evacuation to multi-group
This patch does the necessary changes to make the new tryMGEvac work
correctly: each instance remains inside its prim...
Iustin Pop
05:39 pm Revision 2ca68e2b: Evacuation: extract the inner fold function
This makes the code more readable, which will help with the
multi-group evacuation.
Signed-off-by: Iustin Pop <iusti...
Iustin Pop
05:39 pm Revision c9224fa4: Rapi: fully evaluate the body in getUrl
Currently, the Rapi.getUrl function returns the body without
evaluating it, and the other functions (loadData, parseD...
Iustin Pop
05:39 pm Revision 4d8e5008: Rapi: move the curl options list to a separate var
A small cleanup, this just moves the options to a separate list to
avoid instantiation at every call.
Signed-off-by:...
Iustin Pop
05:39 pm Revision 693342ad: hscan: fix long-standing bug with node memory data
There is a long-standing bug in hscan, due to the serialization
workflow. Basically, hscan loads data from the remote...
Iustin Pop
05:39 pm Revision 55da339e: Node: add and export a 'used disk' function
This is similar to iMem.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Balazs Lecz <leczb@google.com>
Iustin Pop
05:39 pm Revision 425af248: Node: Export the instance memory function
This exports the iMem function as a standalone function, instead of
being hardcoded in showField.
Signed-off-by: Ius...
Iustin Pop
05:39 pm Revision 4bc33d60: Instance relocation: stay within the current group
This patch adds a new top-level relocation function that restricts the
relocation to the instance's group, and switch...
Iustin Pop
05:34 pm Revision 55cc0a44: Use new console information in hypervisor abstraction
This makes use of the new way of returning console information from the
master daemon. Unittests are included.
Signe...
Michael Hanselmann
05:34 pm Revision 25ce3ec4: Introduce verbose opcode result for console
With this patch OpConnectConsole will no longer just return a command
with arguments, but rather a detailed descripti...
Michael Hanselmann
01:02 pm Revision 2a917701: luxi.Client: Add function to close connection
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
12:27 pm Revision 047686c5: Merge branch 'devel-2.3'
* devel-2.3:
Remove unused import from client.gnt_instance
gnt-instance console: Improve error reporting
Increa...
Michael Hanselmann
12:01 pm Revision ab92578a: Remove unused import from client.gnt_instance
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Adeodato Simo <dato@google.com>
Michael Hanselmann
11:22 am Revision 49e4c837: Updating hooks documentation with missing environment variables
Signed-off-by: David Knowles <dknowles@google.com>
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Iustin ...
David Knowles

01/06/2011

06:52 pm Revision 678aa6d3: gnt-instance console: Improve error reporting
If the SSH command fails, this will give a more detailed error
message than before.
Signed-off-by: Michael Hanselman...
Michael Hanselmann
06:42 pm Revision eaf7d41d: Increase timeout for connection on remote import
The source cluster has to shut down an instance before it can be
exported. Doing so can take a while, but the default...
Michael Hanselmann
06:42 pm Revision bd275a93: import-export: Improve timeout error reporting
When the source cluster takes too long to create a snapshot, the
destination would time out. Unfortunately no good er...
Michael Hanselmann
05:19 pm Revision 016acd85: List recorded powered state in gnt-node info
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
05:19 pm Revision 52b5d286: Support query of node field 'powered'
This field is based on OOB support and is only available if there's oob
support for that node.
Signed-off-by: René N...
René Nussbaumer
03:02 pm Revision 7ab8b7d7: qa_group.py: reimplement query tests with qa_utils
Now that group queries use query2 infrastructure, update the QA tests to
use the generic functions in qa_utils.py.
S...
Adeodato Simo
03:02 pm Revision d8b7ff5f: ganeti.query_unittest.py: add tests for group queries
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Adeodato Simo
03:02 pm Revision ca4ac9c9: Convert “gnt-group list” to query2
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Adeodato Simo
03:02 pm Revision 31a5d995: cmdlib.py: convert LUQueryGroups to query2
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Adeodato Simo
03:01 pm Revision a0d64991: cmdlib.py: move _GetQueryImplementation to end of file
_GetQueryImplementation() uses _QUERY_IMPL, which list all query type
implementations. By moving it to the end of the...
Adeodato Simo
03:01 pm Revision 8e21cfc0: query.py: add definitions for node group queries
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Adeodato Simo
03:01 pm Revision e070c663: constants.py: define QR_GROUP resource
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Adeodato Simo
03:01 pm Revision e571ee44: ganeti.query_unittest.py: test lock fields too
Additionally, change TestQueryFields.testSomeFields() to handle lists of
fields shorter than 20 elements.
Signed-off...
Adeodato Simo
12:33 pm Revision b98bb41e: lvmstrap: also test sysfs holders
If a device has entries in its holder directory
(/sys/block/$name/holders), it means that some kernel system "uses"
t...
Iustin Pop
12:33 pm Revision 577d45d4: lvmstrap: add support for non-partitioned md disks
This patch, originally written by Marc Schmitt <mschmitt@google.com>,
adds support for MD devices (used in a non-part...
Iustin Pop
12:33 pm Revision d2cd6944: RPC: mark jobqueue functions as URGENT
Recently, we've seen more and more cases of a specific breakage
pattern in Ganeti: master candidates which are semi-a...
Iustin Pop
12:29 pm Revision 362c5845: Merge branch 'devel-2.3'
* devel-2.3:
cfgupgrade: Remove unused “program” variable
cfgupgrade: Check master name, clarify question
Makef...
Michael Hanselmann
12:27 pm Revision 9d199a65: cfgupgrade: Remove unused “program” variable
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: René Nussbaumer <rn@google.com>
Michael Hanselmann
12:21 pm Revision 8abc36f1: QA: Remove 'oob_program=default' on gnt-cluster modify
On cluster level there's no 'default' because it's the highest cascading
level. Due to this 'default' is a valid valu...
René Nussbaumer
12:08 pm Revision 24d16f76: Convert “gnt-debug locks” to query2
Locks can now be queried using “Query(what="lock", …)” over LUXI.
Signed-off-by: Michael Hanselmann <hansmi@google.c...
Michael Hanselmann
12:06 pm Revision 011974df: cfgupgrade: Check master name, clarify question
- Check hostname and abort if it doesn't match contents of
“ssconf_master_node”, can be overridden using “--ignore-...
Michael Hanselmann
12:06 pm Revision e8deef56: Makefile: Merge build-time reST copying
No need to copy this snippet around, “make” can work harder for us.
Signed-off-by: Michael Hanselmann <hansmi@google...
Michael Hanselmann
12:06 pm Revision 7a03d293: Move doc/upgrade.rst to UPGRADE, copy at build-time
This will allow distributions to install the file as text documentation.
Signed-off-by: Michael Hanselmann <hansmi@g...
Michael Hanselmann

01/05/2011

07:42 pm Revision 35dd762d: Import upgrade notes into documentation
This patch formats the upgrade notes currently in the wiki[1] as reST
and adds them to the documentation.
[1] http:/...
Michael Hanselmann
07:28 pm Revision f7c8f153: Fix OpSetInstanceParams.disk_template check
When moving the opcode parameters I moved two or three checks from an
opcode's CheckArguments function to the type ch...
Michael Hanselmann
06:14 pm Revision e23881ed: RAPI: Add resource to grow instance disk
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
05:57 pm Revision b714765a: Reword "one of hmgt" as "one of h/m/g/t" for clarity
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Adeodato Simo
02:41 pm Revision f55312bd: QA: Adding new cluster verify cases
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
02:41 pm Revision f5677ab3: out of band verification in gnt-cluster verify
This adds the verify tests for out of band management
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Mi...
René Nussbaumer
02:41 pm Revision 16f41f24: Adding additional VerifyNode checks to backend
This adds checks for out of band support. The helpers have to exist and
they have to be executable.
Signed-off-by: R...
René Nussbaumer
01:27 pm Revision 62e999a5: RAPI: Add resource to modify cluster
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
01:27 pm Revision cfaeaaf7: baserlib: Add function for filling opcodes
This function makes use of the opcode parameters which now live
directly in the opcode. A number of RAPI resources ca...
Michael Hanselmann
12:42 pm Revision 65ffb373: Improve opcode summary tests
Test full summary instead of just format.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin ...
Michael Hanselmann
12:42 pm Revision 1cbef6d8: Migrate code verifying opcode parameters to base class
This allows the function to be used in other places as well.
An optional parameter is added to control whether defaul...
Michael Hanselmann
12:40 pm Revision dbc96028: Improve tests for OP_ID
… by detecting duplicates.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@goo...
Michael Hanselmann
12:40 pm Revision 0bff0b12: cmdlib: Remove opcode parameters
Remove the parameter definitions and use those from the opcode classes
instead. Small style changes are also made (em...
Michael Hanselmann
12:40 pm Revision 65e183af: opcodes: Add opcode parameter definitions
This is the first step for migrating them from cmdlib. A metaclass is
used to define “__slots__” upon class creation ...
Michael Hanselmann
12:39 pm Revision a6070ef7: query2: Add new field status “offline”
This allows “gnt-node list” to show the difference between modes marked
offline and nodes with e.g. RPC errors (“(nod...
Michael Hanselmann

01/04/2011

07:18 pm Revision ac63b093: QA: Fix out-of-band tests
- Handle situations with no non-master node
- Expand node name to make test work when configuration just has short
...
Michael Hanselmann
05:10 pm Revision ecdf0398: Add unittests for ht module
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
05:10 pm Revision 8568de9e: ht.TInt: Exclude boolean values
See inline comment.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
04:42 pm Revision 72729d6e: Cleanup bootstrap.SetupNodeDaemon
- Code formatting
- Use ShellQuote for one argument
- Remove variables no longer used after commit 9294514d
Signed-o...
Michael Hanselmann

12/31/2010

02:52 pm Revision cee32223: Merge branch 'devel-2.3'
* devel-2.3:
Fix typo in gnt-instance manpage
jqueue: Fix cancelling while in waitlock in queue
cli: Extend mes...
Michael Hanselmann
02:37 pm Revision 2a0f9372: Fix build errors with ganeti-listrunner
- Remove non-ASCII character from manpage
- Reformat docstring for epydoc in script
These caused build breakage on s...
Michael Hanselmann
02:37 pm Revision ab737f24: Fix typo in gnt-instance manpage
s/os-name/os-type/. This was reported in issue 133.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-b...
Michael Hanselmann

12/30/2010

07:51 pm Revision 2466c0fd: cli: Change “<…>” in query output to “(…)”
This should reduce the amount of damage in case of accidential copy &
paste.
Signed-off-by: Michael Hanselmann <hans...
Michael Hanselmann
07:51 pm Revision da7e44ee: Initial import of listrunner
This tool was used and worked on internally for quite a long time. We
decided to include it in Ganeti.
Known issues:...
Michael Hanselmann
03:56 pm Revision cb0c77ff: Container: remove fromAssocList
Container.fromAssocList is just a re-export of IntMap.fromList; it
makes sense to remove it and simply export the ori...
Iustin Pop
03:56 pm Revision a3eee4ad: Parallelize the balancing computations
This small patch changes the balancing computation to work in
parallel, if possible.
While the normal linking is aga...
Iustin Pop
03:46 pm Revision d5ccec02: Allocation routines: return list of resource stats
Currently, the allocation routines (iterateAlloc and tieredAlloc)
return only the final state of the cluster and the ...
Iustin Pop
03:43 pm Revision f52dadb2: Fix updating of available (V)CPUs in CStats
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Balazs Lecz <leczb@google.com>
Iustin Pop
03:43 pm Revision fd3fe74d: RAPI: implement backwards compat with Ganeti 2.3
This is a cheap way to get back compatibility with Ganeti 2.3 (and
lower) in the RAPI backend. It is however not very...
Iustin Pop
03:42 pm Revision a083e855: Document Utils.tryFromObj
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Balazs Lecz <leczb@google.com>
Iustin Pop
03:41 pm Revision 6bc39970: Add 'Read' instances for most objects
This allows a cluster structure to be easily serialized via "read";
together with the already existing instances of S...
Iustin Pop
11:51 am Revision 6eaa7bb8: hspace: abstract the listing of the allocation map
Just another cleanup of duplicate code.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Balazs Lecz <lecz...
Iustin Pop
11:49 am Revision 33e44f0c: Add maybePrintInsts for the instance listing
This again abstracts a bit the instance listing. Due to the fact that
I don't want to import Cluster.hs in CLI.hs, we...
Iustin Pop
11:49 am Revision 417f6b50: Add maybePrintNodes for abstracting the node list
Since this bit of code (including the “when (isJust …)” is used in
multiple places, let's abstract it in a function t...
Iustin Pop
11:48 am Revision 4188449c: Add maybeSaveData for cluster state saving
This functionality was replicated in multiple places (hbal & hspace),
so we abstract it for better clarity.
Addition...
Iustin Pop
11:45 am Revision 86ea20e8: Simplify the codeflow in hscan.hs
We change processData to just load the data, and return a simpler
type.
Signed-off-by: Iustin Pop <iustin@google.com...
Iustin Pop
11:45 am Revision c0e31451: Convert Text.serializeCluster to ClusterData
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Balazs Lecz <leczb@google.com>
Iustin Pop
11:44 am Revision f4f6eb0b: Convert the rest of the pipeline to ClusterData
This patch converts the backends and mergeData to the new ClusterData
type.
Signed-off-by: Iustin Pop <iustin@google...
Iustin Pop
11:44 am Revision 017a0c3d: Move part of the loader pipeline to ClusterData
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Balazs Lecz <leczb@google.com>
Iustin Pop
11:40 am Revision 34c00528: Convert Loader.RqType to ClusterData
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Balazs Lecz <leczb@google.com>
Iustin Pop
11:38 am Revision 7b6e99b3: Add a new type ClusterData
This will be used to hold all the disparate uses of the cluster data:
we have either tuples with these four elements,...
Iustin Pop
11:38 am Revision 45cb5963: Ajust hspace manpage for the new simulation syntax
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Balazs Lecz <leczb@google.com>
Iustin Pop
11:38 am Revision 6c7448bb: Simulation backend: read the allocation policy too
This patch moves the allocation policy from hardcoded to be read from
the given specification, and extends the error ...
Iustin Pop
11:36 am Revision 9983063b: Simulation backend: allow multiple node groups
This patch changes the behaviour of the --simulation option to be an
incremental option, where each new use defines a...
Iustin Pop

12/29/2010

05:48 pm Revision 30c945d0: jqueue: Fix cancelling while in waitlock in queue
Since the recent change to leave jobs in the “waitlock” status (commit
5fd6b6947), cancelling a job while it's back i...
Michael Hanselmann

12/24/2010

12:16 pm Revision c4f10abb: LUInstanceRename: log result of name resolving
While the LU does return the final name, it's useful to log the actual
DNS resolving process (input and output) in or...
Iustin Pop

12/23/2010

05:52 pm Revision 54cffd50: Merge branch 'stable-0.2'
* stable-0.2:
Move man files to man/ subdirectory
Conflicts (all removed):
man/hail.1
man/hbal.1
...
Iustin Pop
05:38 pm Revision ab0521f9: Move man files to man/ subdirectory
This is just change on the 0.2 branch to synchronize with the master
branch. It allows automated builds to work bette...
Iustin Pop
05:17 pm Revision 50211c86: Merge branch 'stable-0.2'
* devel-0.2:
Update NEWS file for 0.2.8 release
hbal: return meaningful exit code for job failures
Change the b...
Iustin Pop
04:16 pm Revision d7f18640: Update NEWS file for 0.2.8 release
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Adeodato Simo <dato@google.com>
Iustin Pop
02:26 pm Revision 23448f82: hbal: return meaningful exit code for job failures
Currently, LUXI job failures only display a warning message, while
still returning a success exit code. We change hba...
Iustin Pop
02:25 pm Revision 4715711d: Change the balancing function
Currently the balancing function is a modified version of the standard
deviation (stddev divided by list length), due...
Iustin Pop
11:16 am Revision 949397c8: Move some tiered spec functionality to Cluster.hs
This splits out a bit of code from hspace.hs and moves it into its own
function in Cluster.hs.
Signed-off-by: Iustin...
Iustin Pop

12/21/2010

08:14 pm Revision c694367b: Fix QA for “list-fields” commands
The list of fields is not only sorted, but sorted in a nice way.
Signed-off-by: Michael Hanselmann <hansmi@google.co...
Michael Hanselmann
08:14 pm Revision 0f9294f7: Remove utils.FormatTimestampWithTZ
Long story short: time.strftime("%Z", time.localtime()) doesn't work,
even though it's documented to be equivalent to...
Michael Hanselmann
08:14 pm Revision 9e691184: Ensure temp files from RunCmd tests are removed
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
03:23 pm Revision 3536c792: Allow customisation of the disk index separator
As per issue 124, some Xen versions (or packaging) don't deal nicely
with the colon being part of a disk name. Theref...
Iustin Pop
03:18 pm Revision 9f37f689: utils: Timezone fixes and tests
- Update docstrings to explicitely mention Epoch
- Fix timezone bug in FormatTimestampWithTZ, where it would
use GM...
Michael Hanselmann
03:18 pm Revision b60fcb6f: query: Add wrapper for creating response object
It'll be used for querying locks.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <ius...
Michael Hanselmann
03:18 pm Revision aa29e95f: Move QueryFields to query module
Also replace “sorted” with “utils.NiceSort” now that it supports a key
function.
Signed-off-by: Michael Hanselmann <...
Michael Hanselmann

12/20/2010

11:23 pm Revision cd4c86a8: cli: Extend message for LUXI timeouts
Point out that jobs already submitted continue to run.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewe...
Michael Hanselmann
11:23 pm Revision 28e3e216: Fix timeout handling in LUXI client
If the socket can't be read in time, it raises “socket.timeout”, for
which there is special handling code. Unfortunat...
Michael Hanselmann
04:42 pm Revision 82d25bbb: Merge branch 'devel-2.3'
* devel-2.3:
Prepare 2.3.1 release
Fix disk status verification in LUClusterVerify
Conflicts:
NEWS: Trivial
Si...
Michael Hanselmann
04:33 pm Revision 43217ac7: Merge branch 'stable-2.3' into devel-2.3
* stable-2.3:
Prepare 2.3.1 release
Fix disk status verification in LUClusterVerify
Signed-off-by: Michael Hanse...
Michael Hanselmann
04:18 pm Revision a8c68e44: Add QA scripts to checked Python code
pylint is not yet included as the code needs some work for that.
Signed-off-by: Michael Hanselmann <hansmi@google.co...
Michael Hanselmann
04:18 pm Revision 930e77d1: ganeti-qa: Wrap lines longer than 80 chars
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
03:22 pm Revision bb2dc35a: Prepare 2.3.1 release
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
02:23 pm Revision aec636b9: hail: display group names in info messages
This patch switches from the group index to the group name for the
informational messages in the hail results.
Signe...
Iustin Pop
02:23 pm Revision e4d8071d: Text.hs: also save the group data when serialising
This should have been in the previous patches, but sent separate for
clarity.
The live-test script is updated to rea...
Iustin Pop
02:23 pm Revision e0c85e08: hbal: display the group name in the multi-group case
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Balazs Lecz <leczb@google.com>
Iustin Pop
02:23 pm Revision 10ef6b4e: Change the Node.group attribute
Currently, the Node.group attribute is the UUID of the group, as until
recently Ganeti didn't export the node group p...
Iustin Pop
02:23 pm Revision 748d5d50: Generalise the sepSplit function
Currently it works on splitting strings by individual chars, but we
can generalise it to split lists by list elements...
Iustin Pop
02:23 pm Revision a604456d: Text.hs: change to use sepSplit
The new sepSplit function can split based on empty lines, so we remove
the hackish text splitting from before and sim...
Iustin Pop
02:23 pm Revision 73206d0a: IAllocator: respect the alloc_policy for groups
This patch changes the allocate mode to respect the alloc_policy for
groups. It does this by changing the sort key fr...
Iustin Pop
02:23 pm Revision 716c6be5: Text.hs: serialize cluster tags when writing data
This is the complement to the reading part. Now the live-test works
correctly against clusters with configured exclus...
Iustin Pop
02:23 pm Revision 1a3cc8ad: live-test: support multi-group clusters
Since currently hbal can only work on single groups at a time, we need
to be able to specify the target group when ru...
Iustin Pop
02:23 pm Revision b2ba4669: Implement a JSON instance for AllocPolicy
This will allow reading this attribute via the Rapi/Luxi backends.
Signed-off-by: Iustin Pop <iustin@google.com>
Rev...
Iustin Pop
02:23 pm Revision 2ddabf4f: Rapi: read the allocation policy from the cluster
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Balazs Lecz <leczb@google.com>
Iustin Pop
02:23 pm Revision c4c37257: Luxi: read the allocation policy from the cluster
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Balazs Lecz <leczb@google.com>
Iustin Pop
02:23 pm Revision f4c7d37a: Text: read/write the allocation policy
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Balazs Lecz <leczb@google.com>
Iustin Pop
02:23 pm Revision 01fec0a1: hail: allow overriding cluster data from requests
Currently, it's not easy to generate “fake” IAllocator request files
for hail. As such, testing on simulated clusters...
Iustin Pop
02:23 pm Revision afcd5a0b: Text.hs: also read cluster tags from the data file
This means that a file with the correct information is as accurate as
the other backends (Luxi, Rapi). Serialization ...
Iustin Pop
02:23 pm Revision a679e9dc: Rework the data loader pipelines to read groups
This (invasive) patch changes all the loader pipelines to read the node
groups data from the cluster, via the various...
Iustin Pop
02:22 pm Revision f4531f51: Add lookupGroup utility function
This will be used in the various backends similar to the lookupNode
function.
Signed-off-by: Iustin Pop <iustin@goog...
Iustin Pop
02:20 pm Revision 0dc1bf87: Add a new Group.hs module describing node groups
This is not yet used by the rest of the code.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Balazs Lecz...
Iustin Pop
02:20 pm Revision edd0a48f: Add the new OpQueryGroups opcode definition
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Balazs Lecz <leczb@google.com>
Iustin Pop

12/17/2010

06:51 pm Revision abb24834: Adapt QA for change in behaviour
As we can't test this on master anymore (if we flag the node offline we
would change master role on master) we use th...
René Nussbaumer
06:51 pm Revision dd94e9f6: gnt-node modify: Adding --node-powered=yes|no
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
06:50 pm Revision 0ecef64c: LUSetNodeParams: Add support for powered state
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
06:50 pm Revision 78758f1e: LUSetNodeParams/LUOobCommand respect offline/powered
This patch makes sure we cross verify the state the node is
in with our view:
power off -> Node has to be set offlin...
René Nussbaumer
06:50 pm Revision d363797e: gnt-node power: Mark also offline when powering off
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael...
René Nussbaumer
06:42 pm Revision 1ef6e776: Merge branch 'devel-2.3'
* devel-2.3:
QA: Run cluster-verify as part of all instance tests
QA: Fix typo and add “not”
ensure-dirs: Speed...
Michael Hanselmann
05:51 pm Revision 153533f3: utils.NiceSort: Use sorted(), add keyfunc, unittests
This patch changes utils.NiceSort to use the built-in “sorted()” and
gets rid of the intermediate list. Instead of wr...
Michael Hanselmann
05:47 pm Revision d27150a9: QA: Run cluster-verify as part of all instance tests
“gnt-cluster verify” looks at some per-instance information as well, so
it should be run for each instance type QA te...
Michael Hanselmann
05:45 pm Revision 65924a12: QA: Fix typo and add “not”
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
05:36 pm Revision 7c2e922e: ShutdownInstanceDisks: accept offline secondaries
For secondary node that is offline, we should not consider that the
disk shutdown has failed, as it can never succeed...
Iustin Pop
03:00 pm Revision 2c0f74f2: RpcResult: simplify some asserts
data ≫ code, eom.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Iustin Pop

12/16/2010

04:20 pm Revision 196d70fa: ensure-dirs: Speed up when using big queues
The “ensure-dirs” script as included in Ganeti 2.3 is very slow when
working with big queues requiring a change of pe...
Michael Hanselmann
03:59 pm Revision 4c3ac53a: LUAddNode: default ndparams to empty dict when not provided
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
09:57 am Revision a1de4b18: QA: Add some basic OOB tests
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
09:57 am Revision b9955569: QA: Allow upload of string data
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
« Previous
Next »
 

Also available in: Atom