Commit Graph

4605 Commits

Author SHA1 Message Date
OpenDev Sysadmins c770d7c662 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:29:43 +00:00
Jenkins 38ba0511e7 Merge "Remove deprecated oslo.config messages." into stable/ocata 2017-07-12 19:00:58 +00:00
Mehdi Abaakouk 6aee6e1700 gnocchi: fix alarms for unpriviledged user
When an unprivileged user want to access to Gnocchi resources
created by Ceilometer, that doesn't work because the filter scope
the Gnocchi query to resource owner to the user. To fix we introduce
a new configuration option "gnocchi_external_project_owner" set by
default to "service". The new filter now allow two kind of Gnocchi
resources:
* owned by the user project
* owned by "gnocchi_external_project_owner" and the orignal project_id
  of the resource is the user project.

Closes-bug: #1703824
Change-Id: I0c86736a902a21520da18550aea0a7d1549bb24e
(cherry picked from commit b0bdd43209)
2017-07-12 14:23:21 +02:00
gord chung 8eb5219087 cleanup aodh config instructions in install guide
aodh only supports sql in ocata

Change-Id: I66d8da9d099c9e5ba17aa29bc02c3043cdd2f5b5
(cherry picked from commit 132de83ed3)
2017-06-26 22:28:05 +00:00
gord chung 0ffb1da9dd simplify crud notification test
test_alarms_sends_notification will hang forever if it fails.
we don't really need to test that its notification is received by
other, just that it sends a notification. drop the test so it
verifies only that.

also, uncap pbr to resolve requirements conflict

Change-Id: I99f9996e5a3dd1e652d4142c7b596ae87da5e698
(cherry picked from commit b231f83f38)
2017-06-26 18:39:56 +00:00
Mehdi Abaakouk 27be7363da Remove deprecated oslo.config messages.
DeprecationWarning: Using the 'enforce_type' argument is deprecated in
version '4.0' and will be removed in version '5.0': The argument
enforce_type has changed its default value to True and then will be
removed completely.

This option have never been useful, and now the default is already True.
So we don't need to raise requirement for this.

Change-Id: I042a5d98748e2b2c6ee8307340aa6056bf0a1dfd
(cherry picked from commit d8e33f7880)
2017-05-01 13:12:02 +00:00
Jenkins 5c6b46ecc8 Merge "[install-guide] Minor edits" into stable/ocata 2017-04-13 15:09:03 +00:00
gord chung 8ca7f267e1 cap ocata libs from pbr
pike libs don't work with ocata because they require pbr>=2.0.0 and
ocata is the opposite. upper cap the libs that are conflicting.

Change-Id: I8eabc0649114f18f9f93fa342999ebd645107dc6
2017-04-11 11:23:15 -04:00
Petr Kovar d72a3bc833 [install-guide] Minor edits
* Fix markup
* Add more links
* Don't include an unfinished page

Change-Id: I901f611349feecf56eb18dea425ee655549eeb43
(cherry picked from commit 62b819152b)
2017-03-27 18:53:29 +02:00
Pradeep Kilambi 02b8be4377 Fix the migration to use alarm_history
there is no alarm_change table, so this fails during
migration when using mysql/

Change-Id: Ia0c63681fd8b5bc692d0a52ab587a6d3e430a844
(cherry picked from commit 23552b1c07)
2017-02-23 16:12:46 +00:00
OpenStack Release Bot e062a0a996 Update .gitreview for stable/ocata
Change-Id: I45e310f03efc188083d659e3a2733d5c9b97ee97
2017-02-02 17:46:59 +00:00
Julien Danjou 2ad5fb7864 Stop shipping Apache2 configuration file
Just include an example in the doc is enough.

Change-Id: I78522a7b86d26f287444ce0cbcc8584caf290ebf
2017-01-31 16:53:12 +01:00
ghanshyam 4109e31304 Switch to decorators.idempotent_id
test.idempotent_id is being kept temporary to migrate
to new lib interface. Now idempotent_id is available as Tempest stable
interface decorators and all plugins tests using the old decorator
should be switched to new interface.

In future, Once all plugins are switched to new decorator Tempest
will remove the test.idempotent_id

Change-Id: I20ef363a008b1c01652015cc2ada69777b8859d9
Related-Bug: 1616913
2017-01-27 06:12:45 +00:00
Jenkins 014319d662 Merge "enable cachetools for gnocchi alarms" 2017-01-23 10:10:13 +00:00
Dung Ha a4c868b687 Fix all current typo bugs on Aodh project.
Change-Id: I4e88a6a6f37630b2d49e10bdd50778de336d7bbf
2017-01-23 19:11:27 +07:00
Pradeep Kilambi a80e26be13 Add sem-ver flag so pbr generates correct version
Without this Newton and Ocata have the same version causing
packaging issues.

