Statistics
| Branch: | Tag: | Revision:

root / lib @ 185192f2

# Date Author Comment
185192f2 04/01/2014 04:53 pm Petr Pudlak

Ensure that mcpu always works with lists of locks

Apparently sometimes unicode strings appear out of nowhere (maybe from
the RPC calls) and then they are used as a list of characters (hail
Python). This patch adds a function that ensures we always have a...

47d2185e 04/01/2014 11:23 am Michele Tartara

Upgrade Roman numerals support

Ganeti prouds itself of its really good retro-compatibility and API stability.
Some of our users haven't upgraded their hardware in the last 2000 years (one
century more, one century less) and their Xen-PVM (Parchment and VelluM) does...

f6004843 03/31/2014 02:59 pm Petr Pudlak

Acquire config lock for RPC calls that check consistency

Since LUClusterVerifyGroup issues 3 RPC calls to get information from
nodes, and during every of these calls, the configuration can be
modified by somebody else, it's necessary to acquire a shared lock on...

579bd910 03/31/2014 02:59 pm Petr Pudlak

Make ConfigWriter internal lock re-entrant

The ConfigWriter now allows nested locking calls, and acquires
(releases) the config lock from WConfd only the first (last) time.

This is needed for blocks that acquire a lock on the configuration and
use synchronized configuration calls inside. While this should be...

419c3348 03/28/2014 03:01 pm Klaus Aehlig

Improve the heuristic of guessing masterd's livelock file

As, during startup, masterd uses livelock files for special
tasks, the lexicographically last livelock file for masterd
is the masterd_check_agreement_ file. However, when debugging,
we want the primary livelock file. Hence extend the prefix to...

bb4013df 03/28/2014 03:00 pm Klaus Aehlig

Make gnt-debug wconfd listlocks use only job ids (again)

Now that the product has been replaced by the sum we can, again,
identify jobs only by their job id.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

ef534188 03/28/2014 03:00 pm Klaus Aehlig

Use thread name as identifier for non-job tasks

Non-jobs requesting resources need to identify themselves by a string
describing uniquely what they do. For the time being (while masterd
still exists), these non-jobs are client requests to masterd. Fortunately,...

8d2896f5 03/28/2014 11:28 am Klaus Aehlig

Merge branch 'stable-2.11' into master

  • stable-2.11
    (no changes)
  • stable-2.10
    Fix specification of TIDiskParams
    Add unittests for instance modify parameter renaming
    Add renaming of instance custom params
    Add RAPI symmetry tests for groups
    Extend RAPI symmetry tests with RAPI-only aliases...
e69c93fb 03/27/2014 07:31 pm Hrvoje Ribicic

Merge branch 'stable-2.10' into stable-2.11

  • stable-2.10
    Fix specification of TIDiskParams
    Add unittests for instance modify parameter renaming
    Add renaming of instance custom params
    Add RAPI symmetry tests for groups
    Extend RAPI symmetry tests with RAPI-only aliases...
7bb22823 03/27/2014 06:50 pm Hrvoje Ribicic

Merge branch 'stable-2.9' into stable-2.10

  • stable-2.9
    Fix failing gnt-node list-drbd command
  • stable-2.8
    Add reason parameter to RAPI client functions

Signed-off-by: Hrvoje Ribicic <>
Reviewed-by: Klaus Aehlig <>
...

d65f3490 03/27/2014 06:15 pm Hrvoje Ribicic

Merge branch 'stable-2.8' into stable-2.9

  • stable-2.8
    Add reason parameter to RAPI client functions

Signed-off-by: Hrvoje Ribicic <>
Reviewed-by: Klaus Aehlig <>

c28d15f7 03/27/2014 04:43 pm Petr Pudlak

Fix configuration calls for LUBackupExport

Re-read the instance in-memory objects from WConfd after calls that
change its state.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

5a20e569 03/27/2014 04:43 pm Petr Pudlak

Fix configuration calls for LUInstanceRename

