(PDB-653) metrics update on PDB start

Previously the DLO metrics only updated on a failed command submission, which
meant restarting PDB would blank the metrics until the next failure. This patch
initializes DLO metrics on PDB startup if the DLO directory, which is created
on first failure, already exists.
(docs) Fixed contributor link
Merge branch 'maint/stable/cla-fix' into stable

* maint/stable/cla-fix:
  (docs) Fixed contributor link
Merge pull request #1079 from wkalt/ticket/master/pdb-653-metrics-not-updating

(PDB-653) metrics update on PDB start
(PDB-865) PDB 2.2 migration fails when nodes have no facts

This patch handles an error that occurs if a user attempts the 2.2 upgrade
with nodes that have no associated facts in the database, and adds some
additional testing around the migration.
Allow beaker rake task to accept proper preserve-hosts options

In the past it just allowed true/false, but the current beaker accepts a series
of options, including 'onfail' which is what I was after. This change passes
throught the value specified in the env var only now.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #1082 from kbarber/maint/stable/allow-preserve-hosts-pass-through

Allow beaker rake task to accept proper preserve-hosts options
Revert "Changed our acceptance test setup to pin on facter 2.1.0"

This reverts commit 72a1588fd5019de9c9801974b9ef4c25625dcc48.

The tests should now use puppetlabs/puppetdb 4.0.0. The 4.0.0 module
depends on puppetlabs/postgresql 4.0.0, which has a fix for the facter
issue, so we no longer need to pin on an older facter.
Merge pull request #1084 from senior/maint/stable/revert-facter-pinning

(PDB-873) Revert "Changed our acceptance test setup to pin on facter 2.1.0"
(testing) Remove open_postgres_port usage from puppetdb class

This option is now deprecated, so we shouldn't use it in our tests.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #1085 from kbarber/maint/stable/module-4-test-failures

(testing) Remove open_postgres_port usage from puppetdb class
Merge branch 'stable'

* stable:
  (testing) Remove open_postgres_port usage from puppetdb class
  Revert "Changed our acceptance test setup to pin on facter 2.1.0"
  Allow beaker rake task to accept proper preserve-hosts options
  (docs) Fixed contributor link
Merge pull request #1083 from wkalt/ticket/stable/pdb-865-bad-data-migration-fix

(PDB-865) PDB 2.2 migration fails when nodes have no facts
(PDB-868) Add exponential back offs for db retry logic

This patch provides greater amount of retries, and exponential backoff logic
to avoid the case where the database is still throwing errors for a short
period of time. This commonly occurs during database restarts, and so this
logic is specifically targeted to handle smaller transient failures (not
large ones).

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #1086 from kbarber/ticket/stable/pdb-868-improve-57p01-retries

(PDB-868) Add exponential back offs for db retry logic
Merge branch 'stable'

* stable:
  (PDB-868) Add exponential back offs for db retry logic
  (PDB-865) PDB 2.2 migration fails when nodes have no facts

Conflicts:
	src/puppetlabs/puppetdb/jdbc.clj
ec2 test
add relevant file
dksjhf
change login to admin