Commit Graph

495 Commits

Author SHA1 Message Date
Alessio Ababilov 96c874cac5 Require netaddr>=0.7.6 to avoid UnboundLocalError
This issue is discussed at https://github.com/drkjam/netaddr/issues/2.
The bug in netaddr was fixed in release 0.7.6 on 13th Sep 2011.

Change-Id: Iea75a30963a09f9b0dd94138460bf041ab98fc66
Fixes: bug #1157058
2013-03-19 11:25:14 +02:00
Jenkins aa4198678a Merge "Update to Quantum Client 2.2.0" 2013-03-13 19:56:51 +00:00
Mark McLoughlin 34e0f86210 Switch to final 1.1.0 oslo.config release
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
2013-03-13 06:12:25 +00:00
Jenkins 99155de446 Merge "Pin SQLAlchemy to 0.7.x" 2013-03-13 05:30:21 +00:00
Chris Behrens 67de2456cf websockify 0.4 is busted
This was just released and it is broken, stalling our gates.  When
attempting to install it, we get:

"error: can't copy 'include/util.js': doesn't exist or not a regular
file"

Change-Id: I9d93bff92cc4a9d837382acce78bff587f52fb99
2013-03-12 19:42:10 +00:00
Dirk Mueller f7c7fb0808 Pin SQLAlchemy to 0.7.x
0.7.10 has been released and is compatible with 0.7.x. Instead
of pinning to 0.7.9, simply pin to 0.7.x to avoid SQLAlchemy 0.8

Change-Id: Iea57598698b4faf906e82a2974497221d07f4d16
2013-03-12 10:28:20 +01:00
Aaron Rosen 2b29065f63 Update to Quantum Client 2.2.0
This patch updates tools/pip-requires to use the python-quantumclient 2.2
It also limits the version to <3.0.0 to prevent breaking something accidently
when 3.0.0 is released.

Fixes bug 1152695

Change-Id: Ic47deccac1df5a1b6b5171f1f7d80b250b57ebc9
2013-03-08 10:10:33 -08:00
Dan Prince 0b2e8d6e06 Update tox.ini to support RHEL 6.x.
In order to support running unit tests on RHEL 6.x we need to patch
eventlet with contrib/redhat-eventlet.patch. We already
have support for this in the tools/install_venv_common.py but we need
to make a couple changes to allow tox to consume this:

1) Sync in the latest intall_venv_common.py from oslo. This changes
 patch to use the -N option (ignore already applied patches) and makes
 it safe to call the patching function more than once.

2) Add a new patch_tox_venv.py script in tools.

3) Update tox.ini to call patch_tox_venv.py before it runs tests and
coverage.

Change-Id: I3e2b07c3f718e4aede5c5f231ff0cdb7721ec885
2013-03-07 11:25:25 -05:00
Dan Prince 81e2eef87e Switch to oslo.config.
The oslo-config package has been renamed. Switch to the new
version. (should fix SmokeStack).

Change-Id: I6a0fa803b0076bc5338c996e21bbcef54e1d75cd
2013-03-05 22:25:01 -05:00
Jenkins e2d956ccaa Merge "docs should indicate proper git commit limit" 2013-03-05 00:28:05 +00:00
Steven Dake 4ac268a4b6 docs should indicate proper git commit limit
The nova gate should recommend 50 characters or less for a git commit
but actually enforce 72 characters.

This patch changes the hacking.rst docs to indicate the actual limit
is 72 characters rather then 50 characters.

Change-Id: I47f1f1f1007f5744bf1fef419df7e033803b4a53
Fixes: Bug #1144840
2013-03-04 13:23:45 -07:00
Alessandro Pilotti 15419ceaf0 Fixes oslo-config update for deprecated_group
Fixes bug: 1140310

The oslo-config dependency referenced in pip-requires should be updated to
the latest version to include support for "deprecated_group".
This is needed to move specific driver options from the DEFAULT group w/o
losing backwards compatibility.