Re-read the instance in-memory objects from WConfd after calls
that change its state.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

48b37308 03/27/2014 04:43 pm Petr Pudlak

Fix configuration calls for LUInstanceReboot

Re-read the instance in-memory objects from WConfd after calls that
change its state.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

08390b40 03/27/2014 04:43 pm Petr Pudlak

Fix configuration calls for LUInstanceReinstall

Re-read the instance in-memory objects from WConfd after calls that
change its state.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

3a5c2c0e 03/27/2014 04:43 pm Petr Pudlak

Fix configuration calls for LUInstanceShutdown

Re-read the instance in-memory objects from WConfd after calls that
change its state.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

cb3ac71c 03/27/2014 04:43 pm Petr Pudlak

Fix configuration calls for LUInstanceStartup

Re-read the instance in-memory objects from WConfd after calls that
change its state.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

d9adac23 03/27/2014 04:43 pm Petr Pudlak

Instance storage: Mark functions that modify instances

.. in the configuration with comments.

Also re-read an instance object where needed.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

d05566f2 03/27/2014 04:42 pm Petr Pudlak

When modifying an instance status, return the instance

This simplifies code that works with instance objects and needs to have
their fresh values after performing such an operation.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

89179c36 03/27/2014 04:39 pm Petr Pudlak

Fix calls to Update in TLMigrateInstance

Instead of modifying the primary node on an object and calling 'Update',
a new method was added to ConfigWriter.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

3f3b6e7d 03/27/2014 04:39 pm Petr Pudlak

Fix calls to Update in LUNodeSetParams

Add calls to Update after modifying the node's configuration and move
some of the modifications so that they don't conflict with other calls
to ConfigWriter.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

66223061 03/27/2014 04:39 pm Petr Pudlak

Fix calls to Update in LUInstanceSetParams

In particular, move the call to Update so that it doesn't conflict with
calls to ConfigWriter methods that change the configuration state.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

4c04ae43 03/27/2014 04:39 pm Petr Pudlak

Fix calls to Update in LUClusterSetParams

Since this LU intersperses calls ConfigWriter methods with modifying
objects directly, it's necessary to call 'Update' and/or re-read them at
appropriate places.

Also a new ConfigWriter method is created for modifying the instance...

ee115038 03/27/2014 04:39 pm Petr Pudlak

Move master failover code that uses ConfigWriter

.. so that it's in the scope of a running WConfd daemon. This is now
required as read-only calls invoke WConfd as well.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

f47b32a8 03/27/2014 04:39 pm Petr Pudlak

Make configuration per job/thread

Previously there was one shared configuration object for all jobs,
threads and other tasks. This patch creates separate ConfigWrite
instances for distinct jobs/threads.

All exported methods of ConfigWriter are now wrapped in calls that...

e1374a9e 03/27/2014 04:39 pm Petr Pudlak

Use explicit configuration for nodes in GanetiContext

This way, each call to AddNode or RemoveNode uses a passed configuration
object that belongs to the appropriate job.

This is required to subsequently get rid of the single shared
ConfigWriter object....

7a311c56 03/27/2014 04:39 pm Petr Pudlak

Remove GanetiContext reference from ConfigWriter

It was only required for RPC calls, which are now handled by WConfD.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

c593d9c8 03/27/2014 04:39 pm Petr Pudlak

Add _UnlockedDropECReservations to ConfigWriter

There was just a locking version, and to keep things consistent in
_OpenConfig, we need also a non-locking one.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

1b090fd9 03/27/2014 04:39 pm Petr Pudlak

Save the configuration after releasing an exclusive lock

In most cases, this is what has been already implemented manually.
In some cases, the configuration write is issued even if the
configuration hasn't been modified, but since WConfd checks for such
cases, neither file write nor distribution to nodes is performed....

871c312f 03/27/2014 04:39 pm Petr Pudlak

Expand the Python configuration synchronization decorator

.. so that it can be enhanced later.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

