Statistics
| Branch: | Tag: | Revision:

root / lib / cmdlib @ b3fc101f

# Date Author Comment
dd6514c9 04/10/2014 04:03 pm Hrvoje Ribicic

Merge branch 'stable-2.11' into master

  • stable-2.11
    (no changes)
  • stable-2.10
    Revision bump for 2.10.3
    Update NEWS file for 2.10.3
    Warn in UPGRADE about not tar'ing exported insts
    Fix non-running test and remove custom_nicparams rename
    Acccount for NODE_RES lock in opportunistic locking...
7ddbfbaa 04/10/2014 02:57 pm Hrvoje Ribicic

Merge branch 'stable-2.10' into stable-2.11

  • stable-2.10
    Revision bump for 2.10.3
    Update NEWS file for 2.10.3
    Warn in UPGRADE about not tar'ing exported insts
    Fix non-running test and remove custom_nicparams rename
    Acccount for NODE_RES lock in opportunistic locking...
d1482ea2 04/09/2014 08:51 pm Petr Pudlak

Add missing save/re-read cluster configuration

.. in LUClusterSetParams. Since _SetFileStorageDir updates the 'cluster'
variable directly, we need to re-read it and then save later (the other
calls use the configuration directly).

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

f7b0366c 04/08/2014 03:35 pm Hrvoje Ribicic

Complete zeroing

This patch will do all that is necessary to allow the helper VM to do
whatever it will do with the zeroing image in place - which is,
hopefully, to zero out the disks of the instance.

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

a81e84ff 04/08/2014 03:34 pm Hrvoje Ribicic

Add timeout parameters to gnt-backup export

This patch adds the two parameters to gnt-backup export, documenting
their meanings in the manual file as well.

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

03d56d40 04/08/2014 03:34 pm Hrvoje Ribicic

Add zeroing function shell

This patch moves towards the actual zeroing by providing a function
that determines the necessary size and creates and destroys a temporary
disk.

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

69683c7d 04/08/2014 03:34 pm Hrvoje Ribicic

Add image size estimation function

To create a temporary disk, it is necessary to know just how big this
disk must be. This patch adds a function that retrieves this
information for both data sources - a URL and a file.

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

b1b4b282 04/08/2014 03:34 pm Hrvoje Ribicic

Modify failing assert

The assert stating that the disk did not have to be activated made
sense once the instance's disks were never completely deactivated. With
zeroing, the assumption no longer holds true, and should be replaced by
a check that the disks of the instance are indeed active....

b5e61bfd 04/08/2014 03:34 pm Hrvoje Ribicic

Introduce class for temporary disk creation

The instance zeroing requires that a virtual appliance capable of
performing it is used, and short of provisioning another VM, the best
Ganeti can do is reuse the virtualization environment of the instance.
To do this, a disk is needed to host the OS performing the zeroing, and...

4986c93b 04/08/2014 03:34 pm Hrvoje Ribicic

Factor out and alter the instance running check

Examining whether an instance is running is useful outside the instance
state check, especially as the check relies on the admin_state recorded
within the configuration, which the code treats as the desired rather...

d6e1e696 04/08/2014 03:34 pm Hrvoje Ribicic

Lock node if zeroing is used in LUBackupExport

This patch adds a node lock if zeroing is used, preventing any
operations that might interfere with the amount of available space.

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

0894ac48 04/08/2014 03:34 pm Hrvoje Ribicic

Add the zeroing-image option

This patch adds the zeroing-image option to gnt-cluster and the
OpBackupExport params. The many changes are all minor, yet necessary.

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

84ac8b54 04/08/2014 03:34 pm Hrvoje Ribicic

Factor out image validity check

The image validity check has been implemented as a part of the OS
installs, yet it could be useful for the zeroing image as well. This
patch factors the utility out.

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

8cd365d9 04/08/2014 03:34 pm Hrvoje Ribicic

Add HV parameter checks

The first version of zeroing requires two things: that the
self-initiated shutdown of the instance can be detected, and that the
instance boots from the first disk supplied to it. This patch checks
for these by examining the hypervisor parameters....

363f43eb 04/08/2014 03:34 pm Hrvoje Ribicic

Add the zero-free-space option

Although unused for now, add the zero-free-space option to the backup
export opcode, and add a rudimentary check for whether it should be
used.

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

a278ef7f 04/08/2014 03:31 pm Hrvoje Ribicic

Account for NODE_RES lock in opportunistic locking

This patch extends the opportunistic locking to take both the
NODE_RES and NODE locks into account when selecting nodes to be used
by the iallocator.

Signed-off-by: Gerard Oskamp <>
Reviewed-by: Hrvoje Ribicic <>

c1b512ca 04/08/2014 02:24 pm Thomas Thrainer

Fix request flooding of noded during disk sync

If a user manually pauses the DRBD sync, Ganeti started to poll the node
daemon without any waiting between request. This caused heavy load on
the node. This patch fixes this by waiting at least 5 secondes between...

246fa7d4 04/07/2014 02:37 pm Klaus Aehlig

Merge branch 'stable-2.11' into master

  • stable-2.11
    (no changes)
  • stable-2.10
    KVM: use running HVPs to calc blockdev options
    KVM: reserve a PCI slot for the SCSI controller
    Check for LVM-based verification results only when enabled
    Fix "existing" typos...
