Statistics
| Branch: | Tag: | Revision:

root / lib @ dd94e9f6

# Date Author Comment
dd94e9f6 12/17/2010 06:51 pm René Nussbaumer

gnt-node modify: Adding --node-powered=yes|no

Signed-off-by: René Nussbaumer <>
Reviewed-by: Michael Hanselmann <>

0ecef64c 12/17/2010 06:50 pm René Nussbaumer

LUSetNodeParams: Add support for powered state

Signed-off-by: René Nussbaumer <>
Reviewed-by: Michael Hanselmann <>

78758f1e 12/17/2010 06:50 pm René Nussbaumer

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 offline
modify -O no -> Node has to be powered

Signed-off-by: René Nussbaumer <>...

d363797e 12/17/2010 06:50 pm René Nussbaumer

gnt-node power: Mark also offline when powering off

Signed-off-by: René Nussbaumer <>
Reviewed-by: Guido Trotter <>
Reviewed-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

1ef6e776 12/17/2010 06:42 pm Michael Hanselmann

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 up when using big queues
    Fix gnt-cluster verify with diskless instances

Conflicts:
lib/cmdlib.py: Trivial
qa/ganeti-qa.py: Trivial...

153533f3 12/17/2010 05:51 pm Michael Hanselmann

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 wrapping the items
ourselves, a key function is used. The caller can specify another key...

7c2e922e 12/17/2010 05:36 pm Iustin Pop

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 under this cluster
state and (by virtue of the fact that the secondary node is offline)...

2c0f74f2 12/17/2010 03:00 pm Iustin Pop

RpcResult: simplify some asserts

data ≫ code, eom.

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

4c3ac53a 12/16/2010 03:59 pm René Nussbaumer

LUAddNode: default ndparams to empty dict when not provided

Signed-off-by: René Nussbaumer <>
Reviewed-by: Michael Hanselmann <>

4f5c2533 12/15/2010 08:18 pm Adeodato Simo

Fix gnt-cluster verify with diskless instances

`gnt-cluster verify` was failing with KeyError if there was any
diskless instance in the cluster. This was because _CollectDiskInfo()
was not including these instances in the returned dictionary, but they
were expected to be present in LUVerifyCluster.Exec()....

861a296e 12/15/2010 06:50 pm Miguel Di Ciurcio Filho

Fix N+1 error message

The error contained a typo and is slightly cumbersome. It changes from:

- ERROR: node a: not enough memory on to accommodate failovers should peer node
b fail

to:

- ERROR: node a: not enough memory to accomodate instance failovers should node...

792af3ad 12/15/2010 05:35 pm René Nussbaumer

Rename (Op|LU)OutOfBand to (Op|LU)OobCommand

Signed-off-by: René Nussbaumer <>
Reviewed-by: Iustin Pop <>

50d54091 12/15/2010 05:30 pm Michael Hanselmann

Merge branch 'devel-2.3'

  • devel-2.3:
    jqueue: Keep jobs in “waitlock” while returning to queue
    Improve jqueue unittests
    Update manpages to display version 2.3

Conflicts:
man/ganeti-cleaner.sgml: Removed
man/ganeti-confd.sgml: Removed
man/ganeti-masterd.sgml: Removed...

5fd6b694 12/15/2010 03:42 pm Michael Hanselmann

jqueue: Keep jobs in “waitlock” while returning to queue

Iustin Pop reported that a job's file is updated many times while it
waits for locks held by other thread(s). After an investigation it was
concluded that the reason was a design decision for job priorities to...

abefdcff 12/15/2010 12:47 pm René Nussbaumer

Adding gnt-node power * commands

Signed-off-by: René Nussbaumer <>
Reviewed-by: Iustin Pop <>

1b386c69 12/15/2010 12:47 pm René Nussbaumer

Do the expanding of the node name in ExpandNames

Signed-off-by: René Nussbaumer <>
Reviewed-by: Iustin Pop <>

a36f605d 12/14/2010 05:21 pm Michael Hanselmann

client.gnt_node: Remove unnecessary lambda