d2404646 03/27/2014 04:39 pm Petr Pudlak

Add a designated method for synchronizing the configuration

This will be needed later to add WConfd locking for the synchronization.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

a7b57554 03/27/2014 04:39 pm Petr Pudlak

Refer to configuration using a method instead of a variable

This is a prerequisite for having thread-local configuration states.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

f22348c6 03/27/2014 04:33 pm Klaus Aehlig

Fix specification of TIDiskParams

Commit 580b1fdd incorrectly assumes that disk parameters are
just the standard ones, whereas the man page explicitly states
that additional parameters can be passed as well, if they make
sense for the chosen storage type. Fix this....

d42394f2 03/26/2014 05:37 pm Hrvoje Ribicic

Add renaming of instance custom params

Much like the groups before, this patch allows custom_* params to be
submitted under the same name they can be retrieved as in the info
call.

Signed-off-by: Hrvoje Ribicic <>
Reviewed-by: Thomas Thrainer <>

3fd0d720 03/26/2014 05:37 pm Hrvoje Ribicic

Add renaming of group custom ndparams, ipolicy, diskparams

This patch adds the ability to set the group-specific parameters in the
same way they are described when returned by the info command - with
the "custom_" prefix.

Signed-off-by: Hrvoje Ribicic <>...

ddaf6cd3 03/26/2014 05:37 pm Hrvoje Ribicic

Add aliases for nodes

This patch adds a single alias for the secondary_ip property of the
node.

Signed-off-by: Hrvoje Ribicic <>
Reviewed-by: Thomas Thrainer <>

bbdf78f5 03/26/2014 05:37 pm Hrvoje Ribicic

Add aliases for cluster parameters

This patch adds aliases for two cluster parameters.

Signed-off-by: Hrvoje Ribicic <>
Reviewed-by: Thomas Thrainer <>

286c0df2 03/26/2014 05:37 pm Hrvoje Ribicic

Add support for value aliases to RAPI

This patch extends the metaclass used to generate RAPI handlers to
allow creating aliases of certain values returned by GET methods.

Signed-off-by: Hrvoje Ribicic <>
Reviewed-by: Thomas Thrainer <>

8ae4d0de 03/26/2014 05:16 pm Michele Tartara

Add reason parameter to RAPI client functions

Only the functions for starting, stopping and rebooting a VM had a reason
parameter. Now, all the RAPI client functions generating opcodes do.

Also, one test is expanded to verify that a RAPI request with both body and...

3858d13a 03/26/2014 04:27 pm Petr Pudlak

Remove excess new line in mcpu.py

Signed-off-by: Petr Pudlak <>
Reviewed-by: Helga Velroyen <>

747ee762 03/26/2014 02:56 pm Dimitris Aragiorgis

Export VLAN nicparam to NIC configuration scripts

The vlan nicparam is used in openvswitch mode. This patch
exports it as VLAN environment variable so that NIC
configuration scripts can later use it.

Signed-off-by: Dimitris Aragiorgis <>
Signed-off-by: Klaus Aehlig <>...

a13e1743 03/26/2014 11:35 am Petr Pudlak

Centralize the creation of a WConfd context in Python code

This will allow easier modification of the structure of a client
identity later.

Also add a helper method for creating a WConfd context from a context.

Signed-off-by: Petr Pudlak <>...

ece21e0b 03/24/2014 08:34 pm Klaus Aehlig

Merge branch 'stable-2.11' into master

  • stable-2.11
    Rearranging entries in NEWS file
    Prepare NEWS file for 2.11.0 rc1
    Bump version to 2.11~rc1 in configure.ac
  • stable-2.10
    Bump version to 2.10.2
    Prepare NEWS file for 2.10.2
    Allow releases scheduled 5 days in advance...
df376ffa 03/24/2014 07:32 pm Klaus Aehlig

