summaryrefslogtreecommitdiff
path: root/ceilometerclient
Commit message (Collapse)AuthorAgeFilesLines
* Retire ceilometerclientJulien Danjou2017-11-2257-10758/+0
| | | | | Depends-On: Ic2947fd066a2df685d52539d0756cd981cc16113 Change-Id: I65738a55db82053643f7580eee20b63df52b957f
* Use generic user for both zuul v2 and v3Nam Nguyen Hoai2017-10-171-3/+3
| | | | | | | Zuul v2 uses 'jenkins' as user, but Zuul v3 uses 'zuul'. Using $USER solves it for both cases. Change-Id: Ida42122c0ad2fa123c2e245acfa4be5f964180a2
* Correct docs usage of keystoneauth1 sessionGage Hugo2017-09-121-1/+1
| | | | | | | | keystoneclient.session has been long deprecated in favor of keystoneauth1.session. This change corrects entries in the documentation to use the correct library's session. Change-Id: I6ae71befe62aee567e44308ec9afec2dd34efda1
* Update and optimize documentation linksHangdong Zhang2017-07-182-3/+3
| | | | | | | | 1. Update URLs according to document migration 2. Update the dead and outdated links 3. Optimize (e.g. http -> https) Change-Id: Ic847deff2b8344a35a31b76edc63296b01bde64c
* Fix invalid url for event_typesMartin Kulhavy2017-07-132-4/+4
| | | | | | | | Additionally fix the object name in the string representation. Closes-Bug: 1704138 Change-Id: I2bb0963600cfc93d782f10480d5245d92c1c0f1d Signed-off-by: Martin Kulhavy <martin.kulhavy@nokia.com>
* Merge "Deprecate ceilometerclient"2.9.0Jenkins2017-06-092-4/+5
|\
| * Deprecate ceilometerclientJulien Danjou2017-05-292-4/+5
| | | | | | | | Change-Id: I9259b2e44ac1ba815a6eec5019f0460065996eac
* | Merge "Remove log translations"Jenkins2017-05-231-10/+0
|\ \ | |/ |/|
| * Remove log translationsluqitao2017-03-211-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | Log messages are no longer being translated. This removes all use of the _LE, _LI, and _LW translation markers to simplify logging and to avoid confusion with new contributions. See: http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html Change-Id: I0dcc1b8e9f0dd51b6892126a2ef010e6f3a2d940
* | Merge "[bugfix]with keystone v3 Could not find domain: default."Jenkins2017-05-101-6/+2
|\ \
| * | [bugfix]with keystone v3 Could not find domain: default.zhangjianfeng2017-05-091-6/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | when we use adminrc with keystone v3 not set OS_PROJECT_DOMAIN_ID OS_USER_DOAMIN_ID,default ceilometerclient code will set it to string default.this will lead error. value is often like fdc79c4b63e8492d98271412320e8672 so when change this code to set it as None. last we delete the user_domain_id and project_domain_id because it is not useful. closes-bug: 1679934 Change-Id: I95c994406ed7a0b15ba6446e80f01e4f6787ec20
* | delete bash_completion in subcommandForestLee2017-05-011-11/+0
|/ | | | | | | | | There are two "completion" in the subcommand table: bash-completion and bash_completion. but "bash_completion" is not in help information and it is repeated with "bash-completion", so delete it. Change-Id: I5f3bc918a1ce5b6283cc865db4383f128b138d5e Closes-Bug: #1670123
* Handle log message interpolation by the loggerGábor Antal2017-02-071-2/+2
| | | | | | | | | | According to OpenStack Guideline[1], logged string message should be interpolated by the logger. [1]: http://docs.openstack.org/developer/oslo.i18n/guidelines.html#adding-variables-to-log-messages Change-Id: Ia2bcd4387c406a3f7ffdb3cfe0badeccca22f278 Closes-Bug: #1661262
* Adjust parameters order of tenant_xxx and project_xxxJeremy Liu2017-02-041-1/+1
| | | | | | We prefer project_xxx to tenant_xxx when authenticating. Change-Id: I438854e6c9a9ea397ae4e7f21919a82c872f9693
* shell: do not force domain to be presentJulien Danjou2017-01-251-19/+5
| | | | | | If OS_PROJECT_NAME and Keystone v2 is used there's no need to set a domain. Change-Id: I9555b571224262b61255f70a30f540a32b8ae2fc
* Merge "cleanup aodh redirect"2.8.0Jenkins2017-01-232-7/+1
|\
| * cleanup aodh redirectgord chung2017-01-112-7/+1
| | | | | | | | Change-Id: I80684f79da471e22dbc1dacdeafa43c6cfa334a8
* | Merge "panko redirect"Jenkins2017-01-234-28/+38
|\ \ | |/
| * panko redirectgord chung2017-01-114-28/+38
| | | | | | | | | | | | same as aodh but with panko_endpoint Change-Id: Iae7d60e1cf139b79e74caf81ed7bdbd0bf2bc473
* | Merge "cleanup aodh mocks"Jenkins2017-01-231-16/+16
|\ \ | |/
| * cleanup aodh mocksgord chung2017-01-111-16/+16
| | | | | | | | | | | | don't pass in arg we don't use Change-Id: I14b9cd3178f929aa878f5caff97a6ba4318a42a0
* | Adding default project and domain if nothing is specifiedPrateek Khushalani2016-12-151-1/+9
|/ | | | | | Closes-Bug: 1543502 Change-Id: Iea57a6ed757bfa28eb09324378b5376667b0c120
* Add __ne__ built-in functiongecong19732016-11-231-0/+3
| | | | | | | | | | | | | In Python 3 __ne__ by default delegates to __eq__ and inverts the result, but in Python 2 they urge you to define __ne__ when you define __eq__ for it to work properly [1].There are no implied relationships among the comparison operators. The truth of x==y does not imply that x!=y is false. Accordingly, when defining __eq__(), one should also define __ne__() so that the operators will behave as expected. [1]https://docs.python.org/2/reference/datamodel.html#object.__ne_ Change-Id: I4ba5b370e34cd64b13d87ef3ce2869d224dd0969
* move old oslo-incubator code out of openstack/commonSteve Martinelli2016-11-0428-115/+98
| | | | | | | | | | | | | | As part of the first community-wide goal, teams were asked to remove the openstack/common package of their projects if one existed. This was a byproduct of the old oslo-incubator form of syncing common functionality. The package, apiclient, was moved to a top level location and a new i18n module was created. There is no oslo.apiclient library or equivalent, the recommended solution is to move it in tree and maintain it there. Change-Id: Ia788313e0926dc872a87b090ef0a350898bfb079
* Make method import_versioned_module workLuong Anh Tuan2016-11-033-11/+6
| | | | | | | | | Update function import_versioned_module in Oslo.utils 3.17. This patch update to meet new version. For more information: http://docs.openstack.org/developer/oslo.utils/history.html Change-Id: Ia031b53b27fcea66dbf4f2798d58b51c53c2d0cc Closes-Bug: #1627313
* Fixes SSLError during cclient.meters.list() by https2.7.0Ekaterina Khripunova2016-10-172-3/+3
| | | | | | | | | | | | The problem causes the function _adjust_kwargs(kwargs) which creates a new dict client_kwargs with new-named keys. It gets 'os_insecure' key from kwargs and gives it key-name 'insecure'. But the bug is in using kwargs.get('insecure') <which is None> to produse value of 'verify'. Change-Id: If77b2d3c75beddcd1a0a82353b56c84b29184ec7 Closes-Bug: 1634027 Related-Bug: 1394449
* Set code and details on HTTPExceptionMehdi Abaakouk2016-10-072-13/+25
| | | | | | | | Even the HTTPException is unknown for ceilometer we should set the code and print it with the details. Closes-bug: #1626404 Change-Id: Ib244d8822f7a1ebc1b8ec1b95d13b20bbb69ece0
* Using assertIsNone() instead of assertEqual(None)Anh Tran2016-09-271-1/+1
| | | | | | | | | | | Following OpenStack Style Guidelines[1]: [H203] Unit test assertions tend to give better messages for more specific assertions. As a result, assertIsNone(...) is preferred over assertEqual(None, ...) and assertIs(..,None) [1] http://docs.openstack.org/developer/hacking/#unit-tests-and-assertraises Change-Id: Iae83c4360336cf07b6045615ff38933f52844499
* Replace assertEqual(None, ...) with assertIsNone(...)Hanxi Liu2016-09-201-1/+1
| | | | | | | | | From OpenStack Style Guidelines [1], [H203] Use assertIs(Not)None to check for None. [1] http://docs.openstack.org/developer/hacking/#unit-tests-and-assertraises Change-Id: Ib60e025af418678884d9bea91e1c318b3aadf4c9
* Deprecate alarms commandsJulien Danjou2016-09-081-1/+22
| | | | | | Users should switch to aodhclient Change-Id: Icb02052ef7a6c61e32747a94f2559bc0e786bda1
* Fix from_response method to process response from requestsAndrey Kurilin2016-09-072-2/+28
| | | | | | | | | | | | | | | | SessionClient uses requests library. It's response class doesn't have "status" property[1], so in case of any errors(with status code > 400), from_response method is called and raises AttributeError. Also, HTTPClient implementation uses requests lib by default[2](if 'http' argument was not transmitted), so from_response method will raise AttributeError too. [1] - http://docs.python-requests.org/en/master/api/#requests.Response.status_code [2] - https://github.com/openstack/python-ceilometerclient/blob/2.6.0/ceilometerclient/openstack/common/apiclient/client.py#L99-L100 Change-Id: Id8fb2f386e8101951716f30a6365c9aa15bd4b24 Closes-Bug: #1620974
* Merge "Correct the parameters's position of assertEqual"2.6.0Jenkins2016-08-087-39/+39
|\
| * Correct the parameters's position of assertEqualxiaozhuangqing2016-07-297-39/+39
| | | | | | | | | | | | | | | | | | | | | | | | assertEqual using should be assertEqual(expected, actual) misplace have two impacts: 1.giving confusing messages when some tests failed. 2.mislead other developer,new test modules may follow these wrong pattern see Partial-Bug https://bugs.launchpad.net/oslo.config/+bug/1604213 Change-Id: I4467d5efb1eed9f4c473c947c93afcfaf9be6ea6
* | Merge "Remove keystoneclient dependency"Jenkins2016-08-082-67/+0
|\ \
| * | Remove keystoneclient dependencyJulien Danjou2016-07-282-67/+0
| |/ | | | | | | Change-Id: I3589eca8fd6a581e57524cffa8a8f1278358f38c
* | [trivial] add a blank characterzhangguoqing2016-08-041-1/+1
|/ | | | | | | In ceilometer help event-list, the line "integer, floator datetime." should be "integer, float or datetime." Change-Id: Ib8976b5e580e2a95a4e04d7d95c815011127749c
* Add support for Python 3.5Julien Danjou2016-07-271-66/+5
| | | | | | | This fixes a test that check too much of the output formatting. Just test that some of the values we expect are there. Change-Id: I43a2c2d017bc99ef045ff2e4c5943f1607343ec1
* base.Resource not define __ne__() built-in functionyuyafei2016-07-042-1/+4
| | | | | | | | | | | Class base.Resource defines __eq__() built-in function, but does not define __ne__() built-in function, so self.assertEqual works but self.assertNotEqual does not work at all in this test case in python2. This patch fixes it by defining __eq__() built-in function of class base.Resource. Also fixes spelling errors:resoruces. Change-Id: I8a4e09e277a14a16105feab81ba8d07ceee5b47f Closes-Bug: #1586268
* Merge "Switch to keystoneauth"Jenkins2016-06-235-30/+27
|\
| * Switch to keystoneauthClenimar Filemon2016-06-015-30/+27
| | | | | | | | | | | | | | keystoneclient.auth is deprecated in favour of keystoneauth. This patch updates Ceilometerclient accordingly. Change-Id: Id4b14cbccfabfeaa5322f7ae5702261d0ed9cca2
* | Ignore aodh_endpoint argumentrabi2016-06-072-1/+20
|/ | | | | | | | | When using keystone session, we seem to pass all **kwargs to SessionClient for metering. We should drop the 'aodh_endpoint' from kwargs. Change-Id: Iaf28d4a525d49f62a0ae635dc1102cc1f0308c74 Closes-Bug: #1589425
* Correct the usage of the method assertEqual()hexin2016-05-191-10/+10
| | | | | | | The first argument of the method assertEqual() should be the expected value. Change-Id: I8ea18641e7563e6d7b2779888759d761c9a843f8
* Update to hacking 0.11.0ZhiQiang Fan2016-05-135-15/+0
| | | | Change-Id: I858a418fa5202ec4fc0fc17f462b983f7864bcac
* Switch from deprecated tempest-lib to tempestJulien Danjou2016-04-121-1/+1
| | | | Change-Id: I2e94b8102ad19500068cc2688d11293e4e9b8aed
* Fix the disorder of items of Traits in the output of event-listxialinjuan2016-03-232-4/+9
| | | | | | | | When use the command ceilometer event-list, the output is not alwarys ordered. This patch fix it. Closes-Bug: #1553932 Change-Id: I3af0fb25bd09ea9f15584219f07dd24ebb77c1cc
* Merge "remove default value of repeat-actions"Jenkins2016-03-143-1/+31
|\
| * remove default value of repeat-actionsZhiQiang Fan2016-03-103-1/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I94468ff649dd4367848c74e94a3feb08494bb223 fixes problem that ceilometeclient incorrectly reset repeat-actions when update any attribute. I53f3af447a8f814388985f6e4ab57a8ffec18a2a reverts most of the above change, which leading to bug 1539092. Because repeat-actions has default value False, no matter we set it or not, it will replace this bit when we get alarm from API. The unit test doesn't cover such case, so this change still succeeds in CI test. We don't need to revert it again, because the redundant code for create and update is not needed, repeat-actions has default value (False) in API side, so the proper way is simply removing the default value in CLI side. Change-Id: I39c28294db3e55141bb8a2024a6ddfdf8acf5e0d Closes-Bug: #1539092
* | Decouple ceilometerclient without aodh services runningliusheng2016-03-082-0/+14
|/ | | | | | | | | Currently, the ceilometerclient will be broken if aodh services not running, it will be worse if users don't want alarming service and they must start the aodh services. Change-Id: Idf7468f28cee001262b67b6e110357ffc971535a Closes-Bug: #1550095
* Merge "Trivial: remove `None` as a redundant argument to dict.get()"Jenkins2016-02-251-1/+1
|\
| * Trivial: remove `None` as a redundant argument to dict.get()Chaozhe.Chen2016-02-221-1/+1
| | | | | | | | | | | | | | `dict.get()` returns `None` by default, if a key wasn't found. Removing `None` as second argument to avoid redundancy. Change-Id: I898219110206e9c49348f9a36f07b5ba1766f0f1