Pylint complained that the “lambda may not be necessary”. Turns out it
was right.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: René Nussbaumer <>

b82c5ff5 12/14/2010 03:23 pm Michael Hanselmann

Convert “gnt-instance list” to query2

Signed-off-by: Michael Hanselmann <>
Reviewed-by: René Nussbaumer <>

7f5443a0 12/14/2010 03:23 pm Michael Hanselmann

Convert “gnt-node list” to query2

Signed-off-by: Michael Hanselmann <>
Reviewed-by: René Nussbaumer <>

ee3aedff 12/14/2010 03:23 pm Michael Hanselmann

cli: Add infrastructure for query2

A new function for formatting the query results is added,
``FormatTable``. This was determined to be easier and safer than
modifying the existing ``GenerateTable`` function while keeping
backwards compatibility for code not yet converted. The new code makes...

e61ae2cc 12/14/2010 01:51 pm Balazs Lecz

iallocator: Export node group allocation policy

Signed-off-by: Balazs Lecz <>
Reviewed-by: Michael Hanselmann <>

d2881c71 12/14/2010 12:32 pm René Nussbaumer

Adding --node-powered command line flag

Signed-off-by: René Nussbaumer <>
Reviewed-by: Michael Hanselmann <>

4a19bdc0 12/14/2010 12:32 pm René Nussbaumer

Set powered to True for added nodes

Signed-off-by: René Nussbaumer <>
Reviewed-by: Michael Hanselmann <>

b528a12d 12/14/2010 12:32 pm René Nussbaumer

Set recorded powered state for OOB calls

Signed-off-by: René Nussbaumer <>
Reviewed-by: Michael Hanselmann <>

25124d4a 12/14/2010 12:32 pm René Nussbaumer

Add new Node attribute powered

This is just a state of record field and does not necessary
reflect the reality.

Signed-off-by: René Nussbaumer <>
Reviewed-by: Michael Hanselmann <>

f18fab7d 12/13/2010 06:33 pm Adeodato Simo

Expose OpSetGroupParams in RAPI and RAPI client

This creates the /2/groups/<name>/modify resource; at the moment, only the
"alloc_policy" attribute can be modified.

Signed-off-by: Adeodato Simo <>
Reviewed-by: Michael Hanselmann <>

90e99856 12/13/2010 06:33 pm Adeodato Simo

Add the "alloc_policy" attribute to node groups

This can be set at group creation time and via OpSetGroupParams. The default
is "preferred", and existing node groups from previous Ganeti version will
get the attribute set to this value.

Signed-off-by: Adeodato Simo <>...

4da7909a 12/13/2010 06:33 pm Adeodato Simo

Add modification of node groups (OpCode/LU/CLI)

With this commit, only modification of the "ndparams" attribute is
supported.

Signed-off-by: Adeodato Simo <>
Reviewed-by: Guido Trotter <>

483be60d 12/13/2010 06:32 pm Adeodato Simo

Introduce OpAddGroup.ndparams and expose in CLI

Signed-off-by: Adeodato Simo <>
Reviewed-by: Guido Trotter <>

907af698 12/13/2010 06:32 pm Adeodato Simo

Fix sorting bug in LUQueryGroups

In LUQueryGroups.Exec(), NiceSort was being applied to group UUIDs, and
not to group names. We use a temporary name to UUID map to sort the list
of UUIDs by group name instead.

Signed-off-by: Adeodato Simo <>...

bd92fca1 12/13/2010 05:21 pm Michael Hanselmann

cmdlib: Sort list of fields for QueryFields

Signed-off-by: Michael Hanselmann <>
Reviewed-by: René Nussbaumer <>

0538c375 12/13/2010 05:21 pm Michael Hanselmann

objects: Add custom de-/serializing code for query responses

… and use them in cmdlib.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: René Nussbaumer <>

28b71a76 12/13/2010 05:19 pm Michael Hanselmann

LUXI: Add Query and QueryFields functions

Signed-off-by: Michael Hanselmann <>
Reviewed-by: René Nussbaumer <>

24d6d3e2 12/13/2010 05:15 pm Michael Hanselmann