Merge branch 'stable-2.10' into stable-2.11

  • stable-2.10
    Bump version to 2.10.2
    Prepare NEWS file for 2.10.2
    Allow releases scheduled 5 days in advance
    Fix conflict between virtio + spice or soundhw
    Fix bitarray ops wrt PCI slots
  • stable-2.9...
3b8ca90f 03/24/2014 03:39 pm Klaus Aehlig

Merge branch 'stable-2.9' into stable-2.10

  • stable-2.9
    Make watcher submit queries low priority

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Thomas Thrainer <>

937ff984 03/24/2014 03:38 pm Dimitris Aragiorgis

kvm: Add migration capabilities as an hvparam

Latest QEMU versions support various migration capabilities. Each
can be enabled/disabled with 'migrate_set_capability' monitor
command.

Version 1.7.0 defines x-rdma-pin-all, auto-converge, zero-blocks,
and xbzrle migration capabilities....

b4ff41d7 03/24/2014 03:25 pm Klaus Aehlig

Make watcher submit queries low priority

Make the watcher collect its data using low-priority jobs,
to avoid blocking user/admin jobs. Note that repair jobs are
still submitted normal priority. Fixes issue 772.

Signed-off-by: Klaus Aehlig <>...

f1ab74ee 03/21/2014 05:19 pm Petr Pudlak

Add a function for getting the list of candidate certs

.. to ConfigWriter as well.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Helga Velroyen <>

f0c7c333 03/21/2014 05:19 pm Petr Pudlak

Move utility functions for candidate certs. to ConfigWriter

In particular AddNodeToCandidateCerts and RemoveNodeFromCandidateCerts.

Calling 'cfg.Update(cluster)' causes problems in WConfd, as
it doesn't operate on a shared configuration object any more....

7f37f0ca 03/21/2014 12:22 pm Dimitris Bliablias

Show OS variant information in gnt-os info

Currently, the non-standard/modified per-OS hypervisor parameters, or
OS specific parameters can be listed only by the 'gnt-cluster info'
command, which is a non-standard place to show them. Extend the
'gnt-os info' command to display the available/supported OS variants...

83fc0ab6 03/20/2014 04:56 pm Jose A. Lopes

Skip rename when OS scripts are absent

When an instance does not have OS scripts because, for example, it
uses an OS image, do not rename the instance after an import.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Hrvoje Ribicic <>

3473fb81 03/20/2014 04:56 pm Jose A. Lopes

Use raw disks in import/export when OS scripts are absent

When an instance does not have OS scripts because, for example, it has
an OS image, then the import/export should not try to run the OS
scripts. Instead, it should use raw import/export.

Signed-off-by: Jose A. Lopes <>...

a5d994b6 03/18/2014 01:52 pm Petr Pudlak

Add the thread identifier parameter to gnt-debug listlocks

.. to comply with the updated WConfd interface.

This makes the call less useful as the thread ID is often unknown to
users. This needs to be improved in the future.

Signed-off-by: Petr Pudlak <>...

6ea039ef 03/18/2014 01:52 pm Petr Pudlak

Add a thread ID to the WConfd client id

This allows to distinguish threads that don't have a job id, which is
needed for answering queries.

Since Python thread IDs aren't guaranteed to be unique, in future it'd
be preferable to use a different, unique identifier....

3a72e34a 03/17/2014 06:30 pm Dimitris Aragiorgis

Fix conflict between virtio + spice or soundhw

With regard to PCI slot occupied by a KVM instance we have
observed the following:

1) Slot 0 will always be Host bridge.
2) Slot 1 will always be ISA bridge.
3) Slot 2 will always be VGA controller (even with -display none)....

d13fb3f1 03/17/2014 06:30 pm Dimitris Aragiorgis

Fix bitarray ops wrt PCI slots

Introduce new method `_GetFreeSlot()` responsible only for bitarray
operations. It fixes search in case of bitarray is either '0000..'
or '1111..'.

Use it instead of `_UpdatePCISlots()` and in `_GetFreePCISlot()`.

Signed-off-by: Dimitris Aragiorgis <>...

