Statistics
| Branch: | Tag: | Revision:

root / lib @ 1c4910f7

# Date Author Comment
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....

25e9f9b2 03/06/2014 05:35 pm Klaus Aehlig

Make masterd create a livelock file

...so that it can request resources from WConfd.

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

1de2b387 03/06/2014 05:35 pm Klaus Aehlig

Rename setup_queue to setup_context in masterd

...as this function sets up a much richer context than just
the job queue, including the current lock management.

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

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

Add utilities for liveliness lock files

To request resources from WConfD, requesters have to provide
the name of a file they own an exclusive lock on. In this way,
their death can be detected. Add utility functions to obtain
such a file name.

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

5d83892f 03/06/2014 05:35 pm Klaus Aehlig

Ensure the existence of LIVELOCK_DIR

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

38e28375 03/06/2014 05:35 pm Klaus Aehlig

Add a path to store the lock files presented to WConfD

When requesting resources from WConfD, a file has to be
presented where an exclusive lock is owned on, so that
WConfD can detect when the requester dies. Add a path
to a directory where these files are kept in....

0f6997b9 03/05/2014 02:17 pm Klaus Aehlig

Merge branch 'stable-2.11' into master

  • stable-2.11
    Convert int to float when checking config. consistency
    Updateing release date to tomorrow
    Revision bump for the 2.11.0~beta1 release
    Set release date of 2.11 beta1
    Stop watcher from restarting down instances during an opcode...
f1638b0b 03/05/2014 01:51 pm Petr Pudlak

Convert int to float when checking config. consistency

When reading the configuration file from RPC JSON, values without a
floating point are parsed as 'int', not as 'float', and later the
consistency check fails.

This patch adds an automatic conversion from 'int' to 'float' during...

fe5144b0 03/05/2014 11:21 am Hrvoje Ribicic

Align timestamps in gnt-job info

This patch aligns the timestamps output as a part of gnt-job info, and
performs minor refactorings in the process.

Signed-off-by: Hrvoje Ribicic <>
Reviewed-by: Petr Pudlak <>

d0202de7 03/05/2014 11:21 am Hrvoje Ribicic

Add alignment support to PrintGenericInfo

Aligning dictionary entries makes no difference to a YAML parser, but
makes the output much easier to read and compare. This patch adds the
possibility of specifying alignment groups to ordered dictionary
entries....

087f5520 03/05/2014 11:21 am Hrvoje Ribicic

Make gnt-job info output valid YAML

This patch changes gnt-job info to use standard functions defined in
cli.py, and output valid YAML.

Signed-off-by: Hrvoje Ribicic <>
Reviewed-by: Petr Pudlak <>

9ec1bcbd 03/05/2014 11:21 am Hrvoje Ribicic

Make PrintGenericInfo handle tuples better

The PrintGenericInfo function in cli.py did not handle tuples as
containers of items, making it impossible for these to be deserialized
automatically when a YAML parser is used. This patch adds separate
handling of tuples, including inlining them for readability when...

9dc47292 03/05/2014 11:21 am Hrvoje Ribicic

Make gnt-debug delay interruptible

The gnt-debug delay command could be useful as a means of acquiring
locks for testing purposes. In practice, to be useful it should be
interruptible, otherwise we risk race conditions or long delays.

This patch follows the examples of the move-instance command and the...

787074d5 03/05/2014 11:21 am Hrvoje Ribicic

Add the interruptible option to gnt-debug delay

This patch allows the opcode option to be used through the gnt-debug
client.

Signed-off-by: Hrvoje Ribicic <>
Reviewed-by: Petr Pudlak <>

c346d0ac 03/05/2014 11:21 am Hrvoje Ribicic

Factor Unix domain socket creation into helper class

As the delay class will also have to start using domain sockets,
extract the functionality into a helper class.

Signed-off-by: Hrvoje Ribicic <>
Reviewed-by: Petr Pudlak <>

a9a3416e 03/05/2014 11:21 am Hrvoje Ribicic

Fix minor accidental concatenation

Signed-off-by: Hrvoje Ribicic <>
Reviewed-by: Petr Pudlak <>

8631b46b 03/05/2014 11:21 am Hrvoje Ribicic

Handle incorrect duration more elegantly

The previous version of the LUTestDelay opcode relied on the utility
function complaining about the negative duration. As this function has
been removed for now, do the check ourselves, and issue a more
appropriate exception....

36870aa1 03/05/2014 11:21 am Hrvoje Ribicic

Make gnt-debug delay command run in parallel

The gnt-debug delay command executes the delay first on the master, and
only then on all the other nodes, causing a significant delay. This
patch makes the command treat the master as it would all other nodes....

363e2869 03/05/2014 11:20 am Hrvoje Ribicic

Fix typo in RAPI client utility