objects: Add definitions for query requests and responses

Also update description of QueryFieldDefinition.name.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: René Nussbaumer <>

60cba7f8 12/13/2010 05:15 pm Michael Hanselmann

qlang: Add function to build simple filter

This will be used in clients to build the filters for query2.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: René Nussbaumer <>

145bea54 12/13/2010 05:15 pm Michael Hanselmann

query: Handle items missing timestamps

In upgraded configurations, some items might miss the “ctime” and/or
“mtime” values and need to be handled specially.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

38f9d2cf 12/13/2010 04:00 pm Guido Trotter

Add gnt-cluster modify --master-netdev

Although this might be a dangerous operation, it's still better to allow
it rather than requiring a hand-edit of the config file, should it be
necessary.

Signed-off-by: Guido Trotter <>
Reviewed-by: Michael Hanselmann <>

fcdf575b 12/10/2010 05:48 pm Michael Hanselmann

cmdlib: Convert instance query to new infrastructure

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

1c8addc6 12/10/2010 05:48 pm Michael Hanselmann

query: Add definition for instance queries

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

31ed0b58 12/09/2010 05:14 pm Guido Trotter

Merge branch 'devel-2.3'

  • devel-2.3:
    Fix rename for file-backed instances

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

d1a0ab50 12/09/2010 05:13 pm Guido Trotter

Merge branch 'devel-2.2' into devel-2.3

  • devel-2.2:
    Fix rename for file-backed instances

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

3721d2fe 12/09/2010 05:09 pm Guido Trotter

Fix rename for file-backed instances

Currently the code wrongly changes the disk logical/physical id
component representing the path from "$storage_dir/$iname/disk$seq" to
"$storage_dir/$iname/disk/$seq" (note the additional slash) breaking the
rename.

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

d0b98288 12/09/2010 05:03 pm René Nussbaumer

Check payload of OOB execution

Signed-off-by: René Nussbaumer <>
Reviewed-by: Iustin Pop <>

9d5198ad 12/09/2010 05:03 pm René Nussbaumer

Replace GetOobProgram by GetNdParams

This was due to a older review which used GetOobProgram but then
changed to GetNdParams. Forgot to adjust this in the LU before.

Signed-off-by: René Nussbaumer <>
Reviewed-by: Iustin Pop <>

1aa88d95 12/09/2010 05:03 pm René Nussbaumer

Ensure we just serialize JSON if there is data

Signed-off-by: René Nussbaumer <>
Reviewed-by: Iustin Pop <>

0092d621 12/09/2010 05:03 pm René Nussbaumer

Adding missing timeout parameter to rpc interface

Signed-off-by: René Nussbaumer <>
Reviewed-by: Iustin Pop <>

2db12a5a 12/09/2010 12:29 pm Guido Trotter

Allow rename of instance to same name

This basically is a no-op in ganeti, but forces the execution of the
os-specific rename scripts.

Signed-off-by: Guido Trotter <>
Reviewed-by: Michael Hanselmann <>

75cf411a 12/08/2010 09:45 pm Adeodato Simo

Introduce constant for the name of the initial node group

Signed-off-by: Adeodato Simo <>
Reviewed-by: Michael Hanselmann <>

e6e88de6 12/08/2010 09:45 pm Adeodato Simo

objects.py: fix minor error in NodeGroup.SimpleFillND docstring

The defaults are filled in from the node group defaults, not cluster
defaults (presumably copy & paste error).

Signed-off-by: Adeodato Simo <>
Reviewed-by: Michael Hanselmann <>

7407c2d5 12/08/2010 09:45 pm Adeodato Simo

constants.py: fix tiny grammar issue in comment

Signed-off-by: Adeodato Simo <>
Reviewed-by: Michael Hanselmann <>

85661274 12/08/2010 08:22 pm Michael Hanselmann

Node query: maintain order as requested

If the client requests certain names, their order should be maintained.
This is already done for instance queries. Moving this part into a
separate function allows sharing code.

Signed-off-by: Michael Hanselmann <>...

89ce4acc 12/08/2010 08:00 pm Michael Hanselmann