a3a19a06 03/17/2014 04:07 pm Jose A. Lopes

Remove unused functions to check OS variants

... as this is now performed on the node.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Petr Pudlak <>

0bb2a91f 03/17/2014 04:07 pm Jose A. Lopes

Remove unused RPC 'os_get'

... include the RPC post process hook.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Petr Pudlak <>

703f9a66 03/17/2014 04:07 pm Jose A. Lopes

Remove calls to 'CheckNodeHasOS'

... because 'CheckOSParams' already checks the OS variant.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Petr Pudlak <>

ff030c75 03/17/2014 04:07 pm Jose A. Lopes

Add 'force_variant' to RPC 'os_validate'

Move function 'CheckOSVariant' to the node and add parameter
'force_variant' to RPC 'os_validate', thus making the node verify the
OS variant together with the rest of the OS params.

Signed-off-by: Jose A. Lopes <>...

3360026f 03/14/2014 04:03 pm Jose A. Lopes

Remove SSH copyfile from LU and assume the file exists

According to Ganeti design, files should not be copied from master to
nodes and instead they are assumed to exist and it is the user's
responsibility to assure that the file does exist.

Signed-off-by: Jose A. Lopes <>...

d46dbe0a 03/14/2014 04:03 pm Jose A. Lopes

Fix OS image detection on master

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Hrvoje Ribicic <>

326e0925 03/14/2014 04:03 pm Jose A. Lopes

Extend '_DumpDevice' to enable/disable file truncation

... because when the data source is infinite, truncation is not
necessary, but when the data source is finite and is, for example,
smaller than the device, truncation can reduce the disk size.

Signed-off-by: Jose A. Lopes <>...

ee6106f0 03/14/2014 04:03 pm Jose A. Lopes

Fix disk truncation in download and dump OS images

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Hrvoje Ribicic <>

d00e49f6 03/14/2014 04:03 pm Jose A. Lopes

Check if OS image exists on the node before dumping

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Hrvoje Ribicic <>

87ed6b79 03/13/2014 02:49 pm Klaus Aehlig

Make mcpu acquire WConfD locks

So far, the mcpu acquires locks that live in memory
of masterd. This design does not fit with our jobs-as-processes
goal. So make mcpu acquire the corresponding locks in WConfD
instead.

Note that this implies changes in various other files that call...

df62c62d 03/12/2014 01:32 pm Hrvoje Ribicic

Merge branch 'stable-2.11' into master

  • stable-2.11
    Rename compression option in gnt-backup export

Signed-off-by: Hrvoje Ribicic <>
Reviewed-by: Helga Velroyen <>

67f3ee87 03/11/2014 06:12 pm Hrvoje Ribicic

Rename compression option in gnt-backup export

The gnt-backup export option --compress did not do what most would
expect upon seeing the name: compress the exported image. Instead, it
used compression to try and speed up the transfer of the image,
decompressing it prior to writing the file. To reduce confusion, this...

83f54caa 03/11/2014 05:09 pm Jose A. Lopes

Instance reinstall with OS images

This patch allows instances to be reinstalled using OS images:
  • extract OS scripts installation to a separate method
  • add a new method to handle OS image installation
  • refactor 'LUInstanceReinstall.Exec'

Signed-off-by: Jose A. Lopes <>...

1c4910f7 03/11/2014 05:09 pm Jose A. Lopes

OS images in 'LUInstanceCreate' and OS scripts optional

  • Use the empty string in 'ganeti.objects.Instance.os' to signify that
    the instance does not use OS scripts.
  • Make several calls related to OS scripts first test whether OS
    scripts are being used....
2329ffdd 03/11/2014 05:09 pm Jose A. Lopes

Instance create with OS image

Extend 'LUInstanceCreate' to image the instance's first disk if an OS
image is specified via the OS params. If the OS image is a file, it
will be copied to the node via SSH. If ths OS image is a URL, it will
be passed directly to the node, which will then download the file....

