Fix the ceilometerlient log curl request incorrectly

Have installed ceilometer on Ubuntu 12.04 (LTS) and added the keystone endpoint
with the url (publicurl,internalurl and
adminurl)like:http://192.168.83.7:8777/refer to the "OpenStack
Installation Guide for Ubuntu 12.04 (LTS)". When using  "ceilometer
--debug meter-list",the ceilometerclient log
request url with a double slash after 8777.

Change-Id: I467704b1fe1d38fe0f0e928bd6f6efe3d8925845
Closes-bug: #1262498
Supports bash_completion for ceilometerclient

bash_completion feature can improve CLI user experience, projects like
nova, keystone, and cinder already support it.

NOTE: this patch just provides simple functionality, which means cache
for IDs and names is not used (like nova).

Change-Id: I1b04998a5e7c8818aed4b51f5fe5bf01efd0e14a
Closes-Bug: #1260939
client looking at wrong cacert argument name

fix so client consistently uses 'os_cacert' arg value instead of
either 'os_cacert' or 'cacert'

Change-Id: If5648855aefc7af64178249c270a9ac66907e466
Closes-Bug: #1266472
Use Resource() class from common Oslo code

In the process of unification of the clients code we should
reuse common functionality from Oslo. Resource() class from ceilometer
duplicates Oslo funclionality, so we replace it with inheritance

Change-Id: I4e4b83252cdc87e8484d15e351cd5dab08f3ed8a
Python 3: fix test_sample_list

Change the counter_volume field of "fake" samples to get compatibility with
both Python 2 and 3.

In Python 2:

    >>> print(str(0.261666666666667))
    0.261666666667

In Python 3:
    >>> print(str(0.261666666666667))
    0.261666666666667

Change-Id: I4beed7aff7e89f891024975b9df9208c987dc87c
Merge "Use Resource() class from common Oslo code"
Support the Event API

This patch adds support for the currently available
Event API, including events, event types, and traits.

Add an optional data type to the query, ex:
   ceilometer list-events -q 'hostname=string::localhost"

bp extend-client-operations

Change-Id: Icea9bd67f8ee4ff2bf9da9ff6894218689580eb3
Remove unused imports

Remove unused imports in doc/source/conf.py

Change-Id: I419f60dc7bb3a2e73961bab933867b171851eb18
Closes-Bug: #1268091
abbreviating --meter-name to -m in alarm commands

related commands of alarm:alarm-threshold-update,alarm-update,alarm-create
should support parameter --meter-name abbreviating to -m like other
commands of ceilometer.

Change-Id: I9fa9a7d14df3d93c3021f5004b444e72e1099c48
Closes-bug: #1268431
fix optional parameter of creating sample

When creating sample without parameter "meter_name" in ceilometer CLI,
The result is 'counter_name' ,the parameter "meter_name"(i.e.counter_name)
isrequired,but it is not in the help messages of "ceilometer sample-create".

Change-Id: I17ee19354b51cd5095677438359d036783d82b15
Closes-bug: #1267378
Replace inheritance hierarchy with composition

In the process of unification of the clients code we should use
composition to allow easier replacement with common HTTPClient.

bp common-client-library-2

Change-Id: I98d2bc89d5b1a36c30771923cd1cda7925e563d5
Merge "Python 3: fix test_sample_list"
Merge "client looking at wrong cacert argument name"
Merge "Supports bash_completion for ceilometerclient"
Remove dependencies on pep8, pyflakes and flake8

They should be determined by the hacking dependency
implicitely.

Change-Id: Iaa66d7baaa05350b6d6289976f807a5750b0ea8e
Merge "Remove unused imports"
Merge "fix optional parameter of creating sample"
Add support for groupby in statistics for API v2

Adds the groupby parameter to list method of Statistics
and a new option "-g/--groupby" for the shell.

Change-Id: I41cfa076bf73f8c01d4ee71cd70008ea231556c8
Closes-Bug: #1270094
replace assertTrue(isinstance) to assertIsInstance

some of tests use different method of assertTrue(isinstance(A, B))
or assertEqual(type(A), B). The correct way is to use
assertIsInstance(A, B) provided by testtools

Change-Id: Idd931d27b13a46800e27393a98da096d41442320
Closes-bug: #1268480
Merge "Remove dependencies on pep8, pyflakes and flake8"