Statistics
| Branch: | Tag: | Revision:

root @ 016acd85

# Date Author Comment
016acd85 01/06/2011 05:19 pm René Nussbaumer

List recorded powered state in gnt-node info

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

52b5d286 01/06/2011 05:19 pm René Nussbaumer

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é Nussbaumer <>
Reviewed-by: Michael Hanselmann <>

7ab8b7d7 01/06/2011 03:02 pm Adeodato Simo

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.

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

d8b7ff5f 01/06/2011 03:02 pm Adeodato Simo

ganeti.query_unittest.py: add tests for group queries

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

ca4ac9c9 01/06/2011 03:02 pm Adeodato Simo

Convert “gnt-group list” to query2

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

31a5d995 01/06/2011 03:02 pm Adeodato Simo

cmdlib.py: convert LUQueryGroups to query2

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

a0d64991 01/06/2011 03:01 pm Adeodato Simo

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 file, we ensure all such
classes are defined by the time we list them.

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

8e21cfc0 01/06/2011 03:01 pm Adeodato Simo

query.py: add definitions for node group queries

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

e070c663 01/06/2011 03:01 pm Adeodato Simo

constants.py: define QR_GROUP resource

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

e571ee44 01/06/2011 03:01 pm Adeodato Simo

ganeti.query_unittest.py: test lock fields too

Additionally, change TestQueryFields.testSomeFields() to handle lists of
fields shorter than 20 elements.

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

b98bb41e 01/06/2011 12:33 pm Iustin Pop

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"
that device, and hence should not be considered available.

This patch adds a new 'in-use' check based on this sysfs test, and...

577d45d4 01/06/2011 12:33 pm Iustin Pop

lvmstrap: add support for non-partitioned md disks

This patch, originally written by Marc Schmitt <>,
adds support for MD devices (used in a non-partitioned mode). I
abstracted all the original startswith('md') checks into separate
functions, and also moved the supported disk types to a list....

d2cd6944 01/06/2011 12:33 pm Iustin Pop

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-alive (as in, they
respond to ping, they can complete a TCP/SSL handshake, but otherwise
the root filesystem is broken) cause lots of confusion within masterd....

362c5845 01/06/2011 12:29 pm Michael Hanselmann

Merge branch 'devel-2.3'

  • devel-2.3:
    cfgupgrade: Remove unused “program” variable
    cfgupgrade: Check master name, clarify question
    Makefile: Merge build-time reST copying
    Move doc/upgrade.rst to UPGRADE, copy at build-time
    Import upgrade notes into documentation...
9d199a65 01/06/2011 12:27 pm Michael Hanselmann

cfgupgrade: Remove unused “program” variable

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

8abc36f1 01/06/2011 12:21 pm René Nussbaumer

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 value and doesn't mean to remove
the value from the dict like it does on the other levels. To overcome...

24d16f76 01/06/2011 12:08 pm Michael Hanselmann

Convert “gnt-debug locks” to query2

Locks can now be queried using “Query(what="lock", …)” over LUXI.

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

011974df 01/06/2011 12:06 pm Michael Hanselmann

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-hostname”
parameter.
- Clarify confirmation question and don't mention instances anymore....

e8deef56 01/06/2011 12:06 pm Michael Hanselmann

Makefile: Merge build-time reST copying

No need to copy this snippet around, “make” can work harder for us.

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

7a03d293 01/06/2011 12:06 pm Michael Hanselmann

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 <>
Reviewed-by: Iustin Pop <>

35dd762d 01/05/2011 07:42 pm Michael Hanselmann

Import upgrade notes into documentation

This patch formats the upgrade notes currently in the wiki1 as reST
and adds them to the documentation.

[1] http://code.google.com/p/ganeti/wiki/UpgradeNotes

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

f7c8f153 01/05/2011 07:28 pm Michael Hanselmann

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 checks. This was one of
them and unfortunately I didn't notice the parameter can be None.

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

e23881ed 01/05/2011 06:14 pm Michael Hanselmann

RAPI: Add resource to grow instance disk

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

b714765a 01/05/2011 05:57 pm Adeodato Simo

Reword "one of hmgt" as "one of h/m/g/t" for clarity

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