Signed-off-by: Hrvoje Ribicic <>
Reviewed-by: Petr Pudlak <>

ec3a7362 03/05/2014 10:58 am Jose A. Lopes

Remove duplicated '_CheckOSVariant'

It seems '_CheckOSVariant' was moved from 'ganeti.cmdlib.instance' to
'ganeti.cmdlib.instance_utils' but the source was never deleted. This
patch deletes the source copy if this function.

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

ff1c051b 03/04/2014 11:41 am Thomas Thrainer

Use node UUIDs for executing LU hooks

LUNodeAdd, the only LU using a node name still, is changed to overwrite
PreparePostHookNodes() and use node UUIDs only as well.
This allows to remove the support for 3-tuples as results of
BuildHooksNodes() and removes the translation to node names....

237a833c 03/04/2014 11:40 am Thomas Thrainer

Add PreparePostHookNodes to LUs

This method can be used to alter the list of node UUIDs on which post
hooks are executed. PreparePostHookNodes is called after Exec, so LUs
can use data only known after the execution of the LU.

Signed-off-by: Thomas Thrainer <>...

510f672f 03/04/2014 11:35 am Michele Tartara

Fix error propagation in post-commit hooks

An error in the post-commit hooks could not be propagated correctly and could
result in e.g. the return code of gnt-cluster verify to be 0 even in presence of
an error in its output.

Fixes Issue 744.

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

5dd9a07e 03/03/2014 06:05 pm Klaus Aehlig

Add listlocks to gnt-debug wconfd

So that wconfd's locking can be debugged directly.

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

bc69c426 03/03/2014 06:00 pm Jose A. Lopes

Stop watcher from restarting down instances during an opcode

This patch changes the watcher to check whether an instance that is
down is also locked by some LU before attempting to restart the
instance. Without checking the lock status, the watcher could think...

51b69fc8 02/28/2014 03:44 pm Petr Pudlak

Remove unused import in rpc/transport.py

.. which got there by mistake.

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

71b770a9 02/28/2014 03:39 pm Klaus Aehlig

Merge branch 'stable-2.11' into master

  • stable-2.11
    Setting correct permissions of client cert (split-user)
    Add luxid group to 'users-setup'
    Add some whitespace to fix formatting
    Consider old client cert only when available
    Fix return of 'Validate'...
f3aebf6f 02/28/2014 03:00 pm Petr Pudlak

Retry luxi/wconfd RPC calls if the connection is closed

Since the daemon can decide to close a client connection after a
timeout, the client needs to be able to automatically reconnect.

This patch introduces this functionality into the RPC client:
If an attempt to send data fails on 'Broken pipe', it's retried one more...

0cffcdb1 02/28/2014 02:08 pm Dimitris Bliablias

Allow cluster mac prefix modification

Extend LUClusterSetParams to allow the modification of the cluster
mac-prefix setting in 'gnt-cluster modify' command.

This fixes part of issue 239.

Signed-off-by: Dimitris Bliablias <>
Reviewed-by: Jose A. Lopes <>

353bd75b 02/28/2014 02:08 pm Dimitris Bliablias

Show mac prefix setting in gnt-cluster info

Include mac-prefix setting in the output of 'gnt-cluster info'
command.

This fixes part of issue 239.

Signed-off-by: Dimitris Bliablias <>
Reviewed-by: Jose A. Lopes <>

22114677 02/28/2014 11:06 am Helga Velroyen

Setting correct permissions of client cert (split-user)

This patch makes sure that the client certificate gets
the right permissions and owner when created. Additionally
it enhances the 'ensure_dirs' script to correct the
permissions in case they are broken for whatever reason....

f33307bd 02/27/2014 07:15 pm Klaus Aehlig

Add a command to gnt-debug to test various aspects of wconfd

For debugging purpose, support direct communication to WConfD from
the commandline for some of its commands. For the time being, support
the echo command.

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

46ae85de 02/27/2014 05:28 pm Helga Velroyen

Add some whitespace to fix formatting

Some error messages were lacking some spaces between lines
to make it more readable.

Signed-off-by: Helga Velroyen <>
Reviewed-by: Klaus Aehlig <>

da27bc7d 02/27/2014 05:28 pm Helga Velroyen

Consider old client cert only when available

This fixes a bug which occurred only after upgrading
from 2.10 to 2.11. During the cluster renew-crypto
operation, Ganeti tries to include the old certificate
in the candidate map while it is providing new
certificates. This failed when there was no certificate...

b3724640 02/27/2014 05:11 pm Jose A. Lopes

Fix return of 'Validate'

  • fix return of 'Validate' in docstrings
  • fix all call sites
  • fix all tests

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Helga Velroyen <>

be6cdf67 02/27/2014 03:17 pm Michele Tartara

Add reason for job pickup to the trail

