Add watcher as reason source

...given that the watcher also submits op-codes.

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Petr Pudlak <pudlak@google.com>
Add reason trail to watcher submitted op-codes

For every op-code it should be transparent how it entered the
system. Don't let the watcher be an exception.

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Petr Pudlak <pudlak@google.com>
Expand "all instances" to names

As by inspection of the code, it turned out that we generally lock
objects by uuid, but there is one exception: instances are always
locked by their name. So change the expanding of the all-set
accordingly.

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Petr Pudlak <pudlak@google.com>
As instances are locked by name, fix the Arbitrary

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Petr Pudlak <pudlak@google.com>
LUClusterRepairDiskSizes: also lock instances by name

...and, in particular, expect the "all instanes" lock set
to expand to names.

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Petr Pudlak <pudlak@google.com>
Add details to soundhw in gnt-instance man

Signed-off-by: Chris Schrier <schrierc@google.com>
Reviewed-by: Hrvoje Ribicic <riba@google.com>
Make the watcher also restart wconfd on master

When this new daemon was added, the watcher wasn't
extended to pet this daemon as well. Do so now.

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Petr Pudlak <pudlak@google.com>
Fully probe WConfD in watcher

Make the watcher also handle the case that WConfD is up but
not responding. To verify that WConfD is responding, we probe
by using the "Echo" command. If that fails, restart WConfD.

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Petr Pudlak <pudlak@google.com>
Merge branch 'stable-2.12' into master

* stable-2.12
  Fully probe WConfD in watcher
  Make the watcher also restart wconfd on master
  LUClusterRepairDiskSizes: also lock instances by name
  As instances are locked by name, fix the Arbitrary
  Expand "all instances" to names
  Add reason trail to watcher submitted op-codes
  Add watcher as reason source

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Hrvoje Ribicic <riba@google.com>
Fix RAPI custom parameter support for recreate-disks

The recreate-disks RAPI call previously ignored almost all parameters
passed to it, and this patch fixes the issue and adds tests.

Signed-off-by: Chris Schrier <schrierc@google.com>
Reviewed-by: Hrvoje Ribicic <riba@google.com>