Change-Id: I6e3a544afb93f33a138d89b774320f066fa61377
Sem-Ver: feature
2017-01-20 16:38:36 -05:00
Jenkins ff90b0bf99 Merge "Move policy.json out of etc" 2017-01-20 17:36:26 +00:00
Jenkins e839b57abc Merge "Move api-paste file to common code location" 2017-01-20 17:36:20 +00:00
Jenkins 04581a3165 Merge "install-guide: remove useless step" 2017-01-20 17:36:15 +00:00
Jenkins a1e125a996 Merge "api: add auth_mode option" 2017-01-20 10:30:19 +00:00
Julien Danjou b0c91f9267 Move policy.json out of etc
Change-Id: I94c5b0f21e28eeaf8d87d33fa59e1e3a26c32a51
2017-01-19 14:59:35 +01:00
Julien Danjou 7b0435a706 Move api-paste file to common code location
Change-Id: I33c8055245de5821fd8a605d4ea6bf388a01637e
2017-01-17 20:01:31 +01:00
Julien Danjou 30f4bfa11b install-guide: remove useless step
This is already in api-paste.

Change-Id: Ib0751afe3c16a9bea81306cc988b2beff8c1060d
2017-01-17 19:57:16 +01:00
Julien Danjou 260bd26d79 api: add auth_mode option
Change-Id: Ia1424ccd45c40c5187e1adf83d9e5e17d660a4e4
2017-01-17 19:50:43 +01:00
gord chung bebe5204fc enable cachetools for gnocchi alarms
- set ttl to an hour since capabilities rarely change (if ever?)
- set cachetools to 1.1.6 since it has some ttl expiration
  improvements and it's a year old so why not.
- i give up trying to disable cache

Change-Id: I1b83ffd32cfd631fc340b068e71f61789388ee73
2017-01-17 00:25:01 +00:00
gord chung 600d6ee0a9 modernise gabbi usage
as our borderline millenial hero progressed through the land of dried
bread, he found himself at the gates of hell. the flames of unreadable
wsme code overwhelmed him. as a lazy protagonist, he decided to ignore
wsme and just deal with cleaning up gabbi. this work came a bit easier
as it was quite similar to his work in panko and thus, he took gabbi
v1.7, and drop some of the redundancy.

Change-Id: I19dfb39ea8b9a4fc4063e32ce19b62d8ce74f939
2017-01-16 21:02:16 +00:00
Jenkins 87ec850a29 Merge "Enable healthcheck app to check API status" 2017-01-16 17:54:41 +00:00
Alexey Weyl 3c8e029116 property refactoring
Change-Id: Ie5680f08e7715c0f2d0b02fa67b58cf3234f79fc
2017-01-10 14:47:29 +00:00
Yarko Tymciurak 57e79667d9 Simple pip install fails for python3
uses: new python preferred method of calling the pip module directly
attempts: to clean up (by invitation) an attempt at this by dims
When USE_PYTHON3 is specified, run the pip module for aodh installation
from the correct python version, as shown in the documentation since
python3.4 (it works with all current versions of python2 and python3).
https://docs.python.org/3.4/installing/#basic-usage

Change-Id: I02090077781bc335a0df4dc54ff37edece281210
2017-01-06 16:01:38 -06:00
Jenkins 50982ad11e Merge "Simple pip install fails under python3" 2017-01-05 19:30:22 +00:00
Davanum Srinivas ae1b17203f Simple pip install fails under python3
Existing code ends up installing aodh in py2.7 environment even
when USE_PYTHON3 is specified. Since Aodh team does not want
to pull in global requirements, we cannot use setup_develop like
other projects. So let's find the pip script and run it using
the correct python3 version.

Change-Id: I538e2f430954385033c7a1869a4ccc419e9e4108
2017-01-05 13:00:24 -05:00
Mehdi Abaakouk 0ac9fcaf62 composite: fix evaluation of trending state alarms
When threshold evaluator returns a trending state instead of a state,
the composite evaluator ignores it and passes the alarm to insufficient
data instead of using it.

This change fixes that.

Closes-bug: #1645344

Change-Id: I4703936e0377a466e09c97b5485191b17442b57d
2017-01-05 07:17:46 +01:00
Jenkins 5363ff8500 Merge "Don't create multiple trust IDs per alarm" 2017-01-04 15:40:34 +00:00
Jenkins a68e872174 Merge "Replaces uuid.uuid4 with uuidutils.generate_uuid()" 2017-01-04 09:37:22 +00:00
Kevin_Zheng 5df34a8263 Enable coverage report in console output
Enable coverage report in console output

Change-Id: I9f61f7547ceea0ab6472c58e83ad8ea29e1429e1
2016-12-30 16:53:14 +08:00
liusheng dc681f4c13 Fix expecting content-type headers
It does not contain the charset anymore, for an unknown reason. It's not a
big deal though, so just fix it.

