3795 Commits

Author SHA1 Message Date
Rafael Folco
2f4db0a61e Replace tripleo-scenario003-multinode with scenario003-standalone
Change-Id: I393855408d13eacc83e63ac98b1daced7177b0fc
Story: https://tree.taiga.io/project/tripleo-ci-board/us/533
2019-01-10 10:34:28 +00:00
Zuul
fdd50f0e25 Merge "Omit the twice occured words in index.rst" 2019-01-09 04:52:21 +00:00
Zuul
fc479303fa Merge "Amend the spelling error of a word" 2019-01-07 12:35:57 +00:00
MaoyangLiu
efca6f2e95 fix typo mistakes
Change-Id: I274bb4b2e6ac97c6ed6d85367f96b72f3ecd06c5
2019-01-07 09:22:56 +00:00
chengebj5238
7301d8cbcd Amend the spelling error of a word
Change-Id: I940b0bea7350735bcf78045058fc23568ba2e29a
2019-01-07 09:22:02 +00:00
yfzhao
98589e12c9 Update mailinglist from dev to discuss
openstack-dev was decomissioned this night in https://review.openstack.org/621258
Update openstack-dev to openstack-discuss

Change-Id: I803a5acabe8ccdf18721707f5637d759d9b3d5b6
Closes-Bug: #1808899
2019-01-04 14:59:24 +00:00
guotao.bj
278fc3319a Remove those copy words occured twice times in wf_lang_v2.rst
Change-Id: I5e8e0fca235e34b0663c4557c9e3405abfcd5e36
2019-01-04 11:50:58 +00:00
akhiljain23
444541177e Gate fix for failing at openstack-tox-docs
Zuul has been failing lately because of version conflict in
requirement for dogpile.cache package. For example in logs[1]
This PS adds requirement to fix the gate.

[1] http://logs.openstack.org/75/625775/1/check/openstack-tox-docs/d9591b7/job-output.txt.gz#_2018-12-25_06_04_13_576175

Change-Id: I9094d0e56263cf4c9cca5fc5b845606110a110a3
2018-12-27 08:25:14 +05:30
Zuul
0eb1611327 Merge "[Event-engine] Allow event_engine to work in HA" 2018-12-09 11:31:19 +00:00
Zuul
d9e9391b4e Merge "Eliminating datetime.now()" 2018-12-04 21:03:09 +00:00
Renat Akhmerov
0fb96bbd2b Add loging for sending an action to executor
Closes-Bug: #1805579
Change-Id: I4dc2b1e059d66d16725417ea5aa27b978e2163f0
2018-11-28 14:14:16 +07:00
Zuul
c4ccb70feb Merge "Clarify REST field valiation error" 2018-11-27 13:59:49 +00:00
Zuul
acd3beacc1 Merge "Remove tripleo newton and ocata jobs" 2018-11-27 11:22:28 +00:00
Andras Kovi
99be4227cf Clarify REST field valiation error
Change the error message to better articulate the error.

Change-Id: Ie2203e9ad120ff1f603ac9f8fbb9632484faa1a6
2018-11-27 09:51:01 +01:00
Zuul
8c3d439f65 Merge "Add Python 3.6 classifier to setup.cfg" 2018-11-27 08:27:01 +00:00
Zuul
b4c0dd3842 Merge "Add missing ws separator between words" 2018-11-27 08:27:00 +00:00
Rafael Folco
12a2fe8795 Remove tripleo newton and ocata jobs
Non-containerized multinode scenario jobs are no longer supported
and should be removed from zuul config.

Change-Id: I9abc7c9db1bd216dcd61925061e8bbc8c7e00b85
2018-11-27 05:49:31 +00:00
Renat Akhmerov
3153f1ca58 Set admin security context in the action execution checker thread
Change-Id: I4c7abff04b8797618294d9e13fbec4b5876bcdb6
Closes-Bug: #1805080
2018-11-26 14:09:59 +00:00
Renat Akhmerov
09ad2eebe4 Fix the tests for workflow "started_at" and "finished_at" times
* There was a race condition in the test that expected different times
  for two workflow runs (the second one is a rerun) although there
  was a chance that they could be the same. A delay between two runs
  was added to fix that.
* Delays of some workflow tasks in the tests were too long. No need
  to do. It only increases test execution times w/o adding any real
  value.
* Workflow definitions were moved into the tests where they're used.
  It improves readability.
* Fixed style (blank lines, naming, etc.)

Change-Id: Id61bc612014fde600366b1230ff073930a7970ce
2018-11-26 15:12:26 +07:00
Bob Haddleton
e0522a33db Add Python 3.6 classifier to setup.cfg
Change-Id: I2bc6b4832eb1313c36aac8516a3dffcdb7a4b7c8
2018-11-22 06:33:24 +00:00
Kupai József
38cc50bc1e Eliminating datetime.now()
Using utc everywhere to eliminite timezone difference related lurky issues.

Change-Id: If90f1404d5a3c26dc2608ba3977199d69879fab7
2018-11-21 10:51:44 +01:00
zhufl
f9b355f6be Add missing ws separator between words
This is to add missing ws separator between words.

