Statistics
| Branch: | Tag: | Revision:

root / lib @ 808cb0ee

# Date Author Comment
808cb0ee 06/02/2014 03:39 pm Jose A. Lopes

Change temporary disk from readonly to read-write

Making the temporary disk readonly has absolutely no advantages and it
has the disadvantage that it prevents the OS install helper from
saving temporary data to it, for example, when downloading the OS
install package which is necessary to run the OS scripts....

0dff3a96 06/02/2014 03:39 pm Jose A. Lopes

Fix docstring

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

e7ec2f27 05/30/2014 03:41 pm Klaus Aehlig

Remove Ganeti Lock Manager and Monitor

...from the jobs code, as this functionality is now
carried out by wconfd. Also remove dead code resulting
from this removal.

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

23b13756 05/30/2014 11:16 am Petr Pudlak

Demote a node from MCs only after the config. is updated

Otherwise it was possible that a node was demoted (by calling noded),
its configuration copy removed, but before the configuration change took
place, it was distributed to the node again.

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

7f8ba25b 05/30/2014 11:16 am Petr Pudlak

Move configuration flush to a synchronized block

This ensures that the configuration is fully distributed and doesn't
change during the verification process.

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

c02daabd 05/29/2014 12:23 pm Petr Pudlak

Let ConfigWriter delegate DRBD secrets to WConfd

Also WConfd handles proper synchronization internally so there is no
need to explicitly lock the configuration in ConfigWriter.

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

c79d19e8 05/27/2014 11:48 am Klaus Aehlig

Merge branch 'stable-2.11' into stable-2.12

  • stable-2.11
    (no changes)
  • stable-2.10
    Use more efficient statistics for the standard deviation
    Use statistics updates when allocating on pairs
    Factor score computation through abstract statistics
    Verify the update of the standard deviation statistics...
c3a9cd35 05/26/2014 07:16 pm Klaus Aehlig

Merge branch 'stable-2.10' into stable-2.11

  • stable-2.10
    Use more efficient statistics for the standard deviation
    Use statistics updates when allocating on pairs
    Factor score computation through abstract statistics
    Verify the update of the standard deviation statistics...
f28eb679 05/26/2014 03:58 pm Petr Pudlak

Forward MAC reservations from ConfigWriter to WConfD

Also call it for dropping reservations when a job finishes.

And remove the field for temporary DRBDs, that has been already moved to
WConfD.

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

123cb248 05/23/2014 04:44 pm Helga Velroyen

Fix lint error in 'masterd'

... and by that fixing a TODO as well.

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

0f63c080 05/23/2014 01:45 pm Dimitris Aragiorgis

Fix gnt-network client wrt instances report

Let the gnt-network client expect a list of instance names and not
UUIDs as returned by QueryNetworks (by both old and new style query
mechanism).

Signed-off-by: Dimitris Aragiorgis <>
Reviewed-by: Helga Velroyen <>

96092119 05/23/2014 01:45 pm Dimitris Aragiorgis

Fix QueryNetworks wrt instances

