summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Avoid usage of six.moves in local functions"0.5.0Jenkins2014-10-065-15/+18
|\
| * Avoid usage of six.moves in local functionsJoshua Harlow2014-10-045-15/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently it appears that using six.moves in threaded code isn't working as expected (something there in six does not appear to be thread safe) so until this is fixed avoid using those moves in functions in the examples and in the utility code (and instead import the moved function at the top of the module in code to avoid any threaded usage problems). Upstream bug filed at: https://bitbucket.org/gutworth/six/issue/98/ Fixes bug 1377514 Change-Id: I3fc1819df8fb42d0c3d394bbc7d047b09152af68
* | Merge "Stop using intersphinx"Jenkins2014-10-051-4/+0
|\ \ | |/ |/|
| * Stop using intersphinxChristian Berendt2014-09-251-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove intersphinx from the docs build as it triggers network calls that occasionally fail, and we don't really use intersphinx (links other sphinx documents out on the internet) This also removes the requirement for internet access during docs build. This can cause docs jobs to fail if the project errors out on warnings. Change-Id: Ie70e400478a092943a18f9f8595302380ec71cbc Related-Bug: #1368910
* | Merge "Jobboard example that show jobs + workers + producers"Jenkins2014-10-043-3/+207
|\ \
| * | Jobboard example that show jobs + workers + producersJoshua Harlow2014-09-273-3/+207
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new example that spins up a set of threads to simulate the actual workers and producers that would be normally attached to a jobboard and use these threads to producer and consume a set of simple jobs (that are filtered on by the workers). - This also fixes how python3 removed the __cmp__ operator which we were using for sorting the jobs that were posted and now we must use __lt__ instead. Fixes bug 1367496 Part of blueprint more-examples Change-Id: Ib8d116637b8edae31e4c8927a28515907855f8bf
* | | Merge "Rework the state documentation"Jenkins2014-10-031-78/+112
|\ \ \
| * | | Rework the state documentationJoshua Harlow2014-09-301-78/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make the state documentation easier to understand, more clear, and better stated than what existed before this commit so it is easier for users to read, use and interpret. Change-Id: I0285bfe332c6e968626719f14049a9533d066d86
* | | | Merge "Adjust on_job_posting to not hold the lock while investigating"Jenkins2014-10-011-21/+33
|\ \ \ \ | | |/ / | |/| |
| * | | Adjust on_job_posting to not hold the lock while investigatingJoshua Harlow2014-09-271-21/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To avoid issues when investigating jobs in one thread and having a dispatcher thread get locked on that same investigation lock avoid this entirely by not holding onto that lock. This also adds a small cleanup around the notifier thread pool and ensures that it actually exists in a useable state (and handles the exceptions that arise when it doesn't) on submission. Change-Id: I12e71f029726ec54ec0aadbdf71cc3c7a959f047
* | | | Make it so that the import works for older versions of kombuJoshua Harlow2014-10-011-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The import location for message was different in older versions of kombu, so when using it for mocking we need to take into account the older location so that the test correctly works out as it should (without import errors). Fixes bug 1376330 Change-Id: Ifad489f0e15490168f993f48bfedfd553acd4a69
* | | | Updated from global requirementsOpenStack Proposal Bot2014-09-293-6/+6
| |/ / |/| | | | | | | | Change-Id: I48350d765a1345a98de07bc1e269940b849840b1
* | | Merge "Adjust the WBE log levels"Jenkins2014-09-293-17/+28
|\ \ \
| * | | Adjust the WBE log levelsJoshua Harlow2014-09-273-17/+28
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To conform better with the logging level standards move away from using LOG.exception when the level is more appropriately a warning/warn. Also changes how a message that can not be sent is really a critical error and should be treated as such (since such an error affects the overall execution model). Change-Id: I7cebd882b655958d539be36ce3b4deb75ac4a0b7
* | | Merge "Remove db locks and use random db names for tests"Jenkins2014-09-281-57/+67
|\ \ \
| * | | Remove db locks and use random db names for testsBrian Jarrett2014-08-121-57/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed database locks against the database openstack_citest and implemented random name generation for new databases created just for persistence testing. Once the locks were removed, using 'template1' as the initial db for postgres connections was problematic, because postgres refuses to create databases when there are multiple connections to 'template1'. Switched to using 'postgres' as an initial db to use. Changed _reset_database to _init_db since we are always working with a brand new database, and removed the 'drop database' before a 'create database. Added a _remove_db method to remove the database once testing was finished. Change-Id: Iaf1c101df9c268da48db7432bcbc0467f6486bcd Closes-Bug: 1327469
* | | | Merge "Adjust docs+venv tox environments requirements/dependencies"Jenkins2014-09-281-4/+3
|\ \ \ \
| * | | | Adjust docs+venv tox environments requirements/dependenciesJoshua Harlow2014-09-271-4/+3
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | After a prior merge these sections are no longer valid and need to be adjusted to reflect the removal of the optional requirements file. Change-Id: I2a93c8e55f0d692df6d074bd86ab1a5e6d11a03f
* | | | Use the features that the oslotest mock base class providesJoshua Harlow2014-09-279-36/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of having our own mock subclass that has similar functions as the oslotest base mocking class just use the base class functions where we can and add on our own customizations as we choose to. This change moves to using the base classes fixtures and also adjusts the customized subclass method names to match closer to the rest of the unittest classes method name style (camel-case not underscores). Change-Id: If24530c0381d7fb99797acaa582d3be1d7054185
* | | | Use oslotest to provide our base test case classJoshua Harlow2014-09-2716-27/+29
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The oslotest library has a nice openstack testing integrated base class that can ensure we setup our base test case using the right logging fixtures, test timeouts, and output fixtures that better operate in the openstack ecosystem. This will also allow us to remove some of the functionality that we currently have in our base test case and replace it with the equivalent (or better) functionality that oslotest now provides. Part of blueprint use-oslo-test Change-Id: I1602d5180ec8649a1899185972750ddddf65990f
* | | Merge "Move some of the custom requirements out of tox.ini"Jenkins2014-09-275-44/+36
|\ \ \
| * | | Move some of the custom requirements out of tox.iniJoshua Harlow2014-09-265-44/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change removes the need for an optional-requirements file which isn't being kept up to date with the rest of the openstack ecosystem and moves most of the customizations to test-requirements and where different versions are still needed (aka for SQLAlchemy) we place those varations into there needed tox environment as required. Change-Id: I443794b83de3f6a196fa7fc29a90620fb51b7f4c
* | | | Merge "Add a mandelbrot parallel calculation WBE example"Jenkins2014-09-274-0/+283
|\ \ \ \
| * | | | Add a mandelbrot parallel calculation WBE exampleJoshua Harlow2014-09-124-0/+283
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The mandelbrot calculation is neat example to provide to show how the WBE engine can be used to compute various calculations (the mandelbrot set in this example). This will also create an image from the output if a filename is provided and the pillow library is installed (that library does the actual image writing). See: http://en.wikipedia.org/wiki/Mandelbrot_set Part of blueprint more-examples Change-Id: I12b9b7a2ce61b17ddaa2930cc9cf266ae0c60932
* | | | | Merge "Typos "searchs""Jenkins2014-09-271-1/+1
|\ \ \ \ \
| * | | | | Typos "searchs"Rafael Rivero2014-09-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Misspelling of "searchs" in method index. Change-Id: Ifb17fc1a4b4df2ea7cbc3a49e9815888dd1d7467
* | | | | | Merge "Fix multilock concurrency when shared by > 1 threads"Jenkins2014-09-272-25/+319
|\ \ \ \ \ \
| * | | | | | Fix multilock concurrency when shared by > 1 threadsJoshua Harlow2014-09-232-25/+319
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of raising thread errors when another thread has locks that the consuming thread wants to use just block and wait and release the correct locks on release to match the expected vs observed behavior. This makes it so that a single multilock object can be shared by many threads and each thread using the object will correctly obtain and release as expected... Fixes bug 1371814 Change-Id: Ia21a05fe9249fa019a09c4f30beeb0770ded5150
* | | | | | | Merge "Ensure the cachedproperty creation/setting is thread-safe"Jenkins2014-09-272-6/+48
|\ \ \ \ \ \ \
| * | | | | | | Ensure the cachedproperty creation/setting is thread-safeJoshua Harlow2014-09-052-6/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the cachedproperty descriptor is attached to an object that needs to be only created/set by one thread at a time we should ensure that this is done safely by using a lock to prevent multiple threads from creating and assigning the associated attribute. Fixes bug 1366156 Change-Id: I0545683f83402097f54c34a6b737904e6edd85b3
* | | | | | | | Merge "Example which shows how to move values from one task to another"Jenkins2014-09-273-0/+89
|\ \ \ \ \ \ \ \
| * | | | | | | | Example which shows how to move values from one task to anotherJoshua Harlow2014-09-123-0/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Part of blueprint more-examples Change-Id: I05151c3f827d6a8a0b6a7f0aeab17bab2c8ce440
* | | | | | | | | Merge "Mention issue with more than one thread and reduce workers"Jenkins2014-09-271-3/+10
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Mention issue with more than one thread and reduce workersJoshua Harlow2014-09-121-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to how it appears the filesystem transport in kombu is not thread-safe we will work around this by not having more than one worker active at the same time in this example. Oddly it appears the memory transport is unaffected (but from looking at the code it doesn't look safe either), this may just be due to how the python memory model works though. Part of blueprint more-examples Change-Id: Idaf04fb1a6a622af292511bbcf25329c9a5aab53
* | | | | | | | | | Merge "Increase/adjust the logging of the WBE response/send activities"Jenkins2014-09-272-8/+21
|\ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|/ / / |/| | | | | | | | |
| * | | | | | | | | Increase/adjust the logging of the WBE response/send activitiesJoshua Harlow2014-09-222-8/+21
| | |_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I1d8309ce87114a0890dfc93a0a2c4b68f80ef828
* | | | | | | | | Merge "Expand toctree to three levels"Jenkins2014-09-267-17/+37
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Expand toctree to three levelsJoshua Harlow2014-09-257-17/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Three levels makes it easier to find content in the main toctree so lets make it easier for folks to use the table of contents to find what they are looking for instead of making it harder... This change makes three levels look readable as well as fixes some discrepancies among the various sections... Change-Id: I5fd7a062adec052c338790c9ba343dfbc51075e3
* | | | | | | | | | Merge "Switch to using oslo.utils and oslo.serialization"Jenkins2014-09-2627-1588/+33
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | |
| * | | | | | | | | Switch to using oslo.utils and oslo.serializationJoshua Harlow2014-09-2027-1588/+33
| | |_|_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of copying modules from the incubator into taskflow we can now directly use these same modules from supported libraries instead so this moves the usage of everything except uuidutils which wasn't moved over to using those newly published libraries. Part of blueprint integrate-and-use-oslo-utils-serialization Change-Id: I1183bda96e1ddb062d9cab91990186f0f56f0a0e
* | | | | | | | | Documentation cleanups and tweaksJoshua Harlow2014-09-238-173/+200
| |/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apply some adjustments on the docs by rewording certain statements, linking to the correct classes and methods and linking to the correct exceptions to make it easier for users to follow the docs and there associated types and links. Change-Id: I03aac77c814fc4c376003f09a45559a0995b3c6c
* | | | | | | | Merge "Update the requirements-py2.txt file"Jenkins2014-09-231-1/+1
|\ \ \ \ \ \ \ \
| * | | | | | | | Update the requirements-py2.txt fileJoshua Harlow2014-09-201-1/+1
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It appears the openstack requirements proposal bot does not currently update all the right files, this bug is filed @ bug 1371936 so until that is fixed this proposes the same change to the py2 requirements file that just got merged into the py3 file. Change-Id: I03dfc1579f44f930acaf92ef47c13829ffcbf35b
* | | | | | | | Merge "Allow WBE request transition timeout to be dynamic"Jenkins2014-09-233-9/+24
|\ \ \ \ \ \ \ \
| * | | | | | | | Allow WBE request transition timeout to be dynamicJoshua Harlow2014-08-123-9/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To enable longer (or shorter) timeouts for a WBE submitted request to transition out of the (PENDING, WAITING) states allow the transition timeout that was previously set to 60 seconds to be provided as a WBE configuration option (it still defaults to the previously fixed 60 seconds when it is not provided). Fixes bug 1356002 Change-Id: Idf384217004a334df03e2fff9150309fdfe08005
* | | | | | | | | Merge "Reject WBE messages if they can't be put in an ack state"Jenkins2014-09-231-0/+3
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Reject WBE messages if they can't be put in an ack stateJoshua Harlow2014-09-021-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Attempt to reject messages that could not be acknowledged so that those messages could be resent (requeueing is not appropriate since it will just cause the message to come back). Fixes bug 1364543 Change-Id: I2cb33b39be950528fa9e22d9a11722bedd0927aa
* | | | | | | | | | Merge "Color some of the states depending on there meaning"Jenkins2014-09-235-16/+30
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Color some of the states depending on there meaningJoshua Harlow2014-09-205-16/+30
| | |_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of just having black text color adjust some of the states text color depending on there type/name and highlight some as red, green, orange depending on there underlying meaning. Color names are from: http://www.graphviz.org/doc/info/colors.html Change-Id: I89f8f90837551a257936d254516ada6130e7b6da
* | | | | | | | | | Merge "LOG which requeue filter callback failed"Jenkins2014-09-231-6/+10
|\ \ \ \ \ \ \ \ \ \