Change-Id: I7cc4ad35395857f36ebc36dfeec2d66b1bcd064e
2018-11-21 11:23:37 +08:00
Zuul
70d2beac39 Merge "Add started_at and finished_at to task execution." 2018-11-19 15:01:18 +00:00
Zuul
916393eca8 Merge "Fix error workbook example" 2018-11-19 08:50:48 +00:00
Oleg Ovcharuk
ea7fa0e4a6 Add started_at and finished_at to task execution.
Sometimes it is very important to know exact time of task execution, but using fields
created_at and updated_at is incorrect, because in this case duration will consist
of not only Running time.
That new fields solve this problem.

Change-Id: I15be0648a0346f5b3dc9ef4a1b330a6c0e818385
Implements: blueprint mistral-add-started-finished-at
Signed-off-by: Oleg Ovcharuk <vgvoleg@gmail.com>
2018-11-19 11:25:06 +03:00
Renat Akhmerov
c9e08a8839 Fix "join" when the last indirect inbound task failed
* See bug description for the example that didn't work. It was
  caused by a simple mistake in a python expression of type
  "my_set = my_set or set()" that didn't work as expected, i.e.
  it created a new set even if my_set is already an empty set.
  So, the proper expression that's needed is
  "my_set = set() if my_set is None else my_set"

Change-Id: I2a787921449fecf3301013a770ffe712e9606baf
Closes-Bug: #1803677
2018-11-16 15:35:18 +07:00
Zuul
a0c8da92dd Merge "Fix race condition in refreshing "join" task state" 2018-11-15 20:30:33 +00:00
Renat Akhmerov
90ddf442ee Clone cached action definitions
* Once in a while we get DetachedInstanceError for action definitions
  and it happens when they are fetched from cache. We must always
  clone persistent objects before caching them.

Change-Id: I1d0cffea6775eb258dcefc0dbb8a6ee18effe597
Closes-Bug: #1803528
2018-11-15 18:39:21 +07:00
Renat Akhmerov
05ce6f893d Fix race condition in refreshing "join" task state
* Previously we used periodic jobs to refresh state of "join" tasks
  and there was a guarantee that only one such job could run at a
  time, so there wasn't a need in using locking. Now we allow more
  than one such jobs run in parallel processes (and threads) so
  we have to lock task execution and then check task state again
  and update it, if needed.

Change-Id: Icaad486d9c3f830db0314dedb44664940cca0014
Closes-Bug: #1803483
2018-11-15 11:32:50 +07:00
Zuul
0d85973f52 Merge "Increment versioning with pbr instruction" 2018-11-13 10:48:44 +00:00
Zuul
8059723309 Merge "Update min tox version to 2.0" 2018-11-13 10:05:15 +00:00
Zuul
2c9a0e79fa Merge "Remove setup.py check from pep8 job" 2018-11-13 10:05:15 +00:00
guotao.bj
0744042d98 Omit the twice occured words in index.rst
Change-Id: I6ed04a81074e8a38424506d8d3d2b8e7573268e7
2018-11-13 17:21:25 +08:00
Zuul
4b83cef3af Merge "Divide yaml input to save it into definitions separately." 2018-11-12 10:45:05 +00:00
Sean McGinnis
a82c4918a3 Remove setup.py check from pep8 job
Using "python setup.py check -r -s" method of checking the package has
been deprecated with the new recommendation to build the sdist and
wheel, then running "twine check" against the output.

Luckily, there is already a job that covers this that only runs when the
README, setup.py, or setup.cfg files change, making running this in the
pep8 job redundant. This covered by the test-release-openstack-python3
that is defined in the publish-to-pypi-python3 template.

More details can be found in this mailing list post:

http://lists.openstack.org/pipermail/openstack-dev/2018-October/136136.html

Change-Id: Iab0d2a2086cfecb8cc609c11de67ebbfc9d4d7d5
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-11-12 08:56:03 +00:00
Zuul
ce4dc70be5 Merge "Refactor action execution checker without using scheduler" 2018-11-10 16:23:21 +00:00
Zuul
c48efec6db Merge "Add batch size for integrity checker" 2018-11-10 15:09:42 +00:00
Zuul
3e5c102ee5 Merge "Simplify workflow and join completion logic" 2018-11-10 11:36:31 +00:00
Zuul
2737586560 Merge "Fix how action result is assigned to task 'state_info' field" 2018-11-09 14:12:52 +00:00
Zuul
4d8d8821ef Merge "Allow None for 'params' when starting a workflow execution" 2018-11-09 11:59:49 +00:00
Renat Akhmerov
43a8bddc24 Fix how action result is assigned to task 'state_info' field
Closes-Bug: #1802477

Change-Id: Ia8848b3bb0417f66422c4995b64be7a803dde1e7
2018-11-09 16:14:25 +07:00
Oleg Ovcharuk
c712e369ed Divide yaml input to save it into definitions separately.
In case of creating/updating multiple workflows from one yaml,
we should not save the whole input to each workflow.