Add a new entry in the reason trail when a job is picked up by MasterD from the
hard drive, after LuxiD put it there.

Note that the signature of NameToReasonSrc is changed in an incompatible way,
although it's a public method because in this commit we also change its only...

653bc0f1 02/27/2014 03:17 pm Michele Tartara

Make the AddReason method public

It will need to be accessed from outside the class too in one of the next
commits.

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

25cf4130 02/27/2014 12:28 pm Petr Pudlak

Let config.py use WConfd for reading/writing the config

Currently it only relays the reads/writes to the file to WConfd,
everything else yet remains in config.py.

Also if the 'ConfigWriter' is opened in "offline" mode (like in
bootstrap.py), it doesn't use WConfd and resorts to the original...

80a56f26 02/27/2014 12:27 pm Petr Pudlak

Start WConfd temporarily during master failover

.. in order to update the configuration and distribute ssconf, before
starting the daemons by the scripts.

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

710a2863 02/27/2014 12:27 pm Petr Pudlak

Convert int to float when checking config. consistency

When reading the configuration file from RPC JSON, values without a
floating point are parsed as 'int', not as 'float', and later the
consistency check fails.

This patch adds an automatic conversion from 'int' to 'float' during...

d977f86c 02/26/2014 05:50 pm Hrvoje Ribicic

Merge branch 'stable-2.11' into master

  • stable-2.11
    Add query support for locks to luxid (cherry-pick)
    Provide fields for lock queries (cherry-pick)
    A quick fix for broken 'make distcheck'
  • stable-2.9
    Make gnt-debug locks display fake job locks properly...
a8c1f633 02/26/2014 03:48 pm Hrvoje Ribicic

Merge branch 'origin/stable-2.10' into stable-2.11

  • stable-2.9
    Make gnt-debug locks display fake job locks properly
    Make NiceSort treat integers well
    Revision bump for 2.9.5
    Set release date for 2.9.5
    Add NEWS entry for 2.9.5

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

52b655cb 02/26/2014 01:41 pm Hrvoje Ribicic

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

  • stable-2.9
    Make gnt-debug locks display fake job locks properly
    Make NiceSort treat integers well

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

fa0192b2 02/26/2014 12:22 pm Hrvoje Ribicic

Make gnt-debug locks display fake job locks properly

When a job is dependent on other jobs, a fake lock is created whose
pending entry contains a list of job ids waiting on the job. gnt-debug
locks did not expect the job ids to be ints, crashing when encountering...

0fe20731 02/26/2014 12:22 pm Hrvoje Ribicic

Make NiceSort treat integers well

NiceSort is invoked on arrays that may contain strings, but in other
situations can contain ints as well. As this surprisingly makes sense,
add a tiny modification to make NiceSort work in these conditions.

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

5fd32824 02/24/2014 05:44 pm Klaus Aehlig

Merge branch 'stable-2.11' into master

  • stable-2.10
    Let the instance's tuple of nodes start with the primary
    Fix the test that checks for the order of instance's nodes
    Revision bump for the 2.10.0 release
    Update NEWS file for 2.10.0
    Revision bump for 2.10.0~rc3...
ead368bb 02/24/2014 04:42 pm Klaus Aehlig

Merge branch 'stable-2.10' into stable-2.11

  • stable-2.10
    Let the instance's tuple of nodes start with the primary
    Fix the test that checks for the order of instance's nodes
    Revision bump for the 2.10.0 release
    Update NEWS file for 2.10.0
  • stable-2.9...
0f0ca306 02/24/2014 03:56 pm Klaus Aehlig

Merge branch 'stable-2.9' into stable-2.10

  • stable-2.8
    Fix expression describing optional parameters

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

90402786 02/24/2014 03:47 pm Klaus Aehlig

Merge branch 'stable-2.8' into stable-2.9

  • stable-2.8
    Fix expression describing optional parameters

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Jose A. Lopes <>

ad55b2d4 02/24/2014 03:33 pm Klaus Aehlig

Fix expression describing optional parameters

The NIC's network and vlan are also newly added, hence need to be
considered optional to remain backwards compatible.

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

2977b72c 02/24/2014 01:53 pm Klaus Aehlig

Merge branch 'stable-2.9' into stable-2.10

  • stable-2.9
    Fix net-common script in case of routed mode
    Document hspace's SPN parameters
    Document spindles in TSPEC
    man: Update the manual page of gnt-node FAILOVER
    Make hbal deal with no-LVM storage space properly...
f2a3c4f0 02/24/2014 11:20 am Petr Pudlak

Let the instance's tuple of nodes start with the primary

Before the tuple of nodes of an instance was created from a set, listing
the nodes in alphabetical order. This patch ensures that the primary
node is always the first one in the list.

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

9cdea43f 02/24/2014 11:09 am Petr Pudlak

Check the existence of system users and groups at bootstrap

