Commit Graph

2651 Commits

Author SHA1 Message Date
Tony Breeds 057e46bf1e 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: I6f54f00b686a16e9b3ea96642c78842db12af9d3
2017-09-12 16:12:17 -06:00
OpenStack Proposal Bot 72db32b752 Updated from global requirements
Change-Id: I9f67742cb259ab22f7e36750e5008ac9d7cb87d4
2017-07-18 01:58:24 +00:00
ChangBo Guo(gcb) 40645e19a7 Update URLs in documents according to document migration
Change-Id: I9ca92fdcec388e02462332e04fe7c1bf8b5f64b8
2017-07-13 12:05:18 +08:00
OpenStack Proposal Bot bff488d435 Updated from global requirements
Change-Id: I7b4861c68d441fa0fd93dd4c4d80bafb53687034
2017-07-11 13:08:41 +00:00
Jenkins eea48a18d7 Merge "Fix process based executor task proxying-back events" 2017-07-11 10:48:25 +00:00
Joshua Harlow 84c7a7b2c7 Fix process based executor task proxying-back events
Let's dive into what the problem is here.

First a description of what happens to a task that
is to be executed in a external (but local) process
via the process executor mechanism.

When a task is about to be sent to execute in the
external (but local) process its first cloned, this
is mainly done so that its notification callbacks can
be altered in a safe manner (ie not altering the
original task object to do this) and that clone has
its notifier emptied out.

What replaces the clone's notifier callbacks though
is a new object (that has a __call__ method so it
looks like just another callback) that will send
messages to the parent process (the one that has
the engine in it) over a secure(ish) channel whenever
the local task triggers its notifier notify() method.

This allows for callbacks in the parent process to
get triggered because once the messages recieved the
original tasks notifier object has its notify() method
called (therefore those callbacks do not really know
the task they are getting messages from is executing out
of process).

The issue though is that if the ANY(*) event type is registered
due to how it works in the notifier is that if the child/cloned
notifier has the ANY event type registered and the cloned task
calls notify() with a specific event this will cause the ANY
callback (in the clone) to transmit a message *and* it will
cause the *specific* event callback to also transmit a message
back to the parent process.

On the engine process side it will get 2 messages and trigger
the callbacks 3 times (twice for the specific event callback
because how the local notifier has the ANY callback registered
and one more time when the local process also sends the same
event based on its registration of the ANY event in the child
process).

This is not what is expected (the message rcved on the engine
process should only trigger one callback to get triggered
if the engine process task has no ANY callback registered or two
engine process callbacks to get triggered if the engine process
task has the ANY callback registered).

Closes-Bug: #1537948

Change-Id: I271bf1f23ad73df6c177cf00fd902c4881ba44ae
2017-07-11 11:14:04 +08:00
Doug Hellmann 0c99c6d3c6 turn on warning-is-error in doc build
Change-Id: Id87a1b17c1986d0e30629fed13bdfbecef4a3603
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-07-08 19:11:17 -04:00
Doug Hellmann b0ca782396 switch from oslosphinx to openstackdocstheme
Change-Id: I7522d14d4e340f0882e41bed3528f90bbf74c2af
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-07-08 19:11:12 -04:00
Doug Hellmann 1229eb2e8e rearrange existing documentation into the new standard layout
Change-Id: Ic53baaa62771fda6de3b3dfe861909365103d1a9
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-07-08 14:18:58 -04:00
OpenStack Proposal Bot 306087839c Updated from global requirements
Change-Id: Id09ce74a048c3efa68242746f69d00cf7c0c3aa2
2017-06-27 12:24:17 +00:00
Jenkins f07ae69d65 Merge "Updated from global requirements" 2017-06-12 03:23:01 +00:00
Jenkins 1d18a9b683 Merge "Replace assertRaisesRegexp with assertRaisesRegex" 2017-06-12 02:59:01 +00:00
Jenkins 3068385273 Merge "Fix html_last_updated_fmt for Python3" 2017-06-12 02:57:10 +00:00
OpenStack Proposal Bot 114c404218 Updated from global requirements
Change-Id: Ie2a538b5007b68fdfadb8bd7e6185edaab51b46b
2017-06-10 13:39:08 +00:00
Vu Cong Tuan d565cf1a0b Fix html_last_updated_fmt for Python3
html_last_updated_fmt option is interpreted as a
byte string in python3, causing Sphinx build to break.
This patch makes it utf-8 string.

Changing Popen to .check_output because of 3 reasons:
1. check_output() will raise CalledProcessError if
the called process returns a non-zero return code.
2. For consistency with keystone [1] and cinder [2]
3. It makes the code look much better.

