spacemanager: fix NPE and corresponding logging

Acked-by: Paul Millar
Target: trunk, 2.6
Require-book: no
Require-notes: no
Patch: http://rb.dcache.org/r/5484/
nfs: add a possibility to list exports per host

Acked-by: paul Millar
Target: trunk, 2.6
Require-book: no
Require-notes: yes
gplazma: Remove internal principals from reply

Addresses compatibilty issues between 2.2 head nodes and 1.9.12 pools.

Some plugins, like the kpwd plugin, do not fill well into gPlazma 2's
architecture. The kpwd file plays the role of all four steps of a
gPlazma login and the plugin must do tricks to pass information from
one phase to the next. It does this by injecting a KpwdPrincipal that
holds the kpwd record.

Unfortunately, this principal escapes gPlazma and is passed along to
other dCache components as part of the Subject. Besides exposing
plugin specific internal principals, and making the subject unnecessarily
larger, this poses a compatbility problems with 1.9.12 pools - these
pools do not have the means to deserialize the internal KpwdPrincipal.

This patch solves the problem by removing all non-public principals
before constructing the gPlazma reply.

Target: trunk
Request: 2.6
Request: 2.2
Require-notes: yes
Require-book: no
Patch: http://rb.dcache.org/r/5487/
Acked-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Merge branch 'master' of https://github.com/dCache/dcache
pool: Make access time update non-blocking

Addresses a performance issue when reading files from a pool.

Patch http://rb.dcache.org/r/4568/ modified the pool to let access
time be updated whenever a file is read. The update is however blocking,
which means that the notification thread in the pool is blocked until
a reply from PnfsManager is received. Given that we do not use the
reply for anything, we can just as well turn the access time update
into a non-blocking notification.

Target: trunk
Request: 2.6
Require-notes: no
Require-book: no
Acked-by: Dmitry Litvintsev <litvinse@fnal.gov>
Acked-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Patch: http://rb.dcache.org/r/5472/
Add ANSI output for admin shell help text

Adds pleasant looking formatting using bold and underlined
text for help output of some admin shell commands. Support
for more commands may be added in the future.

One of the motivations for introducing annotated commands as
a replacement to the old ac_ methods was so we could make
programatic use of the additional information captured by
the annotations.

This patch adds one such use, namely the ability to output
help text formatted for an ANSI console. I have copied the
output format of man pages, using bold for headings and
literal strings, and underlined text for value placeholders.

The short summary is that the help output of some commands
in the admin is now much prettier.

Target: trunk
Require-notes: yes
Require-book: no
Acked-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Patch: http://rb.dcache.org/r/5469/
pool: Clean up flush controller

- Flush properties can now be queried through 'bean properties'

- Shell commands are now implemented as annotated commands

- Background tasks now execute on a thread pool

- Addresses inconsistent source code formatting

- Addresses potential lock contention on flush controller monitor

Target: trunk
Require-book: no
Require-notes: no
Acked-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Patch: http://rb.dcache.org/r/5467/
pkgs: Debian package missing chown for alarms directory

The debian packaging was missing the chown statement for the /var/lib/dcache/alarms directory; consequently it was being created by root.

Patch adds necessary line to postinst.template.

Target: trunk
Request: 2.6
Patch: http://rb.dcache.org/r/5492/
Bug: http://rt.dcache.org/Ticket/Display.html?id=7774
Require-notes: yes
Require-book: no
Acked-by: Gerd

RELEASE NOTES:

Fixes bug where alarms directory is owned by root instead of dcache user (Debian).
A step towards configurable cell names for gPlazma and billing

Addresses several cases of hardcoded cell names for the gplazma and
billing services.

The patch does not address all hardcoded names. The patch moves
some hardcoded names from the Java code to the batch file. A subsequent
patch should introduce a property to define the name of the billing
cell to use.

Target: trunk
Require-notes: no
Require-book: no
Ticket: http://rt.dcache.org/Ticket/Display.html?id=6836
Acked-by: Albert Rossi <arossi@fnal.gov>
Patch: http://rb.dcache.org/r/5494/
pool: Don't claim a restore was successfull when it failed

Addresses the issue that the pool logs "File successfully
restored from tape" no matter whether the restore was
successful or not.

Target: trunk
Request: 2.6
Request: 2.2
Require-notes: yes
Require-book: no
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/5485/
ftp: Fix regression in gPlazma and billing cell names

Addresses a regression introduced in the recent change that remove
hard coded cell names. The batch file of the ftp services contained
a white space character different from an ASCII 32 space and thus
ended up being part of the cell name.

Target: trunk
Require-notes: no
Require-book: no
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/5504/
ftp: Fix NPE regression in door initialization

Addresses a regression introduced in the recent removal of hard
coded cell names. The regression leads to a null pointer exception
during door initialization.

Target: trunk
Require-notes: no
Require-book: no
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/5503/