Commit Graph

694 Commits

Author SHA1 Message Date
Tony Breeds f35b9656f0 Retire Packaging Deb project repos
This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).

Change-Id: I15d73bb42d7cd76c073019db73510370eea14ec2
2017-09-12 15:56:30 -06:00
Hangdong Zhang a5f1795869 Update and optimize documentation links
1. Update URLs according to document migration
2. Update the dead and outdated links
3. Optimize (e.g. http -> https)

Change-Id: Ic847deff2b8344a35a31b76edc63296b01bde64c
2017-07-18 17:44:29 +08:00
Martin Kulhavy 3d4ec1b5fe Fix invalid url for event_types
Additionally fix the object name in the string representation.

Closes-Bug: 1704138
Change-Id: I2bb0963600cfc93d782f10480d5245d92c1c0f1d
Signed-off-by: Martin Kulhavy <martin.kulhavy@nokia.com>
2017-07-13 18:36:25 +03:00
Jenkins 3b4e35abad Merge "Deprecate ceilometerclient" 2017-06-09 17:39:30 +00:00
Julien Danjou bb017e5f8f Deprecate ceilometerclient
Change-Id: I9259b2e44ac1ba815a6eec5019f0460065996eac
2017-05-29 13:24:53 +02:00
Jenkins 54e8544bc2 Merge "Remove log translations" 2017-05-23 19:07:39 +00:00
Jenkins cb34c240b8 Merge "[bugfix]with keystone v3 Could not find domain: default." 2017-05-10 14:48:19 +00:00
zhangjianfeng 499be2f758 [bugfix]with keystone v3 Could not find domain: default.
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
2017-05-09 14:02:49 +00:00
ForestLee 3c62ce27f6 delete bash_completion in subcommand
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
2017-05-01 11:07:48 +08:00
luqitao 1f5e51f732 Remove log translations
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
2017-03-21 02:28:06 -04:00
Rui Chen 6fcc675245 Remove support for py34
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from Ubuntu Trusty to Xenial, where only python3.5 is
available. There is no need to continue to keep these settings.

Change-Id: I0cfc7ac5bddad922349a38cd0b2bfea0595a97a8
2017-02-09 10:54:49 +08:00
Gábor Antal 2d0529347d Handle log message interpolation by the logger
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
2017-02-07 14:46:58 +01:00
Jeremy Liu 4bd78939bc Adjust parameters order of tenant_xxx and project_xxx
We prefer project_xxx to tenant_xxx when authenticating.

Change-Id: I438854e6c9a9ea397ae4e7f21919a82c872f9693
2017-02-04 20:49:45 +08:00
Jenkins fb17f98318 Merge "shell: do not force domain to be present" 2017-01-26 18:02:58 +00:00
OpenStack Release Bot f59e283fbc Update reno for stable/ocata
Change-Id: If1bed5c3691b772f72e4d7501b51bd8118aa6952
2017-01-25 19:28:09 +00:00
Julien Danjou 536ebe2054 shell: do not force domain to be present
If OS_PROJECT_NAME and Keystone v2 is used there's no need to set a domain.

Change-Id: I9555b571224262b61255f70a30f540a32b8ae2fc
2017-01-25 19:08:36 +01:00
Jenkins 658d7e27ff Merge "cleanup aodh redirect" 2017-01-23 11:02:15 +00:00
Jenkins e60757c258 Merge "panko redirect" 2017-01-23 10:56:46 +00:00
Jenkins 909032dac3 Merge "cleanup aodh mocks" 2017-01-23 10:56:40 +00:00
Jenkins 089cb912a2 Merge "Adding default project and domain if nothing is specified" 2017-01-18 22:53:18 +00:00
Jeremy Liu fd218e9229 Enable coverage report in console output
Change-Id: I70cf768459360166bd0a76a74eff57bc0b7acda9
2017-01-13 10:53:22 +08:00
gord chung c93e68428d cleanup aodh redirect
Change-Id: I80684f79da471e22dbc1dacdeafa43c6cfa334a8
2017-01-11 23:14:10 +00:00
gord chung 72ea5ef824 panko redirect
same as aodh but with panko_endpoint

Change-Id: Iae7d60e1cf139b79e74caf81ed7bdbd0bf2bc473
2017-01-11 23:11:36 +00:00
gord chung 45f4f9584b cleanup aodh mocks
don't pass in arg we don't use

Change-Id: I14b9cd3178f929aa878f5caff97a6ba4318a42a0
2017-01-11 23:01:47 +00:00
Tony Breeds 0457179dc2 [doc] Note lack of constraints is a choice
Change-Id: I29f08edff6459e1acb7e33634e3d8426f09c8c41
2016-12-21 09:48:04 +11:00
Prateek Khushalani 7256c4b5bf Adding default project and domain if nothing is specified
Closes-Bug: 1543502