7bc4d6ac 03/11/2014 05:09 pm Jose A. Lopes

Function to check if the OS image parameter is valid

Add helper function to check if the OS image parameter contained in
the OS parameters of an opcode is valid.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Hrvoje Ribicic <>

0247d20f 03/11/2014 05:09 pm Jose A. Lopes

Function to image disks while ensuring that disks are paused

  • Add 'ImageDisks' that actually calls the 'blockdev_image' RPC in a
    context where disk sync is paused.
  • Add 'ImageOrCleanupDisks' which is just a wrapper around the
    previous function that cleans up if an exception occurs....
987ec378 03/11/2014 05:09 pm Jose A. Lopes

Function to remove instance if disks are degraded

  • Extract code, into '_RemoveDegradedDisks', that checks if the disks
    of an instance are degraded and, if so, remove the instance.
  • Add a nice comment

Signed-off-by: Jose A. Lopes <>...

a303027b 03/11/2014 05:09 pm Jose A. Lopes

RPC 'blockdev_image' to image devices

Add RPC 'blockdev_image' that uses 'ganeti.backend.BlockdevImage' to
dump an image to an instance's disk device, optionally downloading
that image.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Hrvoje Ribicic <>

2b8322f7 03/11/2014 05:09 pm Jose A. Lopes

Helper function to image a device by downloading or dumping

Add 'BlockdevImage' which downloads a file and dumps it to an
instance's disk if the path is a URL, otherwise it dumps the file
directly to the instance's disk.

Signed-off-by: Jose A. Lopes <>...

c89622cd 03/11/2014 05:09 pm Jose A. Lopes

Helper function that downloads an image and dumps it to disk

  • Add constant that holds the curl binary.
  • Add '_DownloadAndDumpDevice' which downloads a file (e.g., OS image)
    through curl and dumps it to a disk device (e.g., an instance disk).

Signed-off-by: Jose A. Lopes <>...

229fb4ea 03/11/2014 05:09 pm Jose A. Lopes

Generalize 'WipeDevice' to 'DumpDevice'

  • Fix order of imports
  • Generalize 'WipeDevice' to 'DumpDevice' which takes an additional
    argument which is the data source. This will allow this function to
    be reused for both wiping and imaging disks in a future patch....
433d2933 03/11/2014 05:09 pm Jose A. Lopes

Helper functions to get and update OS image from OSParams

Add 'GetOSImage' and 'PutOSImage' which handle the OS image key in the
OS parameters dict.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Hrvoje Ribicic <>

ff89ab03 03/11/2014 05:09 pm Jose A. Lopes

Fix export order according to definition order

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Hrvoje Ribicic <>

3cf06dd4 03/11/2014 05:09 pm Jose A. Lopes

Fix docstrings

Fix several docstrings.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Hrvoje Ribicic <>

a16ffac0 03/11/2014 05:08 pm Jose A. Lopes

Reuse method to parse name from OS 'name+variant' string

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Hrvoje Ribicic <>

8436d0da 03/07/2014 08:54 pm Klaus Aehlig

Merge branch 'stable-2.11' into master

  • stable-2.11
    (no changes)
  • stable-2.10
    Revision bump for the 2.10.1 release
    Update NEWS file for 2.10.1
    Use node UUIDs for executing LU hook
    Add PreparePostHookNodes to LUs
    Fix error propagation in post-commit hooks...
205d3309 03/07/2014 08:33 pm Klaus Aehlig

Merge branch 'stable-2.10' into stable-2.11

  • stable-2.10
    Revision bump for the 2.10.1 release
    Update NEWS file for 2.10.1
    Use node UUIDs for executing LU hook
    Add PreparePostHookNodes to LUs
    Fix error propagation in post-commit hooks
  • stable-2.9...
4cbe5138 03/07/2014 07:53 pm Klaus Aehlig