Change-Id: I5d18a5ee704a1f781c8acd6f903b0e3ca07bc070
2013-03-04 20:57:00 +02:00
Jenkins b6045e6954 Merge "Improve hackings docstring detection" 2013-03-02 04:26:53 +00:00
Jenkins c97d526980 Merge "Regenerate nova.conf.sample" 2013-03-02 03:13:31 +00:00
Jenkins 58c33f3e07 Merge "Unpin PasteDeploy dependency version" 2013-03-02 03:13:11 +00:00
Jenkins 8c28f2757d Merge "Unpin routes dependency version" 2013-03-02 03:12:46 +00:00
Mark McLoughlin 2b6f37461b Regenerate nova.conf.sample
Fix generate_sample.sh script so that we include options from the bin/
scripts too. In order to make this work, sync a zmq-receive fix from
oslo-incubator to delay parsing its config file.

Change-Id: Ia3f9083b2ebc16425dbad8a2a55c2d45f1ff2be3
2013-03-01 12:12:41 +00:00
Jenkins 61692ca71d Merge "Prevent hacking.py from crashing on unexpected import exception" 2013-02-28 17:18:06 +00:00
Jenkins e7ff1c1dc1 Merge "Bump python-quantumclient version to 2.1.2" 2013-02-27 22:10:12 +00:00
Joe Gordon cc9cfb42d2 Prevent hacking.py from crashing on unexpected import exception
If a module isn't importable due to an unexpected error during
__import__.  Ignore it, hacking.py is only a style checker.

Fix bug 1134622

Change-Id: I704b7cc9a7bd415018ae7634767b7bd9c3b7d9b2
2013-02-27 10:03:03 -08:00
Jenkins 45f2fc431f Merge "Update OpenStack LLC to Foundation" 2013-02-27 17:44:08 +00:00
Aaron Rosen 08a2c682e4 Bump python-quantumclient version to 2.1.2
Fixes bug 1133381

Change-Id: I0592032e9df1fc165631e7e85f1cdc9ead4beb30
2013-02-27 09:29:47 -08:00
Jenkins 40be4c6ba0 Merge "Fix hacking.py to handle parenthesise in from import as" 2013-02-27 00:39:28 +00:00
Kurt Taylor d17f9ab13d Update OpenStack LLC to Foundation
Update all references of "LLC" to "Foundation".

Change-Id: I009e86784ef4dcf38882d64b0eff484576e04efe
2013-02-26 19:15:29 -05:00
Joe Gordon c8e8084a1f Improve hackings docstring detection
Previously: def foo():\n    a = '''This is not a docstring'''
would be counted as a docstring even though it isn't.

Fix this and add docstring tests.

Fix bug 1100912

Change-Id: Id4d4aa382713eea340720e166e418262ba68eaaf
2013-02-26 14:46:23 -08:00
Mark McLoughlin 5cc05e2878 Unpin PasteDeploy dependency version
Fixes bug #1133262

There are no newer releases of PasteDeploy than 1.5.0 and we have no
reason to believe newer versions will break us. Indeed, if an
incompatible version is released, we will want to know about it quickly.

Change-Id: I331b33b16ea50202886b19bf5c4060d9fa46d5ec
2013-02-26 12:12:40 +00:00
Mark McLoughlin 76df82e9f5 Unpin routes dependency version
Fixes bug #1133258

It looks like we should be fine with 1.13 and have no reason to expect
future versions will break us.

Cinder and Quantum both require >=1.12.3 too.

Change-Id: Ice0649d98e2a46505503072c07509fe274f195b6
2013-02-26 11:59:54 +00:00
Mark McLoughlin 30197d76fe Unpin suds dependency version
Fixes bug #1133247

suds is used by the vmware driver and the dependency has always been
pinned to 0.4:

  67e63ba8 (Sateesh Chodapuneedi 2011-03-07 18:10:48 +0530 17) suds==0.4