query: Improve error checking

- Show only field definition, not callback when a result row is
inconsistent
- Show list of duplicate titles if there are any (module load time)

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Adeodato Simo <>

70d8ccaf 12/08/2010 08:00 pm Michael Hanselmann

constants: Clarify comment for QRFS_NODATA

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Adeodato Simo <>

949f5e86 12/08/2010 08:00 pm Michael Hanselmann

cmdlib: Fix prototype for _QueryBase.DeclareLocks

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Adeodato Simo <>

a268af8d 12/08/2010 02:27 pm Adeodato Simo

Group operations: update ganeti.rapi.client with all node group operations

Signed-off-by: Adeodato Simo <>
Reviewed-by: Michael Hanselmann <>

0dbaa9ca 12/08/2010 02:27 pm Adeodato Simo

Group operations: expose add/remove/rename in RAPI

Signed-off-by: Adeodato Simo <>
Reviewed-by: Michael Hanselmann <>

66e884e1 12/08/2010 02:27 pm Adeodato Simo

Group operations: CLI code for add/remove/rename a group

Also, minor update to the 2.3 design doc, which was indicating the remove
operation would be `gnt-group del` and not `gnt-group remove` (the latter
being consistent with gnt-node and gnt-instance)....

4fe5cf90 12/08/2010 02:27 pm Adeodato Simo

Group operations: OpCode and LU for renaming a group

Signed-off-by: Adeodato Simo <>
Reviewed-by: Michael Hanselmann <>

94bd652a 12/08/2010 02:27 pm Adeodato Simo

Group operations: OpCode and LU for removing a group

Signed-off-by: Adeodato Simo <>
Reviewed-by: Michael Hanselmann <>

b1ee5610 12/08/2010 02:27 pm Adeodato Simo

Group operations: OpCode and LU for adding a group

Signed-off-by: Adeodato Simo <>
Reviewed-by: Michael Hanselmann <>

4edc512c 12/08/2010 02:27 pm Adeodato Simo

Expose new node group attributes in CLI and RAPI

Signed-off-by: Adeodato Simo <>
Reviewed-by: Michael Hanselmann <>

e11a1b77 12/08/2010 02:27 pm Adeodato Simo

config.py, objects.py: more node group support

In particular:

- add AddNodeGroup and RemoveNodeGroup in config.py
- refactor _UpgradeConfig to make use of _UnlockedAddNodeGroup
- add support for objects.NodeGroup in ConfigWriter.Update; add missing...
eb64da59 12/07/2010 04:51 pm René Nussbaumer

Adding new OpCode for OOB

Register OpCode and Logical Unit in mcpu.py

Signed-off-by: René Nussbaumer <>
Reviewed-by: Michael Hanselmann <>

445f735d 12/07/2010 04:51 pm René Nussbaumer

Adding new Logical Unit for OOB

Signed-off-by: René Nussbaumer <>
Reviewed-by: Michael Hanselmann <>

1698503a 12/06/2010 11:22 pm Michael Hanselmann

cmdlib: Don't sort list of nodes if names are given

This makes _GetWantedNodes consistent wit _GetWantedInstances.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Adeodato Simo <>

9f5a3645 12/06/2010 11:22 pm Michael Hanselmann

utils: Add function to find duplicates in sequence

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Adeodato Simo <>

049383d9 12/06/2010 08:48 pm Adeodato Simo

hv_kvm.py: fix some lint issues introduced in 4b784cf

In particular:

- break as couple lines that were longer than 80 characters
- fix a couple "comma not followed by a space"
- fix an unused variable warning

Signed-off-by: Adeodato Simo <>...

819ca990 12/06/2010 02:59 pm Guido Trotter

locking: add nodegroup lock level

This also changes masterd to initialize the ganeti's manager with the
current list of nodegroup uuids, and updates unittests

Signed-off-by: Guido Trotter <>
Reviewed-by: Michael Hanselmann <>

1177d70e 12/06/2010 02:59 pm Guido Trotter

Remove bridge NIC slot

This has been deprecated and unused since 2.1.

Signed-off-by: Guido Trotter <>
Reviewed-by: Michael Hanselmann <>