Merge branch 'stable-2.9' into stable-2.10

  • stable-2.9
    Fix error introduced during merge
    gnt-cluster copyfile: accept relative paths
  • stable-2.8
    Improve RAPI detection of the watcher
    Add patching QA configuration files on buildbots
    Enable a timeout for instance shutdown...
ddc64582 03/07/2014 07:32 pm Michele Tartara

Fix error introduced during merge

A parameter was lost while resolving a conflict in the signature of a function.

Signed-off-by: Michele Tartara <>
Reviewed-by: Klaus Aehlig <>

74a4fc94 03/07/2014 07:25 pm Klaus Aehlig

gnt-cluster copyfile: accept relative paths

If, on the command line, the argument to gnt-cluster copyfile is
a relative path, consider this a shorthand for the corresponding
absolute path.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Michele Tartara <>

85530402 03/07/2014 07:07 pm Michele Tartara

Merge branch 'origin/stable-2.8' into stable-2.9

  • stable-2.8
    Improve RAPI detection of the watcher
    Add patching QA configuration files on buildbots
    Enable a timeout for instance shutdown
    Allow KVM commands to have a timeout
    Allow xen commands to have a timeout...
a8b9a6e3 03/07/2014 05:22 pm Petr Pudlak

Let WConfd distribute SSConf to nodes

.. and remove the corresponding code from lib/config.py.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

3fb0d66f 03/07/2014 05:22 pm Petr Pudlak

Let the SSConf RPC server side handle lists

Since on Haskell side we represent SSConf as list of lines, let the
Python side understand it as well.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

41ea331e 03/07/2014 05:22 pm Petr Pudlak

Let WConfd distribute the configuration to MCs

.. and remove the distribution from lib/config.py

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

b3590640 03/07/2014 05:22 pm Petr Pudlak

Add a new RPC server call for uploading a single file

The server side processes the request exactly the same as for
"upload_file".

Unlike "upload_file", the new call "upload_file_single" declares all
required fields without requiring additional preprocessing....

127266b4 03/07/2014 05:22 pm Petr Pudlak

Add more meaningful error messages to asserts in vcluster

.. to simplify debugging of RPC calls.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

6177890b 03/07/2014 05:15 pm Michele Tartara

Improve RAPI detection of the watcher

If the watcher is not allowed to access RAPI, it doesn't mean that it is dead
and needs to be restarted.

Fixes Issue 752.

Signed-off-by: Michele Tartara <>
Reviewed-by: Hrvoje Ribicic <>

874f6148 03/07/2014 12:08 pm Michele Tartara

Enable a timeout for instance shutdown

Add the timeout parameter to the StopInstance function of the hypervisor base
class and to all its implementations.

Also, change the tests as required by this change.

Signed-off-by: Michele Tartara <>...

2a2d087a 03/07/2014 12:08 pm Michele Tartara

Allow KVM commands to have a timeout

Modify the function that sends commands to the KVM monitor so that it is
possible to specify an optional timeout after which the command is killed.

Signed-off-by: Michele Tartara <>
Reviewed-by: Klaus Aehlig <>

7066724d 03/07/2014 12:07 pm Michele Tartara

Allow xen commands to have a timeout

Modify the function that runs Xen commands so that it is possible to specify an
optional timeout after which the command is killed.

Signed-off-by: Michele Tartara <>
Reviewed-by: Klaus Aehlig <>

76e2e6f6 03/07/2014 12:07 pm Michele Tartara

Fix wrong docstring

Fields must be the final elements in an epytext string.

Signed-off-by: Michele Tartara <>
Reviewed-by: Klaus Aehlig <>

8a37b426 03/06/2014 05:35 pm Klaus Aehlig

Use correct lockfile for gnt-debug wconfd

As jobs are currently running in masterd, use the masterd livelock
file.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

a0a92e23 03/06/2014 05:35 pm Klaus Aehlig

Add utility to guess livelock file for an owner

As livelock files are constructed in a systematic manner,
we can guess what the livelock file for a given owner is.
While this will not necessarily work perfectly, it will be
useful to simplify direct debugging of WConfD....