Closes-Bug: #1792975
Change-Id: I724c041ab3441805fcfa2cfc4a50afd774998cc7
Signed-off-by: Oleg Ovcharuk <vgvoleg@gmail.com>
2018-11-09 07:27:44 +00:00
Renat Akhmerov
2d74e6ebac Refactor action execution checker without using scheduler
* Removed using scheduler from action execution heartbeat checker
  in favor of regular threads.
* Added the new config options "batch_size" under [action_heartbeat]
  group to limit a number of action executions being processed during
  one iteration the checker.
* Added a test checking that an action execution is automatically
  failed by the heartbeat checker.

Closes-Bug: #1802065
Change-Id: I18c0c2c3159b9294c8af96c93c65a6edfc1de1a1
2018-11-09 14:17:28 +07:00
Renat Akhmerov
3b4136ff1e Add batch size for integrity checker
* Added the new property 'execution_integrity_check_batch_size'
  under the [engine] group to limit the number of task executions
  that the integrity checker may process during one iteration.

Closes-Bug: #1801876
Change-Id: I3c5074c45c476ebff109617cb15d56c54575dd4f
2018-11-09 14:17:27 +07:00
Renat Akhmerov
80a1bed67b Simplify workflow and join completion logic
* action_queue module is replaced with the more generic
  post_tx_queue module that allows to register operations that must
  run after the main DB transaction associated with processing a
  workflow event such as completing action.
* Instead of calling workflow completion check from all places
  where task may possibly complete, Mistral now registers a post
  transactional operation that runs after the main DB transaction
  (to make sure at least one needed consistent DB read) right
  inside the task completion logic. It reduces clutter significantly.
* Workflow completion check is now registered only if the just
  completed task may lead to workflow completion, i.e. if it's the
  last one in a workflow branch.
* Join now checks delayed calls to reduce a number of join
  completion checks created with scheduler and also uses post
  transactional queue for that.

Closes-Bug: #1801872
Change-Id: I90741d4121c48c42606dfa850cfe824557b095d0
2018-11-09 14:17:20 +07:00
Renat Akhmerov
b413aa087e Allow None for 'params' when starting a workflow execution
Change-Id: Ic28352d9acbe9e3f53a9d33a4ff0a5f99261f53f
Closes-Bug: #1793651
2018-11-08 21:01:21 +07:00
akhiljain23
b1dd0613c4 Update min tox version to 2.0
The commands used by constraints need at least tox 2.0.  Update to
reflect reality, which should help with local running of constraints
targets.

Change-Id: I0bb160bd02b876ed94a3804c88087289f9c3acc2
2018-11-07 07:07:20 +00:00
Renat Akhmerov
3d7acd3957 Improve workflow completion logic by removing periodic jobs
* Workflow completion algorithm use periodic scheduled jobs to
  poll DB and determine when a workflow is finished. The problem
  with this approach is that if Mistral runs another iteration
  of such job too soon then running such jobs will create a big
  load on the system. If too late, then a workflow may be in
  RUNNING state for too long after all its tasks are completed.
  The current implementation tries to predict a delay with which
  the next job should run, based on a number of incompleted tasks.
  This approach was initially taken because we switched to a
  non-blocking transactional model (previously we locked the entire
  workflow execution graph in order to change a state of anything)
  and in this architecture, when we have parallel branches, i.e.
  parallel DB transactions, we can't make a consistent read from
  DB from neither of these transactions to make a reliable decision
  about whether the workflow is completed or not. Using periodic
  jobs was a solution. However, this approach has been proven to
  work unreliably because such a prediction about delay before the
  next job iteration doesn't work well on all variety of use cases
  that we have.
  This patch removes using periodic jobs in favor of using the
  "two transactions" approach when in the first transaction we
  handle action completion event (and task completion if it causes
  it) and in the second transaction, if a task is completed, we
  check if the workflow is completed. This approach guarantees
  that at least one of the "second" transactions in parallel
  branches will make needed consistent read from DB (i.e. will
  see the actuall state of all needed objects) to make the right
  decision.

Closes-Bug: #1799382
Change-Id: I2333507503b3b8226c184beb0bd783e1dcfa397f
2018-11-07 04:00:04 +00:00
Thomas Herve
ec3d14112c Fix senlin fake client creation
The new openstacksdk mechanism forces a keystone request to find info
about endpoints. We don't need this for fake client, so skip the
__init__ of the class.

Change-Id: I5b0d89ac57c14f982a6afa638f088d365e0e4ab8
2018-11-06 11:52:32 +01:00
Renat Akhmerov
c39842b849 Fix usage of cachetools in lookup_utils
* In the latest version of cachetools lib (3.0.0) the previously
  deprecated argument "missing" of cache classes has been removed.
* Disabled test_generator failing due to the changes in the
  senlin client until it's fixed by https://review.openstack.org/614211

Change-Id: Iac42f592834734a6fddb743e947860b3bb7e1aba
2018-11-06 15:36:43 +07:00