Change-Id: Iea57a6ed757bfa28eb09324378b5376667b0c120
2016-12-15 10:35:50 +00:00
Jenkins 158c97f75a Merge "Add __ne__ built-in function" 2016-12-08 16:31:24 +00:00
Jenkins bdd91689c8 Merge "Don't include openstack/common in flake8 exclude list" 2016-12-07 15:28:53 +00:00
gecong1973 033a251aaa Don't include openstack/common in flake8 exclude list
There is no this directory openstack/common which was used
to keep codes from oslo-incubator, we have retired oslo-incubator.
Removing openstack/commonfrom all OpenStack code in favor of the
Oslo libraries is a project wide goal for the Ocata release. So
don't use this directory any more. We should drop it for improving
searching efficiency.

Change-Id: Ia154f7557575351173b9fe646e48bc5210ab698f
2016-11-25 12:32:53 +08:00
gecong1973 d65d3312e6 Add __ne__ built-in function
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
2016-11-23 15:10:56 +08:00
Julien Danjou bd358b040d Bump hacking to 0.12
Change-Id: I0ca6c005df445c22fb171e816b1de6da0f4126c9
2016-11-07 22:43:35 +01:00
Steve Martinelli c1141ed5be move old oslo-incubator code out of openstack/common
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
2016-11-04 19:18:45 -05:00
Luong Anh Tuan dc7e779891 Make method import_versioned_module work
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
2016-11-03 10:08:57 +00:00
Ekaterina Khripunova 5328c3168a Fixes SSLError during cclient.meters.list() by https
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
2016-10-17 15:16:53 +03:00
Jenkins 79d6e3c5ac Merge "Enable release notes translation" 2016-10-11 15:07:39 +00:00
Mehdi Abaakouk b8a78396b2 Set code and details on HTTPException
Even the HTTPException is unknown for ceilometer we should set the code
and print it with the details.

Closes-bug: #1626404
Change-Id: Ib244d8822f7a1ebc1b8ec1b95d13b20bbb69ece0
2016-10-07 14:19:23 +02:00
Andreas Jaeger b0f291dd2a Enable release notes translation
Releasenote translation publishing is being prepared. 'locale_dirs'
needs to be defined in conf.py to generate translated version of the
release notes.

Note that this repository might not get translated release notes - or
no translations at all - but we add the entry here nevertheless to
prepare for it.

Change-Id: I7c2902f64988c8b39ae8f13fec86622dcc2fb955
2016-10-06 20:49:02 +02:00
Anh Tran 6ed98bd6d6 Using assertIsNone() instead of assertEqual(None)
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
2016-09-27 09:14:00 +07:00
Hanxi Liu 1c53f7d098 Replace assertEqual(None, ...) with assertIsNone(...)
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
2016-09-20 00:59:53 +08:00
Jenkins c3ff4a9a43 Merge "Update reno for stable/newton" 2016-09-13 14:40:22 +00:00
Julien Danjou 571932525b Deprecate alarms commands
Users should switch to aodhclient

Change-Id: Icb02052ef7a6c61e32747a94f2559bc0e786bda1
2016-09-08 16:47:59 +02:00
Doug Hellmann 050267fa05 Update reno for stable/newton
In order to support automatically updating the release notes when we
create stable branches, we want the pages to be in a standard order.
This patch updates the order to be reverse chronological, so the most
recent notes appear at the top.

Change-Id: I9512bb44cdb638d1e46275553ea047aa4e36cbeb
2016-09-07 17:13:38 -04:00
Andrey Kurilin 1b1917ab9b Fix from_response method to process response from requests
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
2016-09-07 12:45:25 +03:00
Jenkins 7c6cc05ff0 Merge "Correct the parameters's position of assertEqual" 2016-08-08 15:20:45 +00:00
Jenkins b064a07fa0 Merge "Remove keystoneclient dependency" 2016-08-08 11:11:16 +00:00
zhangguoqing 45d475dfe2 [trivial] add a blank character
In ceilometer help event-list, the line
"integer, floator datetime." should be "integer, float or datetime."

Change-Id: Ib8976b5e580e2a95a4e04d7d95c815011127749c
2016-08-04 03:17:33 +00:00
xiaozhuangqing 481cd7d33b Correct the parameters's position of assertEqual
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
2016-07-29 11:08:36 +08:00
Jenkins 3b35aea69e Merge "Remove discover from test-requirements" 2016-07-28 20:15:34 +00:00
Julien Danjou 6ca1f270fd Remove keystoneclient dependency
Change-Id: I3589eca8fd6a581e57524cffa8a8f1278358f38c
2016-07-28 16:53:43 +02:00
Julien Danjou f0faf477af Add support for Python 3.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
2016-07-27 15:27:30 +02:00