OpenStack Orchestration (Heat)
Go to file
Boden R 756dda72d4 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/removed where applicable.

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

Closes-Bug: #1635388

Change-Id: Iec0822cc0d5589b04c1764db518478d286455031
2016-11-15 04:34:17 +00:00
api-ref/source Correct invalid git URL in LogABug config 2016-10-07 15:18:21 +00:00
bin Trivial:Standardize the output format of 'help' in some files 2016-09-21 14:12:27 +08:00
contrib Merge "Add version keyword argument to RAX glanceclient" 2016-08-15 23:55:50 +00:00
devstack Remove unnecessary install_heat_other 2016-10-19 09:36:56 +05:30
doc Add new hot function str_replace_strict 2016-10-10 10:24:55 -07:00
etc/heat Add http_proxy_to_wsgi middleware to Heat CFN endpoint 2016-10-10 09:46:14 +03:00
heat Replace retrying with tenacity 2016-11-15 04:34:17 +00:00
heat_integrationtests Resolve all functions before RESOLVE translation 2016-10-05 16:00:14 +05:30
heat_upgradetests In-tree grenade support for Heat 2015-07-02 17:23:22 +05:30
install-guide/source Install Guide: Set bug project 2016-06-24 15:34:11 +02:00
rally-scenarios Rally tests plugins for Heat 2016-03-02 12:20:37 -05:00
releasenotes Enable release notes translation 2016-10-06 20:27:09 +02:00
tools Don't raise error in custom guidelines on IOError 2016-08-24 09:36:02 +00:00
.coveragerc Change ignore-errors to ignore_errors 2015-09-21 14:26:58 +00:00
.gitignore Create integration tests requirements on the fly 2016-03-25 13:40:50 +00:00
.gitreview Update .gitreview for org move. 2012-12-02 17:46:15 +00:00
.testr.conf Add separate requirements.txt to integration tests 2015-04-01 09:02:13 +00:00
CONTRIBUTING.rst Workflow documentation is now in infra-manual 2014-12-05 03:30:36 +00:00
HACKING.rst Restrict use of iteritems, iterkeys and itervalues 2016-03-23 10:05:54 +00:00
LICENSE Initial commit (basics copied from glance) 2012-03-13 21:48:07 +11:00
README.rst Add aodh client plugin 2016-06-24 09:07:51 +00:00
babel.cfg Add setup.py and friends 2012-03-14 09:25:54 +11:00
bandit.yaml tox environment for `bandit` 2015-07-08 09:13:35 -04:00
config-generator.conf Move heat_keystoneclient to clients package 2016-06-01 16:27:01 +05:30
install.sh install.sh: stop using deprecated option group for rabbit 2015-09-01 19:01:34 +02:00
openstack-common.conf Switch to oslo.service 2015-06-23 08:30:39 +02:00
pylintrc Directives to not use variable names that conflict with pdb 2012-03-20 07:16:16 -04:00
requirements.txt Replace retrying with tenacity 2016-11-15 04:34:17 +00:00
setup.cfg heat-all: all-in-one heat launcher 2016-10-13 11:49:15 -04:00
setup.py Updated from global requirements 2015-09-22 10:40:48 +00:00
test-requirements.txt Updated from global requirements 2016-09-29 05:06:17 +00:00
tox.ini Run heat_integrationtests as a tempest plugin 2016-08-13 09:53:07 +12:00
uninstall.sh use stderr for error echo message 2016-01-17 05:20:40 +00:00

README.rst

Heat

Heat is a service to orchestrate multiple composite cloud applications using templates, through both an OpenStack-native REST API and a CloudFormation-compatible Query API.

Why heat? It makes the clouds rise and keeps them there.

Getting Started

If you'd like to run from the master branch, you can clone the git repo:

git clone https://git.openstack.org/openstack/heat

Python client

https://git.openstack.org/cgit/openstack/python-heatclient

References

We have integration with