3f2eba25 12/03/2010 05:48 pm Miguel Di Ciurcio Filho

kvm: Make _GetKVMVersion() return integers

The current code returns the major, minor and rev portions of the version of
KVM as strings. Returning them as integers makes it easier to compare.

Signed-off-by: Miguel Di Ciurcio Filho <>...

4b784cf8 12/03/2010 05:48 pm Miguel Di Ciurcio Filho

kvm: Improve network syntax and tests

The current syntax when defining a NIC uses a pair of arguments, like this:

-net tap,vlan=0 -net nic,vlan=0,model=virtio

When using this pair, internally KVM will create a VLANState structure to send
ethernet frames between the guest NIC and the host tap device. This is...

3c8a73a4 12/02/2010 05:58 pm Michael Hanselmann

Merge branch 'devel-2.3'

  • devel-2.3:
    locking: Clarify message for removed locks
    Bump version for 2.3.1~rc1 release
    impexpd: Disable OpenSSL compression in socat if possible
    Bump version for 2.3.0

Conflicts:
NEWS: Trivial

Signed-off-by: Michael Hanselmann <>...

800ac399 12/02/2010 05:44 pm Iustin Pop

Make snapshots multi-vg aware

Currently, the Snapshot() function of LogicalVolume returns only the
logical volume path, with the assumption that we only have one VG. But
with the recent changes, it makes more sense to return the full data (vg
and lv) from it, so as to not require computing it in the master....

e0f9ed64 12/02/2010 05:21 pm Adeodato Simo

config.py: add error code to OpPrereqError

This adds a errors.ECODE_NOENT for OpPrereqError in LookupNodeGroup.

Signed-off-by: Adeodato Simo <>
Signed-off-by: Iustin Pop <>
Reviewed-by: Iustin Pop <>

913cc25e 12/02/2010 05:20 pm Adeodato Simo

config.py: replace "node group" with "nodegroup"

Though code uses "nodegroup" as data member name, strings that will be
read by the user should use "node group" (with a space), since "nodegroup"
is not a word.

Signed-off-by: Adeodato Simo <>...

84d7e26b 12/02/2010 03:46 pm Dmitry Chernyak

Make rpc.call_lv_list() VG-aware

Changes to backend.GetVolumeList():
- now accepts a list of VGs instead of one VG
- returns LV names in the form "vg_name/lv_name"

Corresponding changes are done in: VerifyDisks, VerifyNode,
LUCreateInstance (for both disk creation and adoption cases)...

d1b6262e 12/02/2010 03:32 pm Adeodato Simo

cmdlib: fix typos in the docstring for LogicalUnit

Signed-off-by: Adeodato Simo <>
Reviewed-by: Michael Hanselmann <>

bde8f481 12/02/2010 03:30 pm Adeodato Simo

opcodes: document OP_DSC_FIELD in OpCode and OpCode.Summary()

Signed-off-by: Adeodato Simo <>
Signed-off-by: Michael Hanselmann <>
Reviewed-by: Michael Hanselmann <>

e1137eb6 12/01/2010 09:45 pm Michael Hanselmann

locking: Clarify message for removed locks

Just being told that a lock doesn't exist can be confusing. One case
were this happens is when a job (e.g. instance modify) waits for a job
removing the instance (e.g. export with remove).

Signed-off-by: Michael Hanselmann <>...

a79ef2a5 12/01/2010 09:31 pm Adeodato Simo

Querying node groups: add luxi.REQ_QUERY_GROUPS

This also updates masterd.py.

Signed-off-by: Adeodato Simo <>
Signed-off-by: Iustin Pop <>
Reviewed-by: Iustin Pop <>

667dbd6b 12/01/2010 09:31 pm Adeodato Simo

Querying node groups: add client/gnt_group.py

This implements `gnt-group list`.

Signed-off-by: Adeodato Simo <>
Signed-off-by: Iustin Pop <>
Reviewed-by: Iustin Pop <>

0897dc97 12/01/2010 09:31 pm Adeodato Simo

Querying node groups: RAPI support

