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
(cherry picked from commit e6a083fc5acb6f3ad03cc1df0943e4e746629128)
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
(cherry picked from commit dfcd0dd7c4dad64b282843f681213b335ab735f4)
vnics: don't presume existence of filterref/filter

With quantum/ovs plugin, there is no necessarily a "filteref" in interface param.
If not present don't lookup the "filter", let it to None and no more use
vnics.fref as resource_id.
resource_id becomes : instance_name + instance_uuid + vnic_name

fix Bug #1180466

Change-Id: I21c15f9ee4bd5303a7f2e287c7fe69aa7d0d5b0a
(cherry picked from commit f5d82ac17c0f8dfaed92670649c4bed0794dacf6)
Merge "vnics: don't presume existence of filterref/filter" into stable/grizzly
Merge "ImagePollster record duplicate counter during one poll" into stable/grizzly
Merge "Don't use pecan to configure logging" into stable/grizzly