c1cbe302 04/07/2014 12:34 pm Klaus Aehlig

Merge branch 'stable-2.10' into stable-2.11

  • stable-2.10
    KVM: use running HVPs to calc blockdev options
    KVM: reserve a PCI slot for the SCSI controller
    Check for LVM-based verification results only when enabled
    Fix "existing" typos
    Fix output of gnt-instance info after migration...
8c58dc45 04/02/2014 02:22 pm Jose A. Lopes

Update metadata on create, import, reinstall, modify

Note that create and import are the same LU, therefore, there are a
total of 3 calls, not 4.

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

0ef72034 04/02/2014 02:22 pm Jose A. Lopes

Add helper function to modify metadata

This function is responsible for transforming the instance into a dict
and optionally overriding the OS parameters (public, private, secret).
Also, in case of failure it issues a warning.

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

a4bbd52a 04/01/2014 12:22 pm Helga Velroyen

Check for LVM-based verification results only when enabled

This patch fixes a little glitch in 'gnt-cluster verify'.
If LVM-based storage was disabled, it would still check
LVM-related verification results and print a confusing
error message.

Signed-off-by: Helga Velroyen <>...

715a89c2 04/01/2014 12:18 pm Thomas Thrainer

Fix output of gnt-instance info after migration

After migrating a DRBD based instance, the output of gnt-instance info
was wrong wrt. DRBD minors. This patch fixes the output in such cases.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

4b75f8a4 02/13/2014 02:40 pm Jose A. Lopes

Rename some functions not to collide with opcode names

Rename some functions related to instance communication not to collide
with the naming convention used in the opcodes.

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

2ff6426b 02/13/2014 02:34 pm Jose A. Lopes

Refactor instance communication network add and connect

Factor out the opcodes 'OpNetworkAdd' and 'OpNetworkConnect' used in
'LUClusterSetParams' and 'LUGroupAdd' in order to reduce code
duplication and keep the configuration of the instance communication...

39e27230 02/13/2014 02:34 pm Jose A. Lopes

Connect new groups to the instance communication network

When a new group is added, if the instance communication network is
enabled, then this group must also be connected to this network.

  • 'LUGroupAdd._AddInstanceCommunicationNetwork' connects the newly...
d6a7518a 02/13/2014 02:33 pm Jose A. Lopes

'LUClusterSetParams' creates the instance communication net

Extend 'LUClusterSetParams' to create the user-supplied instance
communication network in case this network does not exist. Note that
if the user-supplied network already exists, nothing needs to be done...

11eeb1b9 02/13/2014 02:33 pm Jose A. Lopes

Check prereq instance communication network in 'SetParams'

Later, the logical unit for 'OpClusterSetParams' will be responsible
for creating the instance communication network in case it does not
exist. For now, it is important to check whether the network the user...

9a94cee3 02/13/2014 02:33 pm Jose A. Lopes

Instance comm network from config instead of predefined

  • Add 'ganeti.objects.Cluster.instance_communication_network' to the
    config so the logical unit for 'OpInstanceCreate' can access the
    instance communication network which is stored in the cluster...
8a5d326f 02/13/2014 02:33 pm Jose A. Lopes

Add 'instance_communication_parameter' to 'Cluster'

  • Add parameter 'instance_communication_parameter' to the Python
    'ganeti.objects.Cluster' and the Haskell 'Ganeti.Objects.Cluster'.
  • Update Haskell 'QueryClusterInfo' to return also the
    'instance_communication_network' parameter....
d759a02b 02/10/2014 06:38 pm Klaus Aehlig

Merge branch 'stable-2.11' into master

  • stable-2.11
    (no changes)
  • stable-2.10
    Fix 'JobIdListOnly' type from 'List' to 'Map'
    Remove NEWS entry for 2.9.4
    Workaround for monitor bug related to greeting msg
    hotplug: Verify if a command succeeded or not...
adcccd43 02/10/2014 06:24 pm Klaus Aehlig

Merge branch 'stable-2.10' into stable-2.11

  • stable-2.10
    Fix 'JobIdListOnly' type from 'List' to 'Map'
    Remove NEWS entry for 2.9.4
    Workaround for monitor bug related to greeting msg
    hotplug: Verify if a command succeeded or not
    hotplug: Call each qemu commmand with an own socat...
da0aa302 02/07/2014 11:15 am Santi Raffa

OpCodes: modify InstanceReinstall for private, secret params

Modify InstanceReinstall to accept and process private and secret
parameters.

Signed-off-by: Santi Raffa <>
Reviewed-by: Jose A. Lopes <>

6bce7ba2 02/07/2014 11:14 am Santi Raffa

OpCodes: modify InstanceCreate for private, secret params

Modify InstanceCreate to accept process private and secret parameters.

Signed-off-by: Santi Raffa <>
Reviewed-by: Jose A. Lopes <>

07e3c124 02/07/2014 11:14 am Santi Raffa

OpCodes: modify ClusterSetParams for private parameters

Modify ClusterSetParams to accept and process private parameters.

Signed-off-by: Santi Raffa <>
Reviewed-by: Jose A. Lopes <>

1a182390 02/07/2014 11:14 am Santi Raffa

OpCodes: modify InstanceSetParams for private parameters

Modify InstanceSetParams to accept and process private parameters.

Signed-off-by: Santi Raffa <>
Reviewed-by: Jose A. Lopes <>