Before, if any of these were missing, the creation of a cluster failed
and the cluster remained in an inconsistent state, without the
possibility to destroy it or to re-create it (#603).

This patch calls 'GetEnts' during bootstrap, which tries to read all...

fd5578ee 02/20/2014 07:05 pm Klaus Aehlig

Merge branch 'stable-2.8' into stable-2.9

  • stable-2.8
    Improve job status assert affected by race condition
    Export and import Disk/NIC name
    Fix backup import in case NIC is inside a network
    Override get() method of ConfigParser

Conflicts:
lib/cmdlib/instance.py: manually apply 0973f9ed on...

e6e17529 02/20/2014 05:23 pm Hrvoje Ribicic

Improve job status assert affected by race condition

In the sliver of time between choosing a waiting job to be executed and
trying to acquire locks for its execution, the status of the job can be
changed to canceling. An assert checking the job status neglected to...

0f68f7fa 02/20/2014 04:45 pm Dimitris Aragiorgis

Export and import Disk/NIC name

Name of Disk/NIC were not exported during backup until now.
Use the exported info during gnt-backup import.

Signed-off-by: Dimitris Aragiorgis <>
Signed-off-by: Michele Tartara <>
Reviewed-by: Michele Tartara <>

0973f9ed 02/20/2014 04:45 pm Dimitris Aragiorgis

Fix backup import in case NIC is inside a network

Network UUID is written in .ini file during backup export
but is not used by _ReadExportParams(). This patch fixes it.

Please note that in case a network is given, link and mode should
not be included in NIC options....

523170de 02/20/2014 04:45 pm Dimitris Aragiorgis

Override get() method of ConfigParser

During backup import/export SafeConfigParser() is used to
save/restore instance's configuration. There is a possibility if an
export is done with a different Ganeti version, a specific value not
to be saved during export (e.g. the NIC/Disk name) but still...

3e8a6f39 02/20/2014 10:22 am Helga Velroyen

Smooth renewal of client certificates

This patch fixes another chicken-and-egg problem which
occurred when the node certificates get renewed. When
renewing a node certificate, the previous certificate
has to be used to update the configuration. To address...

e04860cc 02/19/2014 10:39 am Jose A. Lopes

Constant for instance communication network mode

Create a new constant to hold the instance communication network mode
as this constant will be necessary during the QA, and update the
general documentation about the constants related to the instance
communication mechanism....

93f1e606 02/19/2014 10:39 am Jose A. Lopes

Add '-c | --instance-communication' flag to instance modify

  • Add the instance communication flag to the 'OpInstanceSetParams'
    opcode. This flag allows the user to enable/disable instance
    communication in a running instance. This patch adds this flag but...
9808764a 02/19/2014 10:39 am Jose A. Lopes

Enable/disable instance comm via 'gnt-instance modify'

This patch adds the logic necessary to enable/disable the instance
communication in a running instance via 'gnt-instance modify'. With
instance communication enabled, the instance gets a new NIC that is...

e25625ab 02/19/2014 10:39 am Jose A. Lopes

Refactor instance comm NIC name creation

Refactor name creation for the NICs used in instance communication.
These names are generated based on a prefix and the instance name.
Also, these names must be unique within a single instance.

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

ebe70850 02/19/2014 10:39 am Jose A. Lopes

Fix copy of NIC objects to be consistent with the other call

... which can be found just right below in the same module.

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

7a51281a 02/18/2014 04:39 pm Jose A. Lopes

Fix whitespace and typos in comments

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

a53772a0 02/14/2014 04:57 pm Klaus Aehlig

Merge branch 'stable-2.11' into master

  • stable-2.11
    Update design doc wrt to improved SSL design
    Test node certificate renewal in QA
    Use node UUID as client certificate serial number
    Revert "Temporarily remove SSL changes from NEWS file"
    Revert "Disabling client certificate usage"...
ab4b1cf2 02/14/2014 03:51 pm Helga Velroyen

Use node UUID as client certificate serial number

It turns out, that some implementations of OpenSSL are more
pedantic in checking the certficates than others. In this
particular case, the SSL connection could not be
established when the serial number of the certificates...

d5104ca4 02/14/2014 03:51 pm Helga Velroyen

Revert "Disabling client certificate usage"

This reverts commit 45f75526b848, which was introduced to
temporarily disable the implementation of SSL client
certificates. As this patch series fixes the reason for
the disabling, we are rolling back the patch....

5a89351b 02/14/2014 11:47 am Petr Pudlak

Fix an ambiguity in the documentation for GetNodesSshPorts

This ambiguity was introduced by adding the WConfd client.

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

bd2fab62 02/14/2014 11:47 am Petr Pudlak

Add the Python client for WConfD

The client combines the abstract client class and the WConfD
stub to provide a Python interface to WConfD.

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