f55312bd 01/05/2011 02:41 pm René Nussbaumer

QA: Adding new cluster verify cases

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

f5677ab3 01/05/2011 02:41 pm René Nussbaumer

out of band verification in gnt-cluster verify

This adds the verify tests for out of band management

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

16f41f24 01/05/2011 02:41 pm René Nussbaumer

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: René Nussbaumer <>
Reviewed-by: Michael Hanselmann <>

cfaeaaf7 01/05/2011 01:27 pm Michael Hanselmann

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 can now be simplified.

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

62e999a5 01/05/2011 01:27 pm Michael Hanselmann

RAPI: Add resource to modify cluster

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

65ffb373 01/05/2011 12:42 pm Michael Hanselmann

Improve opcode summary tests

Test full summary instead of just format.

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

1cbef6d8 01/05/2011 12:42 pm Michael Hanselmann

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 default
values should be set. Unittests are added, providing full
coverage.

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

dbc96028 01/05/2011 12:40 pm Michael Hanselmann

Improve tests for OP_ID

… by detecting duplicates.

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

0bff0b12 01/05/2011 12:40 pm Michael Hanselmann

cmdlib: Remove opcode parameters

Remove the parameter definitions and use those from the opcode classes
instead. Small style changes are also made (empty lines, wrapping).

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

65e183af 01/05/2011 12:40 pm Michael Hanselmann

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 time (not instantiation).

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

a6070ef7 01/05/2011 12:39 pm Michael Hanselmann

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 (“(nodata)”). node1 is the
master, node2's node daemon crashed and node3 is marked offline:

$ gnt-node list -o name,offline,dtotal,dfree...

ac63b093 01/04/2011 07:18 pm Michael Hanselmann

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
names (e.g. “node1” instead of “node1.example.com”)

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

ecdf0398 01/04/2011 05:10 pm Michael Hanselmann

Add unittests for ht module

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

8568de9e 01/04/2011 05:10 pm Michael Hanselmann

ht.TInt: Exclude boolean values

See inline comment.

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

72729d6e 01/04/2011 04:42 pm Michael Hanselmann

Cleanup bootstrap.SetupNodeDaemon

- Code formatting
- Use ShellQuote for one argument
- Remove variables no longer used after commit 9294514d

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

cee32223 12/31/2010 02:52 pm Michael Hanselmann

Merge branch 'devel-2.3'

  • devel-2.3:
    Fix typo in gnt-instance manpage
    jqueue: Fix cancelling while in waitlock in queue
    cli: Extend message for LUXI timeouts
    Fix timeout handling in LUXI client

Conflicts:
man/gnt-instance.sgml: Trivial merge in gnt-instance.rst...

2a0f9372 12/31/2010 02:37 pm Michael Hanselmann

Fix build errors with ganeti-listrunner

- Remove non-ASCII character from manpage
- Reformat docstring for epydoc in script

These caused build breakage on some but not all distributions.

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

ab737f24 12/31/2010 02:37 pm Michael Hanselmann

Fix typo in gnt-instance manpage

s/os-name/os-type/. This was reported in issue 133.

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

2466c0fd 12/30/2010 07:51 pm Michael Hanselmann

cli: Change “<…>” in query output to “(…)”

This should reduce the amount of damage in case of accidential copy &
paste.

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

da7e44ee 12/30/2010 07:51 pm Michael Hanselmann

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:
- Code doesn't match rest of Ganeti (e.g. using “print” all over the
place, hardcoded calls to sys.exit deep in functions)...

30c945d0 12/29/2010 05:48 pm Michael Hanselmann

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 in the queue would break.
This patch handles these cases and adds a unittest.

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

c4f10abb 12/24/2010 12:16 pm Iustin Pop

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 order to help with the
diagnose of failures.

The patch also fixes the docstring of the Exec() function....

c694367b 12/21/2010 08:14 pm Michael Hanselmann

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 <>
Reviewed-by: Iustin Pop <>

0f9294f7 12/21/2010 08:14 pm Michael Hanselmann

Remove utils.FormatTimestampWithTZ

Long story short: time.strftime("%Z", time.localtime()) doesn't work,
even though it's documented to be equivalent to time.strftime("%Z").

