Shared filesystem management project for OpenStack.
Go to file
Nicolas Trangez 552a80a5bf Fix `test_trans_add` for Python 3.4.3
The `test_trans_add` test in `manila.tests.test_hacking.HackingTestCase`
consistently failed on our CI system, which is based on Ubuntu 14.04.
Contrary, on my development machine running Fedora 22, all tests
succeeded. Whilst the test dispatches on Python version (`if six.PY2`)
to select which `hacking` errors are expected, at which line/column
pair, I noticed our CI system returned the expected values for Python 2,
not the Python 3 ones, which differ in column numbers only.

After verifying versions of dependencies, stepping through the code and
whatnot, the only difference left turned out to be the version of Python
being used: 3.4.2 on my workstation, 3.4.3 on our CI system. As a last
resort, I opened the Python 3.4 ChangeLog [1] and noticed a suspicious
entry::

    Issue #21295: Revert some changes (issue #16795) to AST line numbers
    and column offsets that constituted a regression.

Looking at those issues, it becomes clear this is the cause. Supposedly
the Python 3 specific expected values were created on a Python 3.4
version containing the original patch of #16795 [2], and this is also
what's running on the OpenStack CI system. Our CI system runs a build of
Python which contains the revert of #21295 [3].

This patch fixes the version-specific expected error calculation by not
simply dispatching on Python 2 or 3, but specifically limits the custom
version to 3.4.0 <= Python < 3.4.3.

[1] https://docs.python.org/3.4/whatsnew/changelog.html
[2] http://bugs.python.org/issue16795
[3] http://bugs.python.org/issue21295

Closes-Bug: 1499743

Change-Id: I649fb1f5244efba7ab79e9bf337433d541fa8b19
(cherry picked from commit 83167bd2a2)
2015-09-30 21:44:00 +00:00
contrib/ci Fix typo in test_hook 2015-09-12 16:53:44 +02:00
devstack Fix Share Migration tempest tests 2015-09-11 18:15:56 -03:00
doc Merge "Remove IBM GPFS driver due to lack of CI" 2015-09-17 02:03:31 +00:00
etc Merge "Non-admin user can perform 'extra-specs-list'" 2015-09-17 13:53:28 +00:00
manila Fix `test_trans_add` for Python 3.4.3 2015-09-30 21:44:00 +00:00
manila_tempest_tests Merge "Fix experimental=True for view in microversion 2.5" 2015-09-18 22:00:56 +00:00
tools Fix 'cover' tox job 2015-09-21 15:09:22 +03:00
.coveragerc Fix 'cover' tox job 2015-09-21 15:09:22 +03:00
.gitignore Ignore git backup merge files 2015-08-28 12:48:36 +00:00
.gitreview Move from stackforge to openstack 2014-09-19 21:23:02 +00:00
.testr.conf Use oslotest.base.BaseTestCase as test base class 2015-01-04 08:43:52 +01:00
CONTRIBUTING.md Workflow documentation is now in infra-manual 2014-12-16 13:13:49 +01:00
HACKING.rst Convert files to use _LE and friends 2014-10-31 09:47:59 +01:00
LICENSE Initialize from cinder 2013-08-08 10:34:06 -04:00
MANIFEST.in Initialize from cinder 2013-08-08 10:34:06 -04:00
README.rst Adapt readme to usual structure 2015-01-23 08:18:06 +01:00
babel.cfg Initialize from cinder 2013-08-08 10:34:06 -04:00
openstack-common.conf Remove unused manila/openstack/common/eventlet_backdoor.py 2015-06-25 11:47:37 +02:00
pylintrc docs 2013-09-17 10:57:47 +03:00
requirements.txt Updated from global requirements 2015-09-18 20:43:19 +00:00
run_tests.sh Enable bashate during pep8 run 2015-03-18 13:40:03 +01:00
setup.cfg Scheduler changes for consistency groups 2015-09-05 18:21:17 -04:00
setup.py Updated from global requirements 2015-09-18 20:43:19 +00:00
test-requirements.txt Updated from global requirements 2015-09-08 01:02:41 +00:00
tox.ini Add py34 to test environment to tox.ini 2015-08-12 12:22:31 +03:00

README.rst

MANILA

You have come across an OpenStack shared file system service. It has identified itself as "Manila." It was abstracted from the Cinder project.

Getting Started

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

git clone https://github.com/openstack/manila.git

For developer information please see HACKING.rst

You can raise bugs here http://bugs.launchpad.net/manila

Python client

https://github.com/openstack/python-manilaclient.git