This implements /groups and /groups/%s RAPI end points.

Signed-off-by: Adeodato Simo <>
Signed-off-by: Iustin Pop <>
Reviewed-by: Iustin Pop <>

70a6a926 12/01/2010 09:31 pm Adeodato Simo

Querying node groups: LU/Opcode

This adds opcodes.OpQueryGroups and cmdlib.LUQueryGroups.

Signed-off-by: Adeodato Simo <>
Signed-off-by: Iustin Pop <>
Reviewed-by: Iustin Pop <>

29e8788e 12/01/2010 06:50 pm Michael Hanselmann

impexpd: Disable OpenSSL compression in socat if possible

This uses an option only available in patched socat versions. More
information is available from the INSTALL update included in this
patch.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Guido Trotter <>...

4f6014d4 12/01/2010 03:36 pm René Nussbaumer

Adding RPC infrastructure to call oob

Signed-off-by: René Nussbaumer <>
Reviewed-by: Iustin Pop <>

b2f29800 12/01/2010 03:36 pm René Nussbaumer

Adding backend functionality to call oob helper

Signed-off-by: René Nussbaumer <>
Reviewed-by: Iustin Pop <>

6204ee71 12/01/2010 03:36 pm René Nussbaumer

Adding ndparams to gnt-cluster init|modify and man page

This is reverting the revert and adaption to fix the issue which caused
the revert

Signed-off-by: René Nussbaumer <>
Reviewed-by: Iustin Pop <>

c033f259 12/01/2010 03:14 pm Michael Hanselmann

Merge branch 'devel-2.3'

  • devel-2.3:
    Correct version check for release candidates
    config.py: need explicit %-formatting in errors.OpPrereqError.
    Fix version check
    Add script to check version format

Conflicts:
Makefile.am

Signed-off-by: Michael Hanselmann <>...

c49b0092 11/30/2010 06:15 pm Adeodato Simo

config.py: need explicit %-formatting in errors.OpPrereqError.

Signed-off-by: Adeodato Simo <>
Reviewed-by: Michael Hanselmann <>

982ed68e 11/30/2010 05:04 pm Adeodato Simo

Trivial style fixes

Add missing closing brackets and fix a typo.

Signed-off-by: Adeodato Simo <>
Signed-off-by: Iustin Pop <>
Reviewed-by: Iustin Pop <>

aba8e78d 11/29/2010 10:00 pm Michael Hanselmann

cmdlib: Add base for query classes

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

72a84c96 11/29/2010 10:00 pm Michael Hanselmann

LUQueryNodes: Convert to new query model

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

83f72637 11/29/2010 10:00 pm Michael Hanselmann

Add OpQuery opcode

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

8235fe04 11/29/2010 10:00 pm Michael Hanselmann

Add node query definition

This includes a bunch of helper functions which can be helpful for other
queries, too. Unittests are included.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

4a917de6 11/29/2010 10:00 pm Michael Hanselmann

Add query constants

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

4ca96421 11/29/2010 10:00 pm Michael Hanselmann

Add utility class for definition-based data queries

While not immediately visible, using definition-based queries will allow
for a number of optimizations and simplifications. This patch just
contains the utility class used for executing queries.

Signed-off-by: Michael Hanselmann <>...

a123dc19 11/29/2010 10:00 pm Michael Hanselmann

Add simple query filter parser

This parser reads only the format described by the query2
design document: either an empty filter or an OR operator
with equality checks as operands.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

435e4bd6 11/29/2010 10:00 pm Michael Hanselmann

bootstrap: Set master node's {c,m}time on cluster init

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

c744425f 11/29/2010 07:52 pm Michael Hanselmann

RAPI: Implement OS parameters for instance reinstallation

Dictionaries are hard to encode into query strings, therefore the
“/2/instances/[instance_name]/reinstall” resource is changed to accept
its parameters via the request body. The old query string parameters are...

4f358f28 11/29/2010 07:44 pm Michael Hanselmann

Revert "InitCluster support for ndparams"

This reverts commit fd7f5b411ca61be2e4eff638773ba6c0fac7eb32.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>