ImagePollster record duplicate counter during one poll

When using ImagePollster to poll image status from Glance, there might
be duplicate image status event recorded down if there are private
images together with public images stored in Glance.

In Glance, the get image list API looks like:
    def _get_images(self, context, filters, **params):
        ...
 # NOTE(markwash): for backwards compatibility, is_public=True for
 # admins actually means "treat me as if I'm not an admin and show
 # all my images"
        if context.is_admin and params.get('is_public') is True:
            context.is_admin = False
            del params['is_public']
        ...
The above code shows that if a user is of 'admin_role'(this option is
configured in the glance-api.conf)  and querying for public images,
Glance will return all the public images together with the private
ones

While in ceilometer/image/glance.py#_Base.iter_images method,
ceilometer get the image list by querying public and private images
respectively and then chain the result lists together. This causes
the duplication of image in the image list.

This fix changes the code in ImagePollster.get_counters method to
filter out the duplicate images based on their image id.

Change-Id: Ib5e213161043033c20195efc0c6e7edd78982bd6
Fixes: Bug 1180630
Imported Translations from Transifex

Change-Id: I6c4c2a6b31ca6cfb5a8a6a1bbd327b414f205346
Mark sensitive config options as secret.

Avoid these values inadvertently leaking into logs.

Change-Id: Iec3a683f8aeca265143ac450f5153f3d10dba1c5
Don't use pecan to configure logging

Fixes bug #1184941

openstack.common.log gives a mechanism to configure logging and, by
default, we will set up a handler on root logger. Using pecan to also
configure a handler on the 'ironic' logger means every log message gets
logged to console twice.

It seems that the pecan logging configuration stuff is redundant with
our existing logging configuration infrastructure.

Change-Id: Iec0630b0e842e3b6a90021bf552d9b857c5a0552
Log configuration values on API startup

It's very helpful for every service to log its configuration values on
startup, so you can e.g. check typos.

Also, change the print statements in the API binary to info logs.

Change-Id: I1b4181ddc7f36149cddb2c24f514d526c403b2e0
Allow specifying a listen IP

Fixes: Bug #1183314

- Update api options in ceilometer/api
- Create 'api' option group
- Read options in bin/ceilometer-api
- Update sample config
- Updated tests

Change-Id: Ic76d95f262ac9b0675cf37698c9bcdf65aff9821
Merge "Don't use pecan to configure logging"
Merge "Log configuration values on API startup"
doc: fix hyphens instead of underscores for 'os*' conf options

The ceilometer documentation, on the configuration page,
list some options with hyphens (e.g. 'os-tenant-id') which are unknown options:
underscores are required instead (e.g.: 'os_tenant_id').

Fixes: bug #1177002
Change-Id: Iea9c53f628df0b3bed06206e9b2241ed949131fa
Merge "Imported Translations from Transifex"
Update oslo, use new configuration generator

Change-Id: I28f079a3466a247bce7b4614db3e4c960d769ed7
Signed-off-by: Julien Danjou <julien@danjou.info>
Merge "ImagePollster record duplicate counter during one poll"
Merge "doc: fix hyphens instead of underscores for 'os*' conf options"
Merge "Allow specifying a listen IP"
Merge "Update oslo, use new configuration generator"