summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Move `./run_tests.sh` to Oslo"Jenkins2013-08-154-0/+667
|\
| * Move `./run_tests.sh` to OsloVictor Sergeyev2013-08-134-0/+667
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Moved Nova `./run_tests.sh` script to `tools/run_tests_common.sh` file. This script run unit-tests and can be reused in other projects. Added script `./run_tests.sh` with project specific variables to run `tools/run_tests_common.sh` script. Added required `tools/*` files for pretty colorizer outpoot. Modified `tests/utils.py` file - added work with OS_TEST_TIMEOUT, OS_STDOUT_CAPTURE and OS_STDERR_CAPTURE environment variables from .testr.conf blueprint run-tests-script Change-Id: I057e8cf2c74d160402cb881fc761623c74905b7e
* | Unset OS_xx variable before generate configurationMehdi Abaakouk2013-08-141-0/+3
|/ | | | | | | | | | | When generate_sample.sh generate the configuration of the keystone middleware part, it use OS_XXXXX environment variable if this one is set instead of the default one. This change unset this variables, before generate_sample.sh inspect the code to always have the default value. Change-Id: I4f41eece3d93633fcc07274f533adfa1887325fc
* Don't attempt to patch eventlet without the patchMonty Taylor2013-08-081-9/+10
| | | | | | Some projects, like horizon, do not carry the eventlet patch. Change-Id: I24ffad9ab7852be44e5d6c8805aa0a47647e21cc
* Ensure install_venv works behind firewallsMonty Taylor2013-07-311-2/+3
| | | | | | | | | | There is a problem with setuptools and firewalls that prevents setuptools from downloading setup_requires properly. The only thing in openstack that really needs setup_requires is pbr. Once that's in, everything else installs via pip, which does firewalls correctly. So, just install the latest pbr into the venv and the rest should work. Change-Id: I838559f6f308e4a0c255af7bc27cdc669c5cf5f3
* Import config file generator module from python pathZhongyue Luo2013-07-221-2/+2
| | | | | | | | | | | The sample config file generator will be executed in each project's virtualenv after being copied using the update.py module. Therefore accessing the generator module would not work the current way of using relative paths. This patch executes the generator module by directly importing it. The update.py will update the module path when copying to each project. Change-Id: Id40422ae170935d2fc1c7443eee4b31161b7d3d3
* Fixes path to add on PYTHONPATH in generate_sample.shZhongyue Luo2013-07-161-1/+1
| | | | | | Fixes bug #1201699 Change-Id: I51aca3b05866e513cbbb3163df7e5514d99af192
* Merge "Adds sample config file generation script"Jenkins2013-07-152-0/+81
|\
| * Adds sample config file generation scriptZhongyue Luo2013-06-252-0/+81
| | | | | | | | | | | | | | Having this script placed in oslo will let projects avoid implementing their own sample generation script. Change-Id: Ifed266ef65aee72da2e16ff30b7bde1e834650da
* | Stop using distribute in install_venv_commonMonty Taylor2013-07-051-26/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | Upstream distribute is dead and has been merged back into setuptools. Additionally, enhancements have been made to both setuptools and pip that mean we no longer have to carry hacks around versions. Also, we don't need to install greenlet here. Order is respected in requirements.txt. Also, let's kill the pip_requires verbage. Change-Id: Ia15c66d6a03522e804ff96fd6f8d81db00467a6e
* | Enable H304 hacking checkAnn Kamyshnikova2013-07-041-1/+1
|/ | | | | | | | | | | | The error was: 'import install_venv_common as install_venv' is a relative import To fix it __init__.py was created and import string was fixed. Requirements for hacking changed to >=0.5.6 Change-Id: I71aa7c7cb268c26aa00828306138a84b30289cb9
* Rename requires files to standard names.Zhenguo Niu2013-06-042-41/+0
| | | | | | | | | Rename tools/pip-requires to requirements.txt and tools/test-requires to test-requirements.txt. These are standard files, and tools in the general world are growing intelligence about them. Fixes: bug #1179008 Change-Id: I033876ec304fea97c66365c16bcf0cccaa1d810e
* Merge "Add support for requirements.txt."Jenkins2013-05-271-2/+14
|\
| * Add support for requirements.txt.Monty Taylor2013-05-181-2/+14
| | | | | | | | | | | | | | | | In prep for moving the projects to requirements.txt and test-requirements.txt, we need to have our legacy install_venv codebase support finding requirements in the right place. Change-Id: I0f300c6bb1792c81e2133a41a5631f2dd4c021ba
* | Merge "Add hacking extension to flake8"Jenkins2013-05-201-1/+4
|\ \
| * | Add hacking extension to flake8Joe Gordon2013-05-151-1/+4
| |/ | | | | | | | | | | | | Include hacking in test-requires and disable any failing tests. Once failing tests are fixed they can be enabled to gate on them. Change-Id: Id6a228441ec94d5d0bee1dba05118bb35ecaa001
* / Migrate to pbr.Monty Taylor2013-05-172-24/+2
|/ | | | | | | | | Also, remove the files associated with this that should not be pulled from oslo-incubator any longer. Closes bug 1179007 Change-Id: Id2e882837bdde51a60562e8cdd207c7ff0c88a6a
* Update eventlet bug URL.James E. Blair2013-05-131-1/+2
| | | | | | | The eventlet repository has moved, so the bug url referenced in the comment about why we patch eventlet needs to be updated. Change-Id: I55abe0b6eb4c8e21fad15a10d6ec71d3b5a59e54
* Merge "Copy Nova's workaround for RHEL6 eventlet issue"Jenkins2013-05-081-0/+38
|\
| * Copy Nova's workaround for RHEL6 eventlet issueMark McLoughlin2013-05-081-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The eventlet on PyPI basically doesn't work on RHEL because we (Red Hat) screwed up by not taking monkey patching into account when backporting an API from python 3. This is the series of events: 1) We backported a patch to RHEL6 from Python 3 which added an optional 'timeout' argument to subprocess.Popen: http://pkgs.devel.redhat.com/cgit/rpms/python/commit/?h=rhel-6.3&id=fc9a3f0e07 This might sound innocuous but it means the wait() function get called with a timeout argument 2) eventlet overrides this function, but doesn't know about the timeout argument, so it fails. To reproduce, try applying this to your python 2.7: https://gist.github.com/markmc/5500967 3) eventlet doesn't yet support Python 3, so the only time this issue crops up is if you use eventlet on RHEL6 4) We've fixed eventlet in EPEL6, but the issue still remains if you install eventlet from upstream 5) Dave Malcolm sent a pull request to eventlet, but it has stalled: https://bitbucket.org/eventlet/eventlet/pull-request/30/add-dummy-timeout-parameter-to Nova has long had a nasty workaround to patch eventlet in our virtualenv and we now need this workaround in oslo-incubator to test processutils. Let's add it here and make nova sync it from oslo-incubator. I really hope we can get eventlet upstream "fixed" and the fix released soon. When that happens, we can kill all this nastiness. Change-Id: I62ce43a330d7ae94eda4c7498782a655e63747fa
* | Merge "Convert unicode for python3 portability"Jenkins2013-05-071-0/+1
|\ \ | |/ |/|
| * Convert unicode for python3 portabilityChuck Short2013-05-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | From http://docs.python.org/3.1/whatsnew/3.0.html: "Python 3.0 uses the concepts of text and (binary) data instead of Unicode strings and 8-bit strings." Use six.text_type to Type for representing (Unicode) textual data. This is unicode() in Python 2 and str in Python 3. Change-Id: I3da268a714a34a8e626a2590f01b86e414dc3411 Signed-off-by: Chuck Short <chuck.short@canonical.com>
* | Improve python3 compatibilityChuck Short2013-05-021-10/+12
| | | | | | | | | | | | | | | | Change print statements so that it works with python3 as well. Change-Id: Iff16b62e4b875c79862c9af7726ea77627aa7b4f Signed-off-by: Chuck Short <chuck.short@canonical.com>
* | Use optparse for install_venv_commonRick Harris2013-05-011-7/+10
|/ | | | | | | | | In order to bootstrap a virtualenv from an unmodified 2.6 Python environment, we need to use optparse instead of argparse or openstack.common.cfg. Fixes bug 1174926 Change-Id: Iad636c7adf7b184756eeba5ca760d8a76fc0e354
* Avoid calling sudo in install_venv_common.py.Dan Prince2013-04-231-6/+2
| | | | | | | | | | | | Updates our common venv installation routine so that it no longer attempts to automatically install missing RPM packages via sudo and instead just prints an error message and dies. The primary motivation here was to avoid sudo altogether since some people would rather not have the test suite run these sorts of systems admin commands for them. Change-Id: I350e5421a4dd3094217270d39547acaea0aeda3b
* Update to use flake8.Monty Taylor2013-03-241-2/+1
| | | | | | | flake8 is pluggable and handles pep8 and pyflakes, as well as configuration through tox.ini. It also removes the need for flakes.py. Change-Id: If5f7d8ad348b4fb8119fa4ec7b5e9d17bdc72a39
* Adds pylint section in tox.ini to check for unused importsZhongyue Luo2013-03-211-0/+34
| | | | | | Fixes bug #1157597 Change-Id: I77e0ddb1babf1eec0bb953b8bfa52cd1d415f709
* update OpenStack, LLC to OpenStack FoundationMark McClain2013-03-131-1/+1
| | | | | | | | | | fixes bug 1154745 The previous update (https://review.openstack.org/#/c/24103/) missed header files that contained "OpenStack, LLC". This change corrects the missed files to reflect the OpenStack Foundation. Change-Id: I9c6de265267485ef2c82ea7e6d8643e82134d102
* Switch to final 1.1.0 oslo.config releaseMark McLoughlin2013-03-121-1/+1
| | | | | | | | | Fixes bug #1128256 oslo.config has now been released to PyPI in time for Grizzly RC1 so we can switch to using it directly. Change-Id: I655f831718ae5f4e25e941ee206fe195214a9a91
* Don't check exit codes when patching.Dan Prince2013-03-071-1/+2
| | | | | | | | | | | | | Similar to what we did in 427769c we need to ignore checking exit codes for patch -N command so that they can be run multiple times. The motivation here is that I would like to use this to patch virtual env's created by tox. Tox doesn't provide a good hook to call post_process (which patches files) only once so the idea here is we'll just let it call post_process all the time... Change-Id: I866e7a3e1fd492d7d4c08eb55cde02f2dfa16c9a
* Update install_venv_common to use patch -N.Dan Prince2013-03-061-1/+1
| | | | | | | | | | | | | | | This patch makes it possible to call the post_process function in install_venv_common (which currently only patches files) multiple times. The motivation here is that I would like to use this to patch virtual env's created by tox. Tox doesn't provide a good hook to call post_process (which patches files) only once so the idea here is we'll just let it call post_process all the time... and for distro's where patching is used to fix the venv the patch -N option will make it skip patches on subsequent runs. Change-Id: Ib0a36e49dd1884de131c569fe8bb66fe20285e97
* Switch to oslo.configMark McLoughlin2013-03-061-1/+1
| | | | | | | The oslo-config package has been renamed. Switch to the new version. Change-Id: I6a0fa803b0076bc5338c996e21bbcef54e1d75cd
* Merge "Redis-based matchmaker"Jenkins2013-03-011-0/+1
|\
| * Redis-based matchmakerEric Windisch2013-03-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Introduces a reference implementation of a matchmaker (based on redis) that supports dynamic host/topic registrations, host expiration, and hooks for consuming applications to acknowledge or neg-acknowledge topic.host service availability. Implements blueprint advanced-matchmaking Change-Id: I8608d2089fca118b0e369f2eb5c6aedacf6821fe
* | Merge "Update flakes.py to match 0.6.1."Jenkins2013-02-252-6/+15
|\ \
| * | Update flakes.py to match 0.6.1.Monty Taylor2013-02-252-6/+15
| |/ | | | | | | | | | | | | pyflakes 0.6.1 changes a module path - but we want to use it, because it finally groks attributes properly. Change-Id: Id35d1551c78212adb7ab470cefd9a53827167a71
* / Support qpid unit tests.Russell Bryant2013-02-251-0/+1
|/ | | | | | | | | | | | | | | The qpid unit tests have never been run by default because qpid is not on pypi. I filed a bug asking the qpid project to support it: https://issues.apache.org/jira/browse/QPID-4539 Until that happens, I uploaded a package to pypi myself. https://pypi.python.org/pypi/qpid-python Fix bug 1061055. Change-Id: I2d52ff383b6393f34e94c25f959dccda5a7571de
* Fix "Needs to specify pyzmq version"Kei Masumoto2013-02-221-1/+1
| | | | | | | | "pyzmq13.0.0" described as "pyzmq>=2.1.11" causes unit test error. Specifying correct version is necessary. Change-Id: Icb7acb0eb4d59a456999ba477e087d825be8dd4b
* Avoid using cfg in install_venv_commonMark McLoughlin2013-02-191-20/+7
| | | | | | | | | | | | | | | Several people have complained that requiring oslo-config to be installed in order to run install_venv seems like a chicken and egg problem. We're only using cfg for a boolean CLI option which is way overkill. The truth is that cfg is really only interesting if you want to process options from both the command line and configuration files. Clearly that's not the case here. Just use argparse instead of cfg. Change-Id: Ib602686b554c3548f4be3d4a69d128c5fef7e8cf
* Merge "Bump eventlet to 0.12.0"Jenkins2013-02-181-1/+1
|\
| * Bump eventlet to 0.12.0Eric Windisch2013-02-011-1/+1
| | | | | | | | | | | | | | | | | | This version has important fixes required for ZeroMQ (spurious wakeups). Fixes bug 1065532. Change-Id: I16b9220db1f5bf16a24644887963ce18e4e5ecbd
* | Use oslo-config-2013.1b3Mark McLoughlin2013-02-173-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The cfg API is now available via the oslo-config library, so switch to it and remove the copied-and-pasted version. Add the 2013.1b3 tarball to tools/pip-requires - this will be changed to 'oslo-config>=2013.1' when oslo-config is published to pypi. This will happen in time for grizzly final. Remove the 'deps = pep8==1.3.3' and 'deps = pyflakes' from tox.ini as it means all the other deps get installed with easy_install which can't install oslo-config from the URL. Change-Id: I4815aeb8a9341a31a250e920157f15ee15cfc5bc
* | Cleanup docstring and print in install_venv_commonMatthew Treinish2013-02-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit cleans up usage in the docstring for: run_command_with_code() to be more explicit in the description of where the commands are being run. It also updates the prints to be consistent in the usage of venv vs virtualenv. These changes were recommended in the review for change: I68fe3449ed0fcc7fdfb84af2dcc77a39ebde7f01 Change-Id: I3cdb3d991503446d37c8fa6a3547585a4f8beb6a
* | Fix sorting in test-requiresMark McLoughlin2013-02-071-1/+1
| | | | | | | | Change-Id: Ic45ac7c85dbe2834d7b325ba8babf71429b277b0
* | Merge "Import sqlalchemy session/models/utils"Jenkins2013-02-062-0/+2
|\ \
| * | Import sqlalchemy session/models/utilsEric Windisch2013-02-052-0/+2
| |/ | | | | | | | | | | | | | | | | | | | | Bring in session, base model, utilities, and tests for sqlalchemy from Nova. Add sqlalchemy to pip-requires and and python-mysql to test-requires. Partially implements blueprint common-db Change-Id: I3e0065cdac87e10c4e0742d66c293c72bb3acbb2
* / Allow tools/install_venv_common.py to be run from within theJosh Kearney2013-02-051-0/+7
|/ | | | | | | | | source directory. Not doing this raised exceptions when it tried importing modules that didn't exist in the path. Change-Id: I10e02cd9ce6beb8fdf822dd397688450ac6981a1
* Merge "Only import modules in tools/flakes"Jenkins2013-01-291-2/+2
|\
| * Only import modules in tools/flakesJoe Gordon2013-01-281-2/+2
| | | | | | | | Change-Id: I049f4e4d3927d0bf792697d30250083c87ca0b73
* | Update copyright on install_venv_common.pyMatthew Treinish2013-01-281-0/+1
|/ | | | | | | This updates the copyrights on install_venv_common.py to include IBM. Change-Id: I5da3d9f1f511f20b332dc206aba4bcd2011a4940