reconnect to mongodb on connection failure

Try to reconnect to mongodb when the client library raised a
ConnectionFailure error. This is especially useful when mongodb is in
the process of initializing a replica set and it does not respond to
connections even though the mongodb service is up.

Change-Id: I1818d90c135b248a28b35dc0b9f6106cf89496ab
Closes-Bug: #1305920
Ignore the generated file ceilometer.conf.sample

Since we have removed the ceilometer.conf.sample file and added
tox -e genconfig to generate it, we should no longer track it.

Change-Id: I66a03eb2672941ba5115bf0adb9fb0c944f68e4d
Closes-Bug: #1320150
Merge "Ignore the generated file ceilometer.conf.sample"
Fix testing gate due to new keystoneclient release

As new keystoneclient version was released, token now
requires 'expires' field to be set.

Change-Id: I57a7746d24b82763824a02ac3d02049b055288c7
Merge "reconnect to mongodb on connection failure"