chimera: Implement set-gid bit on directories

Target: trunk
Require-book: yes
Require-notes: yes
Ticket: http://rt.dcache.org/Ticket/Display.html?id=7840
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/5769/
pool: Manage periodic health check through Spring

Minor refactoring prior to adding new features to the periodic
health check.

Note that the output of the 'info' command of a pool has changed
as it no longer shows the 'Check Repository  : true' line.

Target: trunk
Require-notes: no
Require-book: yes
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/5772/
hsqldb: (billing) comply with new configuration policy

Updates hsqldb.properties to match billing.properties

Testing done:

Tested dcache database ls with billingToDb on and off.
Ran dcache and checked logs.
Inspected var/plots for plots.

Target: master
Patch: http://rb.dcache.org/r/5780/
Require-book: no
Require-notes: no
Acked-by: Paul
system-test: Do not use deprecated billing property

Acked-by: Karsten Schwank <karsten.schwank@desy.de>
Patch: http://rb.dcache.org/r/5787/
Target: trunk
Require-notes: no
Require-book: no
Squashed commit of the following:

commit b6faa1aa898dc62854696d6719ca61a8cea8d6f9
Author: Dmitry Litvintsev <litvinse@fnal.gov>
Date:   Tue Jul 23 13:26:40 2013 -0500

    srm: fixed a left over from srm in transfermanagers.batch

    what happened

    Ticket: #number
    Acked-by:
    Target: trunk
    Require-book: no
    Require-notes: no

commit 9b6bfd5898543adde2503eb85f83e38d4c3eec38
Author: Dmitry Litvintsev <litvinse@fnal.gov>
Date:   Tue Jul 23 13:11:54 2013 -0500

    srm: adapt to new naming convention

    what happened

    Ticket: #number
    Acked-by:
    Target: trunk
    Require-book: no
    Require-notes: no

commit 9b82f2e5eb26dc2051a6ab9312cd13a2e5ecf140
Author: Dmitry Litvintsev <litvinse@fnal.gov>
Date:   Fri Jul 19 19:46:47 2013 -0500

    srm: new property policy

    what happened

    Ticket: #number
    Acked-by:
    Target: trunk
    Require-book: no
    Require-notes: no

commit 65d6daf918500a0504c46799456ef1fbef7a3333
Author: Dmitry Litvintsev <litvinse@fnal.gov>
Date:   Thu Jul 18 22:31:39 2013 -0500

    srm: new propery policy

    what happened

    Ticket: #number
    Acked-by:
    Target: trunk
    Require-book: no
    Require-notes: no
SRM: tidy up how JDC is used and how it interacts with NDC

The SRM has a class 'JDC' that has roughly the same functionality as
the cells CDC class, namely to be a container for all diagnostic
information.  Both CDC and JDC make use of the NDC class, which
provides a stack of diagnostic information in which items may be
pushed, popped, reset and the state saved and restored later on.  Also,
both use the same key-value storage: MDC.  (In fact, correct flow of
diagnostic information from SRM to dCache relies on both using MDC with
the same key, which is not clear from casual inspection.)

When a request start from within SRM it is assigned a session-ID, as
with other doors.  Like other doors, the SRM pushes the session-ID into
the NDC, so logged messages contain this useful information.  Note
that, although the stored session-ID and the string pushed into the NDC
have the same value, they are stored independently.

Unlike other doors, the SRM may alter the session-ID while processing a
request.  For example, an SRM request that may involve multiple files
will have different session-IDs when working on different files within
the same request.  The file-specific session-ID is derived from the
SRM-request session-ID by appending a counter.

Updating the stored session-ID is supported; however, NDC does not
support altering an already-stored value.

To work around this, the JDC pops the existing value and pushes a new
value.  This is fragile as it only works if no other diagnostic
information is pushed after the session-ID.

This patch updates JDC so it allows popping an arbitrary number of
items off the NDC, updating the session-ID and pushed the previously
popped items back onto the NDC.

The patch also updates JDC to make use of the try-with-resource
pattern.  Some methods that alter the diagnostic context return a JDC
object that, when closed, revert these (and any subsequent) changes.
This is similar to how CDC was updated to follow this pattern.

The SRM code is updated to make use of this new pattern; it also fixes
some places where SRMv1 code failed to set the session.

The Axis thread is updated so that the session-ID is present in logged
messages.  This is particularly useful for the srmGetStatus-family of
requests.

Finally, the patch updates the format of the session-ID.  The current
format is unnecessarily verbose.  The new format is <epoc>:<counter>,
where <epoc> is a one to three Base64 characters (i.e., from
[a-zA-Z0-9+/]) and <counter> is the number of SOAP requests since
start-up.  The <epoc> is chosen so it is very (very) likely different
between successive SRM instances.  The result is the session-ID is
noticeable shorter (initially 3--5 characters compared to 8), making
logged lines easier to read.

Target: master
Requires-notes: no
Requires-book: no
gplazma2-htpasswd: Add htpasswd support

This plugin adds support for the htpasswd file - a file format
used by many web servers.

The plugin only supports MD5 hashes. SHA is not supported
at the moment.

The htpasswd can be managed with the htpasswd utility available on
most OSes.

system-test is updated to use htpasswd + authzdb for the admin
account if the htpasswd utility is available.

Target: trunk
Require-book: yes
Require-notes: yes
Acked-by: Paul Millar <paul.millar@desy.de>
Acked-by: Karsten Schwank <karsten.schwank@desy.de>
Patch: http://rb.dcache.org/r/5759/
pool: Add callout to health check script

dCache pools periodically perform simple I/O tests to verify
that a pool is still working. We can however not check the
general health status of the host system, eg. whether a disk
in the array has failed.

This patch adds the ability to call an external health check
program. If the program exits with a non-zero exit code, the
pool health is considered degraded and will cause the pool to
be marked read-only or disabled.

The command is configurable through the pool.check-health-command
property.

Target: trunk
Require-book: yes
Require-notes: yes
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/5775/
pool,poolmanager: Factor WASS code out of partition and selection strategy code

Addresses code duplication between pool manager and migration module
code.

Target: trunk
Require-book: no
Require-notes: no
Acked-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Patch: http://rb.dcache.org/r/5788/
doors: Fix parsing of cipher flags

Addresses the problem that the empty string was not accepted for
*.security.ciphers configuraiton properties.

Target: trunk
Request: 2.6
Request: 2.2-sha2
Require-book: no
Require-notes: yes
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/5795/
chimera-cli: fix usage help for writetag

Acked-by: Paul Millar
Target: trunk
Require-book: no
Require-notes: no