QueryNetworks tries to find which instances are connected to which
networks. The query mechanism in Haskell was written back when NICs
referred to a network via its name and not its UUID. Fix luxi to
comply with the current implementation (network slot of NIC object...

36b6d149 05/22/2014 02:18 pm Thomas Thrainer

Merge branch 'stable-2.11' into stable-2.12

  • stable-2.11
    (no commits)
  • stable-2.10
    tiered allocation: try canonical search path first
    Add QA config flag for all performance tests
    build-bash-completion: reduce branches
    Convert all the classes to new-style classes...
98da4d04 05/22/2014 01:58 pm Thomas Thrainer

Merge branch 'stable-2.10' into stable-2.11

  • stable-2.10
    tiered allocation: try canonical search path first
    Add QA config flag for all performance tests
    build-bash-completion: reduce branches
    Convert all the classes to new-style classes

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

876fb142 05/22/2014 11:13 am Helga Velroyen

Convert all the classes to new-style classes

... to make lint shut up.

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

809a055b 05/21/2014 11:51 am Klaus Aehlig

Initialize self.needed_locks

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

247837c3 05/20/2014 06:49 pm Klaus Aehlig

Merge branch 'stable-2.11' into stable-2.12

  • stable-2.11
    Add missing import
    Fix INicParams to include inicNetwork
    Improve KVM userspace access documentation
  • stable-2.10
    Add --no-locks option to gnt-debug dela
    Include design-performance-tests.rst in index...
a4f462bd 05/20/2014 05:40 pm Klaus Aehlig

Merge branch 'stable-2.10' into stable-2.11

  • stable-2.10
    Add --no-locks option to gnt-debug delay
    Include design-performance-tests.rst in index
    Document the --force-failover option
    Support group evacuation by failover
    Add an option --force-failover...
aa112e9f 05/20/2014 01:59 pm Thomas Thrainer

Add --no-locks option to gnt-debug delay

Add the possibility to don't acquire locks during `gnt-debug delay`.
This allows to run many delay jobs in parallel instead of having
them run sequentially.

Signed-off-by: Thomas Thrainer <>
Reviewed-by: Helga Velroyen <>...

5fdd0f88 05/20/2014 12:53 pm Petr Pudlak

Add a command to gnt-debug to flush the configuration

This allows to enforce it during QA tests.

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

cbe82289 05/20/2014 12:53 pm Petr Pudlak

Flush the configuration before cluster verify

For this expose the flushing operation in Python ConfigWriter.

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

d0cd1368 05/19/2014 01:53 pm Klaus Aehlig

Support group evacuation by failover

Support evacuating a node group not using migration.
This can be useful if the group evacuated to has different
hardware.

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

2039321f 05/19/2014 01:53 pm Klaus Aehlig

Add an option --force-failover

...to be added to gnt-group evacuate forcing evacuation by
means for failovers instead of migrations.

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

01a8d300 05/16/2014 02:21 pm Petr Pudlak

Don't synchronize the configuration on DropECReservations

The call doesn't modify the configuration state, only the reservations.
And after moving reservations to WConfd, the reservations state will be
locked just internally by WConfd.

Since this method is called at the end of any job in mcpu, synchronizing...

63324095 05/16/2014 02:21 pm Petr Pudlak

Use Luxid for querying cluster tags instead of SSConf

Not only there is no reason to use SSConf for that.
Using it caused problems and failed tests as the query didn't get the
latest information due to distribution delays.

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

68dd510b 05/16/2014 02:21 pm Petr Pudlak

Bump serial numbers in ConfigWriter only in offline mode

Otherwise, WConfd takes care of it.

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

95ec6e95 05/16/2014 12:19 pm Ansgar Jazdzewski

openvswitch fix

  • fix unhandled nic.mode in config.py
    "Unhandled Ganeti error: NIC mode 'openvswitch' not handled" (Issue 804)
  • handle link-changes for the virtual NIC
    a instance will readd the tap interface to the openviswitch so that
    changes of the instance-link (VLAN) will be considered....
c812ab71 05/16/2014 12:18 pm Klaus Aehlig

Support sequential evacuation

Make gnt-group evacuate support the --sequential option,
which causes all evacuation moves to be execuated sequentially.
This can be used to avoid congestion on a possibly slow link
between the node groups.

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

ed9c2202 05/16/2014 12:18 pm Klaus Aehlig

Add an option --sequential

...which can be used to tell commands like gnt-group evacuate to
sequentially perform their action to keep load away from the cluster.

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

bd5b2991 05/14/2014 03:31 pm Thomas Thrainer

Merge branch 'stable-2.11' into stable-2.12

  • stable-2.11
    Bump revision to 2.11.1
    Prepare NEWS file for 2.11.1
  • stable-2.10
    Postpone 2.10.4 release to May 15th
    Don't fail QA if submitting a job takes too long
    Revision bump for the 2.10.4 release...
bccc3658 05/14/2014 03:14 pm Thomas Thrainer

Merge branch 'stable-2.10' into stable-2.11

  • stable-2.10
    Postpone 2.10.4 release to May 15th
    Don't fail QA if submitting a job takes too long
    Revision bump for the 2.10.4 release
    Prepare NEWS file for 2.10.4 release
  • stable-2.9
    On expanding jobs, extend reason trail...
70000149 05/14/2014 02:28 pm Thomas Thrainer

Merge branch 'stable-2.9' into stable-2.10

  • stable-2.9
    On expanding jobs, extend reason trail

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

0511c075 05/14/2014 02:21 pm Klaus Aehlig

On expanding jobs, extend reason trail

Certain op-codes expand to a set of jobs. For
those new jobs, extend their reason trail with
the reasons of the job that expanded to them.
In this way, also for indirectly genreated jobs
a complete trace back to the initiator can be...

c055e8dc 05/14/2014 12:17 pm Jose A. Lopes

Refactor instance create to accommodate unsafe OS scripts

This patch gives just the code structure. Implementation will follow.

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

97fe2ecc 05/14/2014 12:17 pm Jose A. Lopes

Helper method to run OS scripts in a virtualized environment

This method temporarily changes the instance's disk to contain the
helper VM's boot disk and the target disk for the OS installation.

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

168c7cc6 05/14/2014 12:17 pm Jose A. Lopes

Helper method to handle the OS install package

This helper method either picks up the package passed through the OS
parameters or creates a new package and updates the instance's OS
parameters. This allows users to add their own OS install package.

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

eb4d938e 05/14/2014 12:17 pm Jose A. Lopes

Extract code that runs OS scripts to a separate method

... to make it simpler to introduced the install helper VM.

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

ec9c1bf8 05/14/2014 12:17 pm Jose A. Lopes

RPC 'os_export'

The 'os_export' RPC is used to export an OS to a compressed tarball.
The path to this tarball will be given to the metadata daemon, which
will then be used to serve this package to the instances via the
instance communication mechanism.

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

b8dd2853 05/14/2014 12:17 pm Jose A. Lopes

Generalize 'TemporaryDisk' to handle any number of disks

... including different disk templates, accesses, and sizes.

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

38519f22 05/14/2014 12:17 pm Jose A. Lopes

Move 'DetermineImageSize' to 'ganeti.cmdlib.common'

Move 'DetermineImageSize' from 'ganeti.cmdlib.backup' to
'ganeti.cmdlib.common' so it can be used by disk zeroing and instance
installations. This patch also transforms this method into a function
and generalizes the error messages....

a44114c9 05/14/2014 12:17 pm Jose A. Lopes

Add trusted/untrusted create scripts

  • Extend 'backend.DiagnoseRPC' to stat 'create_untrusted', which
    indicates the OS is untrusted.
  • Extend queries to include the 'trusted' field, which is calculated
    from the whether the OS contains a 'create_untrusted' script....
f5410303 05/14/2014 12:17 pm Jose A. Lopes

Add timeouts for OS install helper VM

Add timeout parameters to client, opcodes, LU, etc. The startup
timeout is similar to that one used in zeroing, but the shutdown
timeout is different because it is a single timeout that includes the
time needed to install plus shutdown....

1fbe43de 05/14/2014 12:17 pm Jose A. Lopes

Add 'install_image' to bootstrap, CLI, opcodes, and queries

  • Add 'install_image' to 'bootstrap.InitCluster' and cluster client
  • Add '--install-image' flag to 'gnt-cluster init'
  • Add '--install-image' flag to 'gnt-cluster modify'
  • Add param 'install_image' to 'OpClusterSetParams'...
e78b63ed 05/14/2014 12:16 pm Jose A. Lopes

Add 'install_image' param to 'Cluster'

The 'Cluster.install_image' param holds the location of the image to
be used for the safe installation instances.

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

3277b56a 05/14/2014 12:16 pm Jose A. Lopes

Fix 'IsInstanceRunning' to handle empty 'instance_info'

Instance info might return an empty dictionary in case the instance
does not exist. Fix 'IsInstanceRunning' to handle that fact.

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

ac2f0fb4 05/14/2014 12:16 pm Jose A. Lopes

Fix var reference from 'instance' instead of 'lu.instance'

... given that 'lu.instance' does not exist in all LUs.

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

a971cfee 05/14/2014 12:16 pm Jose A. Lopes

Fix dashes in environment names for OS params

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

aaec078d 05/14/2014 12:16 pm Jose A. Lopes

Fix sorting in CLI options

Move instance communication network CLI option around.

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

0ce9b7b6 05/14/2014 12:16 pm Jose A. Lopes

Fix exception message to be consistent with others

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

c42facd9 05/14/2014 12:16 pm Jose A. Lopes

Fix typo in documentation

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

357ac949 05/13/2014 07:32 pm Klaus Aehlig

Do not start/stop ganeti-masterd

This daemon does not do anything anymore, so we
can as well get rid of it.

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

047f59ce 05/13/2014 11:36 am Hrvoje Ribicic

Filter disallowed compression tools

This patch makes import and export operations fail when a
non-whitelisted compression type is used. The whitelisted tools have to
be specified manually via
"gnt-cluster modify --custom-compression-tools=<tools>".

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

14a31771 05/13/2014 11:36 am Hrvoje Ribicic

Forbid the compression tools from being set over RAPI

Although we impose restrictions on what can be input as a compression
tool, someone with RAPI credentials could choose and execute a number
of commands by first setting the custom tools and then executing them....

83a5fb86 05/13/2014 11:36 am Hrvoje Ribicic

Fix minor RAPI forbidden parameter handler error

The forbidden parameter functionality did not work if renames were not
present due to a missing default. This patch fixes the issue.

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

fe71113e 05/13/2014 11:36 am Hrvoje Ribicic

Add the compression tools parameter

This patch makes the myriad of changes necessary for the compression
tool parameter to be added. The filtering of compression tools for
suspicious entries has been added for this exact purpose.

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

293e1c1d 05/13/2014 11:36 am Hrvoje Ribicic

Make arbitrary compression tools work

We assume that the compression tools the user supplies use stdin and
stdout for handling data, and that a switch is used to distinguish
compression from decompression. This patch introduces these constraints
by adding the invocation of these tools to the import-export daemon....

c720ffa9 05/13/2014 11:36 am Hrvoje Ribicic

Correct docstrings

The previously present docstrings noted that only certain values were
to be used, and this patch correct this now that it is not true
anymore.

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

86012ec2 05/13/2014 11:36 am Hrvoje Ribicic

Disable protections against unknown compression types

Ganeti took care to restrict all possible compression invocations to
the few options that were available. This patch strips away all of
those, but does not allow any interesting and dangerous commands...

8677c3a9 05/13/2014 11:36 am Hrvoje Ribicic

Extend offered compression types

This patch adds a few new types of compression supported by Ganeti:
gzip-fast (gzip -1), gzip-slow (ordinary gzip), and lzop. gzip now
becomes a shorthand for gzip-fast kept for compatibility.

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

9271c98e 05/12/2014 04:06 pm Petr Pudlak

Replace DRBD reservations in config.py with WConfd calls

.. and remove unused code.

The verification of the configuration needs to be later included in the
configuration verification checks in WConfd (see issue #759).

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

3648dad3 05/09/2014 03:05 pm Klaus Aehlig

Merge branch 'stable-2.11' into stable-2.12

  • stable-2.11
    Add hsqueeze to NEWS
    kvm: use a dedicated QMP socket for kvmd
    Add design-node-security.rst to docinput
  • stable-2.10
    Test parallel instance ops and plain instances
    Test parallel creation of DRBD instances...
866e1f76 05/09/2014 02:01 pm Klaus Aehlig

Merge branch 'stable-2.10' into stable-2.11

  • stable-2.10
    Test parallel instance ops and plain instances
    Test parallel creation of DRBD instances
    Test parallel job submission performance
    Test parallel instance query operations
    Test parallel instance operations...
00828204 05/09/2014 12:08 pm Klaus Aehlig

Clean up remove_locks

Locks are now identified by their name, and no longer
a resource in the master daemon. In particular, there is
no more need for explicitly removing the locks; freeing
them is enough.

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

d33d00ba 05/09/2014 09:27 am Thomas Thrainer

Fail in replace-disks if attaching disks fails

Previously, if attaching the new secondary during a replace-disks
operations failed, only a warning was emitted. The subsequent sync-disks
operation cannot finish in such a case, however.

Therefore, this patch changes the warning into an error. This way it's...

703508c0 05/08/2014 06:01 pm Hrvoje Ribicic

Merge branch 'stable-2.9' into stable-2.10

  • stable-2.9
    Add configure option to pass GHC flags
    KVM: set IFF_ONE_QUEUE on created tap interfaces

Conflicts:
configure.ac # Taken both contributions

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

b8168679 05/08/2014 04:36 pm Apollon Oikonomopoulos

KVM: set IFF_ONE_QUEUE on created tap interfaces

The IFF_ONE_QUEUE flag directs the kernel to only queue tap packets once
(as opposed to queueing them twice, once for the device, and once for the
qdisc), possibly avoiding interface stalls when one of the queues overruns....

0d730682 05/06/2014 10:14 am Klaus Aehlig

Simplify cleanup of locks

Since, from stable-2.12 onwards, locks are no longer explicitly
added and removed, there is no need to release them separately.
The freeing of all locks of the level left will take care of this
anyway.

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

bb38965c 05/06/2014 10:14 am Klaus Aehlig

Handle lock addition as lock acquisitions

From stable-2.12 onwards no longer are explicitly added; they just
exist for all conceivable names/uuids. Nevertheless, addition was
handled special based on the assumption that no one else can have
a lock on an entity that is just being created....

f00ffe76 05/05/2014 05:01 pm Klaus Aehlig

Shorten debug log

...by leaving out the full state of the configuration. These overly long
lines also make it hard to find the log entry needed.

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

9a8f9634 05/05/2014 02:22 pm Ilias Tsitsimpis

Fix the broken unittests

Fix the unittest that have been broken when we lifted the Disk objects
from the Instances.

Signed-off-by: Ilias Tsitsimpis <>
Reviewed-by: Jose A. Lopes <>

43b1f49f 05/05/2014 02:22 pm Ilias Tsitsimpis

Lift the Disk objects from the Instances

This patch replaces 'instance.disks' with 'GetInstanceDisks' everywhere
in the codebase. From now on, the function 'GetInstanceDisks' from the
config file has to be used in order to get the disks of an instance.
Also the functions 'AddInstanceDisk'/'RemoveInstanceDisk' have to be...

bca90008 05/05/2014 02:22 pm Ilias Tsitsimpis

Add 'instance_disks' parameter to 'CreateDisks'

Modify 'CreateDisks' function to accept the disks of an instance as an
extra parameter. Since the instance may not have been saved to the
config file yet, 'CreateDisks' can not query the config file for the...

e9ebf2d7 05/05/2014 02:22 pm Ilias Tsitsimpis

Add 'disks_info' Instance slot

Instance's 'disks' slot will contain a list of disk UUIDs. Create a new
slot named 'disks_info' which will be annotated with the disk objects'
during the RPC.

Signed-off-by: Ilias Tsitsimpis <>
Reviewed-by: Jose A. Lopes <>

5555dc25 05/05/2014 02:22 pm Ilias Tsitsimpis

Fix a 'map' application in ImageDisks

In the first branch of 'if' the 'disks' variable is of type
'list of tuples' whereas in the second branch ('else') it is
of type 'list of disk objects'. Fix the second one to agree
with the first.

Signed-off-by: Ilias Tsitsimpis <>...

f7c3d52a 05/05/2014 02:22 pm Ilias Tsitsimpis

Remove a disk from an instance in config

Implement functions 'RemoveDisk' and 'DetachInstanceDisk'. The first one
removes a disk from the config file and the second one detaches a disk
from an instance. A wrapper 'RemoveInstanceDisk' is provided in order to...

6a8c43d9 05/05/2014 02:22 pm Ilias Tsitsimpis

Add a disk to an instance in config

Implement functions 'AddDisk' and 'AttachInstanceDisk'. The first one
adds a new disk to the config file and the second one attaches a disk to
an instance. A wrapper 'AddInstanceDisk' is provided in order to add a
disk and attach it to an instance at once (because Ganeti doesn't...

acf64be8 05/05/2014 02:22 pm Ilias Tsitsimpis

Add methods to config to get disks

'GetInstanceDisks' returns a list of disk objects for the given
instance. 'GetDiskInfo' returns information about a disk given its UUID.
These functions should be used instead of the Instance's disk method.

Also add the 'getDisk' and 'getInstDisks' functions in Haskell but leave...

e3e1804b 05/05/2014 02:22 pm Ilias Tsitsimpis

Get MapLVsByNode from config

Use 'GetInstanceLVsByNode' from config file instead of Instance's
MapLVsByNode method.

Also remove all_lvs computation from config's 'AddInstance' method. In
order to compute the lvs we have to use the 'GetInstanceLVsByNode'...

921fd285 05/05/2014 02:22 pm Ilias Tsitsimpis

Get instance's nodes from config

Use 'GetInstanceNodes' to get the nodes of an instance, instead of the
'all_nodes' Instance property.

Signed-off-by: Ilias Tsitsimpis <>
Reviewed-by: Jose A. Lopes <>

45c044f4 05/05/2014 02:22 pm Ilias Tsitsimpis

Get instance secondary nodes from config

Use 'GetInstanceSecondaryNodes' to get the secondary nodes of an
instance, instead of the 'secondary_nodes'.
Annotate 'secondary_nodes' in rpc so that backend has access to it.

Signed-off-by: Ilias Tsitsimpis <>...

e8dd6643 05/05/2014 02:22 pm Ilias Tsitsimpis

Override disks in BuildInstanceHookEnvByObject

The function BuildHooksEnv in LUInstanceRemove, calls the function
BuildInstanceHookEnvByObject which needs to query the config to get
the secondary_nodes/disks of an instance. The function BuildHooksEnv
will be called before and after the Exec function. The second time...

58e4df3c 05/05/2014 02:22 pm Ilias Tsitsimpis

Add 'GetInstanceLVsByNode' to config

Provide a mapping of node to LVs a given instance owns.

Signed-off-by: Ilias Tsitsimpis <>
Reviewed-by: Jose A. Lopes <>

085e14f2 05/05/2014 02:22 pm Ilias Tsitsimpis

Add 'GetInstanceNodes' to config

Get all disk-related nodes for an instance.
Also use 'GetInstanceSecondaryNodes' to get the
list of secondary nodes.

Signed-off-by: Ilias Tsitsimpis <>
Reviewed-by: Jose A. Lopes <>

09104704 05/05/2014 02:22 pm Ilias Tsitsimpis

Add timestamp/serial_no slot to disk objects

Now that disks are top level citizens in config,
they need a timestamp and a serial_no slot.

Signed-off-by: Ilias Tsitsimpis <>
Reviewed-by: Jose A. Lopes <>

5d2a9c11 05/05/2014 02:22 pm Ilias Tsitsimpis

Add 'all_nodes' property to disk objects

This property returns the nodes covered by a disk.

Signed-off-by: Ilias Tsitsimpis <>
Reviewed-by: Jose A. Lopes <>

d7135309 05/05/2014 02:22 pm Ilias Tsitsimpis

Add disks entry to config.data

Add disks entry to config.data.

Signed-off-by: Ilias Tsitsimpis <>
Reviewed-by: Jose A. Lopes <>

50a88ae3 05/02/2014 03:50 pm Petr Pudlak

Fix a list expression to conform to our style guide

This fixes an error occurring in 'make commit-check'.

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

425ebca4 04/29/2014 05:04 pm Apollon Oikonomopoulos

kvm: use a dedicated QMP socket for kvmd

The KVM daemon keeps a persistent connection to the instances' QMP
sockets, listening for asynchronous events. As each monitor socket
(either human, or QMP) can handle only one client at a time, this has
the side-effect that QMP cannot be used for regular instance operations....

0f14c375 04/29/2014 02:08 pm Klaus Aehlig

Merge branch 'stable-2.10' into stable-2.11

  • stable-2.10
    Set correct Ganeti version on setup commands
    Add a utility to combine shell commands
    Add design doc for performance tests

Conflicts:
Makefile.am
doc/design-draft.rst
lib/bootstrap.py
Resolution:...

edc6dbc6 04/29/2014 01:43 pm Klaus Aehlig

Set correct Ganeti version on setup commands

When asked to execute a setup command, prefix it with
a command sequence to test for the existence of the
needed Ganeti version and switching to it.

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

a5bd9ea7 04/29/2014 01:43 pm Klaus Aehlig

Add a utility to combine shell commands

Add a function that combines individual shell commands into
a single command (calling the standard shell) that executes
the given commands in sequence while they succeed.

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

bac957e5 04/28/2014 12:10 pm Apollon Oikonomopoulos

noded: start metad via daemon-util

Signed-off-by: Apollon Oikonomopoulos <>
Reviewed-by: Jose A. Lopes <>

a2686d96 04/28/2014 12:10 pm Apollon Oikonomopoulos

KVM: start kvmd via daemon-util

Signed-off-by: Apollon Oikonomopoulos <>
Reviewed-by: Jose A. Lopes <>

f437a5f8 04/28/2014 11:17 am Petr Pudlak

Fix the order of configuration calls

Since _SetDrbdHelper calls methods on self.cfg, it's necessary to update
the configuration before it is called.

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

239826ef 04/28/2014 01:24 am Hrvoje Ribicic

Fix missing comma

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

d6f38e24 04/25/2014 06:38 pm Klaus Aehlig

Merge branch 'stable-2.11' into master

  • stable-2.11
    Make GlusterFS tests dual-stack-aware
    Moving release date of 2.11.0 to 25th of April
    Revision bump for 2.11.0
    Prepare NEWS file for release of 2.11.0
    Fix Xen instance state
  • stable-2.10
    Fix failed DRBD disk creation cleanup...
c1795848 04/25/2014 06:17 pm Klaus Aehlig

lint

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

5d863fad 04/25/2014 06:01 pm Klaus Aehlig

Merge branch 'stable-2.10' into stable-2.11

  • stable-2.10
    Fix failed DRBD disk creation cleanup
    Fix lint errors introduced during cherry-pick
    Hooking up verification for shared file storage
    Fix --shared-file-storage-dir option of gnt-cluster modify...
a37ab322 04/25/2014 04:42 pm Klaus Aehlig

Pass the debug level to forked jobs

When forking off jobs, make them inherit the debug level
of the parent process (i.e., of luxid). In this way, we
can debug jobs in test clusters without cluttering production
logs. We pass the debug level through the environment instead...

908e1be4 04/25/2014 02:56 pm Klaus Aehlig

Make jobs not log as master-daemon

While jobs are still handled by what used to be masterd,
the log message should be assigned to the respective
job.

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