0.4 was released in September 2010 and there hasn't been a release
since. In fact, there has only been 16 commits since then and none of
them look to break the existing API.

If there's no reason to expect the next version to break us, we should
unpin. Indeed, we want to know early if upstream does break its API.

Change-Id: Icd2bdd021093293b2e4261a00d063239a3c42ce6
2013-02-26 11:38:43 +00:00
Mark McLoughlin 341b59531f Unpin Cheetah dependency version
Fixes bug #1133216

We've been pinned to the same version of Cheetah since May 2011:

  Cheetah==2.4.4

this was released in December 2010 and there hasn't been a release since:

  https://pypi.python.org/pypi/Cheetah/2.4.4

There's no particular reason to believe a future release of Cheetah will break
us (only 6 commits since 2.4.4 and they all look like bugfixes), so we should
change to:

  Cheetah>=2.4.4

Change-Id: Id3b22b84d2d693776f89ccb1d0c99d4e42fcab62
2013-02-26 11:10:01 +00:00
Jenkins 032ee13648 Merge "Fix hacking.py to handle 'cannot import x'" 2013-02-26 06:07:05 +00:00
Joe Gordon 99308d4dd3 Fix hacking.py to handle 'cannot import x'
Fix missingImport logic to handle a module that cannot be imported, due
to a missing dependant module.

Due to the nature of this bug doctests cannot cover it.

Fix bug 1133103

Change-Id: Ia067bacc125b67e2d9e0cfc72495e4f13a8648ad
2013-02-25 19:47:29 -08:00
Joe Gordon 2f778241a3 Fix hacking.py to handle parenthesise in from import as
Fix bug 1133070

Support 'from os import (path as p)'

Change-Id: Ie2e5b3150efb6f47b16978f3de64fca37e1717a6
2013-02-25 17:06:44 -08:00
Stanislaw Pitucha f6015d8299 Remove function redefinitions
A number of tests have never been run due to another function having
the same name. Duplicate names have been changed and additionally
pyflakes check will now fail in such situations.

Also fix ovs ethernet driver test which was incorrect.

Change-Id: Icd93528395e65a24194a6ec5dfb8025a820d29b5
2013-02-21 22:35:13 +00:00
Jenkins 032308c792 Merge "Sync latest install_venv_common.py" 2013-02-20 15:22:27 +00:00
Mark McLoughlin b5fe418c81 Sync latest install_venv_common.py
Syncs:

  c78b2ab Avoid using cfg in install_venv_common

So that people don't need oslo-config installed to run install_venv

Change-Id: I05b69f043b276d5e6cd2df5d90bc679df6373383
2013-02-20 13:29:17 +00:00
Vishvananda Ishaya 7ca39a6039 Fix broken logging imports.
This fixes all of the files incorrectly importing logging directly
and removes the workaround in hacking.py that was due to improper
from nova.openstack.common.log import logging statements.

Change-Id: Icfc25dc148c4a7b5fa7f6a7b609cd6c3d94efee1
2013-02-19 21:16:32 -08:00
Vishvananda Ishaya 3b649422a6 Fix hacking test to handle namespace packages.
This removes our workaround for namespace packages and improves
detection of missing imports due to non-existent dependencies.

Fixes bug 1130411

Change-Id: I89ee8249580e395f786289792cdf74219d041f2f
2013-02-19 21:16:32 -08:00
Mark McLoughlin 706a137005 Use oslo-config-2013.1b4
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.1b4 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.

Add dependency_links to setup.py so that oslo-config can be installed
from the tarball URL specified in pip-requires.

Remove the 'deps = pep8==1.3.3' from tox.ini as it means all the other
deps get installed with easy_install which can't install oslo-config
from the URL.

Make tools/hacking.py include oslo in IMPORT_EXCEPTIONS like it already
does for paste. It turns out imp.find_module() doesn't correct handle
namespace packages.

