Add new meters for swift

    This patch adds new meters:
        -storage.containers.objects
        -storage.containers.objects.size.
    These meters are implemented through a polling Swift

blueprint: https://wiki.openstack.org/wiki/Ceilometer/blueprints/pollster-swift

Change-Id: Ic1f3aaf351db0b99392eb13d4f31f2732f87f816
Empty files should no longer contain copyright

Change-Id: Id314cd0ec658cb96cfc50493cd5bab10c2716714
Closes-Bug: #1262424
Fix broken i18n support

In notification and publisher.rpc module, there are some log messages
don't support i18n, this patch fixes them.

NOTE: rename unused variable from _ to n, because it will overshadow
global _ of gettext.

Change-Id: Ic703fe6536234f4d51a84f4a3b2e04049ec6f3b5
Closes-Bug: #1263711
Allow customized reseller_prefix in Ceilometer middleware for Swift

Swift can be configured to use a different reseller prefix than AUTH_.
In this case Ceilometer returns None as resource_id.

This patch allows to set the reseller prefix, with a fallback to AUTH_
if not set. It also ensures that the reseller prefix ends with ``_``.
Two additional tests to verify this were added.

Change-Id: I1ba40091582da46c0385a71d1828bb3820a5e2b5
Closes-Bug: #1260965
cacert is not picked up correctly by alarm services

related to bug 1266472 which changes client to look only at os_cacert arg.
update alarm services to use just os_cacert as well.

Change-Id: Id28a0838330296fe030fa7c4a35a216dd3e64bad
Closes-Bug: #1266477
Fixed spelling mistake

Spelling mistakes was discovered on running
misspellings package on codebase

Closes-Bug: #1266693

Change-Id: I63bfea00b2b2196d1d971546e7a204137678880c
Check for pep8 E226 and E24

By default, pep8.py ignores E226 and E24. By changing
tox.ini to not have an ignore clause, it started using
the default. Since we were explicitely ignoring things
until recently, E226 and E24 where being checked. This
patch adds an ignore clause to tox.ini and fixes some
E226 errors to match our pep8 checks to other projects
in openstack.

Change-Id: Ia0bc0e6bcb4b4c6e54d61bae2fd7cad48303a62a
Fix to tackle instances without an image assigned

fixes bug #1233103

Change-Id: I4d4d7bdff09b6748e14ebac8293050513fb18ed2
tests: allow to skip if no database URL

This is needed for certain driver that we may not want to test if
there's no URL provided in the scenario, i.e. no environment variable
can be found.

Change-Id: I0301987885184ce1e2f83c10db99dba70450449a
requirements: drop netaddr

We don't use directly, so there is no need to require it.

Change-Id: I94bbe7fbcfe192ca355ad00a64e0720addc1bb10
tests: pass /dev/null as config for mongod

On certain system, such as Darwin, the default mongod binary is a
wrapper adding a default configuration file. Let's specify that there's
no configuration file to read, otherwise a log file is used instead of
stdout.

Change-Id: I56c72cd61399405fd57d6e3f2b1f53ca6a395835
Merge "Fixed spelling mistake"
Merge "Add new meters for swift"
Fix work of udp publisher

 * Signature is appended also to udp messages
 * All methods for convert from sample to message are moved to publisher/utils.py
 * In configs metering_secret is moved from group publisher_rpc to publisher
 * Changed tests for udp publisher

Fixes: bug #1259171

Change-Id: Ic7727c69d4be6d17ff00f21e323341efd57122a7
Merge "Check for pep8 E226 and E24"
Remove redundant meter (name,type,unit) tuples from Resource model

Fixes bug 1267162

Previously, a list of meter (name,type,unit) tuples with per-sample
cardinality was added to the Resource model by the storage driver
get_resource method.

However this potential huge and highly repetitive list was then
promptly discarded by the API layer, as the meter links in the API
Resource representation are populated via subsequent calls into
the storage driver get_meters method.

Now, we avoid the scaling issue by suppressing the creation of
this unused meter list.

Change-Id: I18dee7552836c724798ea1340e2e933c09d8a294
Merge "Empty files should no longer contain copyright"
Merge "Fix work of udp publisher"
Merge "Allow customized reseller_prefix in Ceilometer middleware for Swift"
Merge "Remove redundant meter (name,type,unit) tuples from Resource model"