$ TZ=America/Sao_Paulo python -c 'import time; print
time.strftime("%Z"), time.strftime("%Z", time.localtime())'...

9e691184 12/21/2010 08:14 pm Michael Hanselmann

Ensure temp files from RunCmd tests are removed

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

3536c792 12/21/2010 03:23 pm Iustin Pop

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. Therefore we add a
configure-time option for customising this.

Note: setting the separator to interesting values like / is not...

9f37f689 12/21/2010 03:18 pm Michael Hanselmann

utils: Timezone fixes and tests

- Update docstrings to explicitely mention Epoch
- Fix timezone bug in FormatTimestampWithTZ, where it would
use GMT/UTC when it should use the local timezone
- Add unittests for time formatting functions

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

b60fcb6f 12/21/2010 03:18 pm Michael Hanselmann

query: Add wrapper for creating response object

It'll be used for querying locks.

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

aa29e95f 12/21/2010 03:18 pm Michael Hanselmann

Move QueryFields to query module

Also replace “sorted” with “utils.NiceSort” now that it supports a key
function.

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

cd4c86a8 12/20/2010 11:23 pm Michael Hanselmann

cli: Extend message for LUXI timeouts

Point out that jobs already submitted continue to run.

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

28e3e216 12/20/2010 11:23 pm Michael Hanselmann

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. Unfortunately the exception block
was in the wrong order and “socket.error” caught it before.

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

82d25bbb 12/20/2010 04:42 pm Michael Hanselmann

Merge branch 'devel-2.3'

  • devel-2.3:
    Prepare 2.3.1 release
    Fix disk status verification in LUClusterVerify

Conflicts:
NEWS: Trivial

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

43217ac7 12/20/2010 04:33 pm Michael Hanselmann

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 Hanselmann <>
Reviewed-by: Iustin Pop <>

a8c68e44 12/20/2010 04:18 pm Michael Hanselmann

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 <>
Reviewed-by: Iustin Pop <>

930e77d1 12/20/2010 04:18 pm Michael Hanselmann

ganeti-qa: Wrap lines longer than 80 chars

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

bb2dc35a 12/20/2010 03:22 pm Michael Hanselmann

Prepare 2.3.1 release

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

abb24834 12/17/2010 06:51 pm René Nussbaumer

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 the first non master node we
find in the configuration

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

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...

d27150a9 12/17/2010 05:47 pm Michael Hanselmann

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 tests.

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

65924a12 12/17/2010 05:45 pm Michael Hanselmann

QA: Fix typo and add “not”

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

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 <>

196d70fa 12/16/2010 04:20 pm Michael Hanselmann

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 permissions on many or all
files.

$ find /var/lib/ganeti/queue/ | wc -l
52354

Before this change:...

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 <>

a1de4b18 12/16/2010 09:57 am René Nussbaumer

QA: Add some basic OOB tests

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

b9955569 12/16/2010 09:57 am René Nussbaumer

QA: Allow upload of string data

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...

ebb2a2a3 12/15/2010 03:42 pm Michael Hanselmann

Improve jqueue unittests

- Verify job file updates
- Ensure queue lock is released while executing opcode

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

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 <>

2214cf14 12/14/2010 03:23 pm Michael Hanselmann

QA: Extend unittests for query operations, add tests for list-fields

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

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

Update NEWS for new query infrastructure

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...

e7441f80 12/14/2010 01:54 pm Miguel Di Ciurcio Filho

Update manpages to display version 2.3

Signed-off-by: Miguel Di Ciurcio Filho <>
Reviewed-by: Michael Hanselmann <>

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 <>

ccc6345b 12/13/2010 09:27 pm Adeodato Simo

Add ganeti-kvm-poweroff.initd to .gitignore

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

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

More QA tests for group operations

This adds QA tests for the SetGroupParams operation, both for CLI and
RAPI. Additionally, it adds tests for add/rename/remove groups via RAPI,
which had not been included in a previous patch series. Finally, it also
tests setting "alloc_policy" (and, for the CLI, "ndparams") at group...

2bac48c4 12/13/2010 06:33 pm Adeodato Simo

Add some unit tests for ConfigWriter.AddNodeGroup()

Signed-off-by: Adeodato Simo <>
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 <>...