Change-Id: I0583a8cedfecb9353d23978269f8a6f1fee171a4
2016-12-24 11:00:26 +08:00
Jenkins 76ea34d92e Merge "[doc] Note lack of constraints is a choice" 2016-12-21 17:16:07 +00:00
Zane Bitter 2d15753924 Don't create multiple trust IDs per alarm
Previously, if an alarm had multiple trust+ actions then we would create
a new trust ID for each one. We would also create new trusts for them
all each time the alarm was updated (even for actions that hadn't
changed).

With this change, we will only use a single trust ID for each alarm that
contains one or more trust+ actions.

Change-Id: Ib556ed3248221d6efb36f2117991c47e665ce336
Partial-Bug: #1575113
2016-12-20 22:01:26 -05:00
Tony Breeds 30ee8640ce [doc] Note lack of constraints is a choice
Change-Id: I7af174a6b90a710ae7f6e60ab16fbb3768a2d01e
2016-12-21 09:42:06 +11:00
Julien Danjou e86f216aa2 Enable healthcheck app to check API status
Change-Id: Ide2aa8613fe4767c9e93e1421dbf7ba7439bb3c7
2016-12-20 17:04:30 +01:00
Julien Danjou aa9f7df75d Remove legacy policy file test
This test is old and not testing much as this is just a custom policy
file.

Change-Id: Ibebe6d4d8b6a27fab3b2513568cb191c815311b0
2016-12-20 11:40:52 +01:00
Jenkins 0bfcb468cf Merge "Add missing webtest dependency in test" 2016-12-20 03:54:36 +00:00
Jenkins dc3794b456 Merge "Remove notes about MongoDB" 2016-12-19 20:29:51 +00:00
zhangguoqing f73b6df6fb Replaces uuid.uuid4 with uuidutils.generate_uuid()
Openstack common has a wrapper for generating uuids. We should
use that function when generating uuids for consistency.

Change-Id: I331fb62e6f7278cdac3852b84fb161732aaad2a3
Closes-Bug: #1082248
2016-12-16 05:14:43 +00:00
Julien Danjou 4b66e5a262 Add missing webtest dependency in test
Change-Id: I117dda5dd5858adad8824977b35a788869e796e0
2016-12-15 17:38:45 +01:00
Julien Danjou 0057acea41 Remove API workers option
This is not used anymore.

Change-Id: I78a8205f4ce6d59a4714d17c63ff43c0bafdc9fa
2016-12-15 17:27:27 +01:00
Julien Danjou ff96089f22 Remove notes about MongoDB
There's no MongoDB anymore anywhere.

Change-Id: Id6f912b48d6c36478ef8db9a08bd3502ed94eb2f
2016-12-15 15:07:47 +01:00
Jenkins 6e137a0e7d Merge "Replace retrying with tenacity" 2016-12-15 11:08:40 +00:00
Boden R 7587ab9bf3 Replace retrying with tenacity
We are replacing all usages of the 'retrying' package with
'tenacity' as the author of retrying is not actively maintaining
the project. Tenacity is a fork of retrying, but has improved the
interface and extensibility (see [1] for more details). Our end
goal here is removing the retrying package from our requirements.

Tenacity provides the same functionality as retrying, but has the
following major differences to account for:
- Tenacity uses seconds rather than ms as retrying did.
- Tenacity has different kwargs for the decorator and
Retrying class itself.
- Tenacity has a different approach for retrying args by
using classes for its stop/wait/retry kwargs.
- By default tenacity raises a RetryError if a retried callable
times out; retrying raises the last exception from the callable.
Tenacity provides backwards compatibility here by offering
the 'reraise' kwarg.
- Tenacity defines 'time.sleep' as a default value for a kwarg.
That said consumers who need to mock patch time.sleep
need to account for this via mocking of time.sleep before
tenacity is imported.
- For retries that check a result, tenacity will raise if the retried
function raises, whereas retrying retried on all exceptions.

This patch updates all usages of retrying with tenacity.
Unit tests will be added where applicable.

Note: This change is not newton critical so projects are welcome
to hold off on committing until post-newton. Ideally this change
will merge by the first part of Ocata so dependant functionality
can land and have time to solidify for Ocata.

[1] https://github.com/jd/tenacity

Co-Authored-By: gordon chung <gord@live.ca>
Closes-Bug: #1635402
Change-Id: Ife452b18709ff34ec48a39bbe5407d69a5b2e3c2
2016-12-14 17:15:58 +00:00
Zane Bitter ef08bc2e6a Add trust+zaqar:// action
Allow Zaqar messages to be posted to a queue under the user's own tenant
by using a Keystone trust.

Change-Id: Ia9e200ecef13ba46479a155fee064d6dded08917
2016-12-13 21:51:06 -05:00