[1] https://review.openstack.org/#/c/457142/
[2] https://review.openstack.org/#/c/433081

Change-Id: I6e9c2009f224abc282acbf957d7e999c7f87e9eb
2017-06-06 09:54:12 +07:00
Vu Cong Tuan db61fad6b2 Replace assertRaisesRegexp with assertRaisesRegex
assertRaisesRegexp was renamed to assertRaisesRegex in Py3.2
For more details, please check:
https://docs.python.org/3/library/
unittest.html#unittest.TestCase.assertRaisesRegex

Change-Id: I89cce19e80b04074aab9f49a76c7652acace78b3
Closes-Bug: #1436957
2017-06-03 13:40:12 +07:00
OpenStack Proposal Bot 0e9cfc9473 Updated from global requirements
Change-Id: Idec10de780faa6ef1b917816c733a4069f89020f
2017-06-02 22:09:22 +00:00
Jenkins cf0ee0b0c7 Merge "do not allow redis job reclaim by same owner" 2017-05-31 05:48:00 +00:00
OpenStack Proposal Bot 4cc49cf217 Updated from global requirements
Change-Id: Ifad39a3cf765807bd3d6a006a5e9ce5ad0e5d1ce
2017-05-17 13:51:38 +00:00
Rick van de Loo 5f3c132523 do not allow redis job reclaim by same owner
Running a nonblocking conductor or two conductors on the same host will re-execute the same job multiple times with the current implementation of 'claim' for the redis jobboard backend. This is different from the ZooKeeper jobboard backend, there the same owner of a job is not allowed to reclaim the job again (https://github.com/openstack/taskflow/blob/master/taskflow/jobs/backends/impl_zookeeper.py#L554). If the same owner is allowed to reclaim the job again there can be no concurrent execution on the same owner because all jobs will be re-claimed and re-executed by the same owner every pass as long as it's on the jobboard.

To reproduce this behavior:

- Use the redis jobboard backend
- Create a flow with a task that sleeps 10 seconds in the execute method
- Post that flow as a job
- Run a nonblocking conductor

It will claim and execute the same job multiple times in a loop until the first worker is finished and consumes the job. After this change it will not re-execute the same job multiple times.

Change-Id: I4f6c364211500e510fc496f23b03ce056771417d
2017-05-13 16:55:50 +02:00
Jenkins 656ed3c847 Merge "Stop using oslotest.mockpatch" 2017-05-05 03:47:37 +00:00
Jenkins a29ebc444d Merge "Updated from global requirements" 2017-05-03 10:41:51 +00:00
Jenkins 09057b6bb3 Merge "python3.0 has deprecated LOG.warn" 2017-05-03 10:38:14 +00:00
ChangBo Guo(gcb) 365dff9e2b Fix py35 test failure
dict.keys() returns object dict_keys on Python 3, can't work well
with kombu recently, convert it to list before futhur processing.

Closes-Bug: #1687855
Change-Id: I9dcfadd8f16eccce06f4cde3b2a6669f28a3f8bc
2017-05-03 12:55:28 +08:00
ChangBo Guo(gcb) faa75c475e Stop using oslotest.mockpatch
This module has been deprecated in favor of native fixtures.

Change-Id: I40ed7360091fea51a257807035e923c85602949f
2017-04-28 18:58:58 +08:00
OpenStack Proposal Bot 79349cf2f2 Updated from global requirements
Change-Id: I5d93bd4d2185c8f464f04772fa35618f5775a3d9
2017-04-12 04:23:36 +00:00
xhzhf 4e0125e4e5 python3.0 has deprecated LOG.warn
python3.0 has deprecated LOG.warn
https://docs.python.org/3/library/logging.html#logging.warning
Closes-Bug: #1650843

Change-Id: Ib8473cbdb84547f385e619fe08ed723b1ee7bcdb
2017-03-07 09:29:26 +00:00
OpenStack Proposal Bot 8017d7db50 Updated from global requirements
Change-Id: I079d77ea0e59a7abe611b923afadfcefa3d972ae
2017-03-02 11:56:44 +00:00
OpenStack Proposal Bot 96228d8616 Updated from global requirements
Change-Id: I133cd4cbcc518a903b061768b7fb9a91a6fe44e6
2017-02-11 00:39:40 +00:00
Jenkins 643495f43a Merge "Update reno for stable/ocata" 2017-02-10 20:11:17 +00:00
Jenkins 64e878ea9c Merge "Use https instead of http for git.openstack.org" 2017-02-10 20:11:07 +00:00
Jenkins b7e2fcd7e2 Merge "Updated from global requirements" 2017-02-10 20:11:01 +00:00
OpenStack Proposal Bot 9b424a7168 Updated from global requirements
Change-Id: I8bd162d9482600d29d15ab6f54526b3324a10e32
2017-02-10 06:01:07 +00:00
Andreas Jaeger fd3503e110 Prepare for using standard python tests
Add simple script to setup mysql and postgresql databases, this script
can be run by users during testing and will be run by CI systems for
specific setup before running unit tests. This is exactly what is
currently done by OpenStack CI in project-config.

This allows to change in project-config the python-db jobs to
python-jobs since python-jobs will call this script initially.

See also
http://lists.openstack.org/pipermail/openstack-dev/2016-November/107784.html

Needed-By: I1c6c23b39a93991d2dcb5e753fd851d244326581
Change-Id: Ibbe9910b0bae398542bf5fb84f2c7151bc898770
2017-02-08 20:51:48 +01:00
gecong1973 f6b68865e1 Use https instead of http for git.openstack.org
TrivialFix

Change-Id: I7c9f2dc507641a03717333a5e0c0479f96379326
2017-02-07 09:19:04 +08:00
OpenStack Proposal Bot f836d21031 Updated from global requirements
Change-Id: Ie24dbe03673525b8a7216b47a4f4222fd5df330b
2017-01-21 15:04:26 +00:00
OpenStack Release Bot 5dfc3d10a3 Update reno for stable/ocata
Change-Id: I5771b84b59cbf2e2d65f7f8b4d64036fde0a89b9
2017-01-20 19:16:25 +00:00
Joshua Harlow 22f75755b7 Protect storage better against external concurrent access
Lock down the various state machine action handling
functions so that they are ensured correct (and consistent)
access to the storage layer when they are modifiying and/or
reading it.

Change-Id: Ie893a44aa963ab515f19e77f9904f49c843cb4e5
2017-01-09 12:51:44 +00:00
Eric Harney b3b659f38b Remove dep on monotonic
This has been moved into the futurist lib
and is no longer imported by taskflow.

Change-Id: I1c1c6817d5bd472ebcc958338332f140cc069601
2017-01-04 09:44:46 -05:00
Joshua Harlow 774d598134 Rename engine analyzer to be named selector
This moves out the engine next to run (or revert)
selection process to a single class that just does
this and moves out the common functions the analyzer
class provided to the runtime object (which all
components can access).

This makes it easier to adjust the selection algorithm
in different ways.

Change-Id: I091c69297a7bff60729791d3ca6c3fae14d6eea5
2017-01-03 06:37:57 +00:00
howardlee dc15edc842 Update author and author-email
Change author to OpenStack and author-email to
openstack-dev@lists.openstack.org

Change-Id: Ie8812ceac8d79a3c1697e2ecf5e4fd4d1378477e
2016-12-23 18:58:08 +00:00
OpenStack Proposal Bot f7505efd06 Updated from global requirements
Change-Id: Ie656000c4fd281565944a8d21cc766e98e7b53d8
2016-12-23 03:38:01 +00:00
OpenStack Proposal Bot 00899711f8 Updated from global requirements
Change-Id: I0b8a6c4debf281e8d2a4973d60d459ce568d63c0
2016-12-22 19:11:10 +00:00
Tony Breeds 09ded16b22 Add Constraints support
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.

This change adds constraints support by also adding a helper script to
edit the constraints to remove taskflow.

Change-Id: I89a14733295748fff2a30f038084d75596204083
2016-12-21 13:45:53 +11:00
Jenkins 3016c2499c Merge "Show team and repo badges on README" 2016-12-01 05:11:39 +00:00
Flavio Percoco e0dcbdb84f Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email thread:

http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html

To see an example of how this would look like check:

b'https://gist.github.com/158dd7afbc5eefb104a0b23dbe32879e\n'

Change-Id: I4abd06028e35d6041c3636fd2bb924c7ef69ad3d
2016-11-25 13:20:37 +01:00
qinchunhua 5a65db9651 Replaces uuid.uuid4 with uuidutils.generate_uuid()
Change-Id: I25e6e56a270d1d99ee2ddac52abfc9f5678f0a70
Closes-Bug: #1082248
2016-11-22 08:39:02 +00:00
Jenkins d18a2f1830 Merge "Remove vim header from source files" 2016-11-18 06:04:39 +00:00
Jenkins f79fef1645 Merge "Use assertIs(Not)None to check for None" 2016-11-18 06:00:45 +00:00
OpenStack Proposal Bot 33ffee30c1 Updated from global requirements
Change-Id: I1db1af35a9b55e12bc438af65d4ca36d73fc3963
2016-11-15 19:59:35 +00:00