Add systemd unit files to EXTRA_DIST

This patch add systemd unit files used by ganeti-*.service to
EXTRA_DIST.

Signed-off-by: Jun Futagawa <jfut@integ.jp>
Reviewed-by: Apollon Oikonomopoulos <apoikos@gmail.com>
Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
Set SO_REUSEADDR in ConfD

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Petr Pudlak <pudlak@google.com>
Readd instance removal

The cleanup that was removed in commit c57cdced still needs to exist,
albeit outside the finally block.

Signed-off-by: Hrvoje Ribicic <riba@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
Break up parallel performance QA tests

With all the parallel performance QA tests being run under the same
"parallel-performance" test name, activating individual ones for
debugging was impractical. This patch introduces separate names for
the QA tests.

Signed-off-by: Hrvoje Ribicic <riba@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
Make parallel performance rename test more serial

While the rename operation still acquired the BGL lock, the parallel
performance rename test was effectively serialized. With the removal
of the BGL, the second rename fails as it hits a check for the
existence of the renamed instance before the rename is done.
This patch explicitly serializes the two operations by making them run
on success rather then submitting them almost immediately.

Signed-off-by: Hrvoje Ribicic <riba@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
Change monitoring test invocation

This patch changes the invocation of the monitoring tests so they would
accurately show when a test has been skipped.

Signed-off-by: Hrvoje Ribicic <riba@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
Add a function to list livelock files found on the system

While we mainly care to detect deaths of resource owners, we
also want to avoid leaking stale livelock files. Those can
occur is someone dies after returning all resources. Provide
a function listing them, so that they can be cleaned up.

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Niklas Hambuechen <niklash@google.com>
Also clean up stale livelock files

So far, WConfD only cleans up the livelock files of resource
owners. While this is sufficient for reclaiming resources and
Ganeti to work properly, we still don't want to leak stale
livelock files.

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Niklas Hambuechen <niklash@google.com>
Merge branch 'stable-2.12' into master

* stable-2.12
  Also clean up stale livelock files
  Add a function to list livelock files found on the system
  Change monitoring test invocation
  Make parallel performance rename test more serial
  Break up parallel performance QA tests
  Readd instance removal
  Set SO_REUSEADDR in ConfD
  Add systemd unit files to EXTRA_DIST

Conflicts:
	src/Ganeti/WConfd/DeathDetection.hs
Resolution:
	add newly added cleanup of stale files to
	cleanupLocksTask, leaving cleanupLocks
	unchanged.

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Niklas Hambuechen <niklash@google.com>