Retain dummy cfg.py file until keystoneclient middleware has been
updated (I18c450174277c8e2d15ed93879da6cd92074c27a).

Change-Id: I4815aeb8a9341a31a250e920157f15ee15cfc5bc
2013-02-19 21:16:32 -08:00
Jenkins 9d9bed9e68 Merge "Fix hacking tests on osx" 2013-02-19 03:38:29 +00:00
Vishvananda Ishaya d066a50e9a Fix hacking tests on osx
There were a few incompatibilities with the hacking tests and
OSX. Readlink -f doesn't work so use cd and pwd instead. Importing
a module with path separators doesn't work, so recursively import
the module. Finally the extra / in the find command was not needed.

Add a 'set -e' to run_pep8 to make sure test fails on any error

Ignore paste as it doesn't have an __init__ in its top level directory

Change-Id: Ifc66da7b872faa08f3be98f8b10486181ba77861
2013-02-18 12:12:23 -08:00
Jenkins 9e2b990f22 Merge "Fix script argument parsing." 2013-02-18 17:58:46 +00:00
Jenkins 235f9486d0 Merge "Update tools/regression_tester" 2013-02-16 01:35:05 +00:00
Rick Harris 0a93b563e9 Harmonize PEP8 checking between tox and run_tests.sh
Tox and run_tests.sh were running PEP8 checks against different
file-sets. This patch refactors the logic to determine which files to
run PEP8 checks on into `tools/run_pep8.sh` where it can be called by
both tox and `run_tests.sh`.

Additional fixes:

Some of our Python XenAPI Dom0 plugins don't end in *.py but should
still be checked by PEP8. This patches fixes the hacking.py violations
in the files and adds them back to the srcfiles list.

Merged tools/unused_imports.sh into tools/run_pep8.sh

Change-Id: Id5edd1acb644ab938beffc3473494a179d9d8cda
2013-02-15 00:39:58 +00:00
Brian Elliott cf51411531 Fix script argument parsing.
The vm_vdi_cleaner.py script's argument parsing was broken and unloved.

Change-Id: I1662534d65fd0e8472e092ed9f10d6cc059f1cab
2013-02-14 19:09:33 +00:00
Jenkins 53d8b4b252 Merge "Add "is not" test to hacking.py" 2013-02-14 04:27:46 +00:00
Attila Fazekas 5dd5625d97 Module import style checking changes
* Implementing the * import detection (it is disabled for now)
* New style relative import testing based on syntax rules
* Old style relative import testing based on module search
* Inspection based solution replaced by PYTHONPATH search
  in order to avoid module compile and initialization steps
  (code execution) in a syntax checking phase.

This solution is faster and safer, but does not able to recognize
modules added dynamically to the module scope.

Change-Id: Ifc871f4fdbcd4a9a736170ceb4475f4f2cbe66bc
2013-02-13 17:05:09 +01:00
Joe Gordon 339dd992b4 Add "is not" test to hacking.py
HACKING.rst was updated in I7534ef73e6fd525fd8f4bee594a4b37524699c08.
This adds hacking.py enforcement.

Change-Id: I5d75d536762449d0a7ae38213addd02aeceede0b
2013-02-12 17:46:23 -08:00
Joe Gordon 336eed6b24 Update tools/regression_tester
* Clarify wording (don't use 'success' and 'failure' instead use 'found'
  and 'no regression test')
* If don't pass gerrit review number run on current branch.  In
  preparation for running via jenkins.
* If no tests were changed, don't run any tests

Change-Id: I5e876e4e5071fc27461d2411fc33db1bf1724405
2013-02-12 17:13:21 -08:00
Jenkins 567050b091 Merge "replace ssh-keygen -m with a python equivalent" 2013-02-12 06:51:42 +00:00
Jenkins 20424b9879 Merge "support reloctable venv roots in testing framework" 2013-02-11 18:11:24 +00:00