57 Commits

Author SHA1 Message Date
OpenStack Proposal Bot
e9dfa37a0a Updated from global requirements
Change-Id: I91a2060a6634d6eebd331c29ed3f64a71a169121
2016-06-04 02:38:04 +00:00
OpenStack Proposal Bot
db2a5a7466 Updated from global requirements
Change-Id: I7ecb8f5af915803e9fa53b0dcc6dd76ce8ebd035
2016-05-30 20:41:21 +00:00
Goutham Pacha Ravi
8de817d16e Developer Reference: Adopt the openstackdocstheme
To allow for our developer reference to be consistent with
the rest of the openstack documentation, we need to import
and render this theme on our developer reference.

This gives users a consistent experience as they may
be acquainted with the rest of the OpenStack documentation
(Admin Guide, User Guide, API Guide etc.)
before perusing the Manila developer reference.

It also provides our devref the "log-a-bug" feature so
readers may bring any mis-information to our attention.

This patch is part of a series of commits to improve
in-tree documentation.

Change-Id: I0e4686a273c5bf45c1d57764cd4c312870b06d6e
Partially-implements: bp improve-manila-developer-docs
2016-05-05 17:15:41 +00:00
OpenStack Proposal Bot
b711e9e6d2 Updated from global requirements
Change-Id: Iafa1cbf4493b9f0d2f05377fe58b7d761c22b227
2016-04-30 18:04:19 +00:00
OpenStack Proposal Bot
08775106ce Updated from global requirements
Change-Id: Ie53bedc08522994e4dcd0baba4a3b1a7cf9faff2
2016-04-08 11:44:01 +00:00
vponomaryov
665f352132 Add caution to test-requirements
that says 'PyMySQL' and 'psycopg2' dependencies should not be removed
as they are used for DB migration tests. And code, that handles it, is
located in oslo_db lib.

Change-Id: Ib7141d568287a5499c3802d1a2d7015de0a5a89f
2016-03-23 20:35:53 +02:00
Thomas Bechtold
88c922ccde Move iso8601 from requirements to test-requirements
iso8601 is only used in manila/tests/api/test_extensions.py
so it's only needed for testing.

Change-Id: I78b064454a4381fd6fe65cf26c3e12cd6441d188
2016-03-14 10:06:31 +01:00
ting.wang
145fabe7dd Use ostestr to run unit test
The ostestr command provides a wrapper around the testr command.
By default it also has output that is much more useful for OpenStack’s
test including lists of all and failed tests and lists of the 10
slowest tests.
ref:
http://docs.openstack.org/developer/os-testr/ostestr.html

Change-Id: If005d1987b2a4e586cf35f0cc1d07739f84235d2
2016-02-18 23:18:44 +08:00
OpenStack Proposal Bot
e575c46656 Updated from global requirements
Change-Id: Id12f15a9e700cda601ebb0a6a63e5e971680bd59
2016-01-19 13:48:27 +00:00
LiuNanke
85082c5782 Clean up removed hacking rule from [flake8] ignore lists
We bump hacking>=0.10.0, and hacking removed some rules, for
the full list of rules please see [1]. So don't need them any more.

Hacking related commits:
Remove H904 in commit b1fe19ebebe47a36b905d709467f5e82521bbd96
Add H105 using author tags
Add H238 hacking no old style class
Add H501 hacking no locals
[1]https://github.com/openstack-dev/hacking/blob/master/setup.cfg#L30

Change-Id: I6a1f3c3ef22be0962ffb81a5da5660837552e5d7
2016-01-14 23:27:17 +08:00
OpenStack Proposal Bot
f416b30189 Updated from global requirements
Change-Id: Iffcf1cc94003c3bfeb0ed1ec9859d55307c9bbc5
2015-12-11 15:20:17 +00:00
OpenStack Proposal Bot
5212be9238 Updated from global requirements
Change-Id: I94e0c1b90d7ad19140d1e4ee7751aa9e2ca8678d
2015-12-03 15:04:08 +00:00
Jenkins
bd81350547 Merge "Add reno for release notes management" 2015-12-02 23:33:48 +00:00
OpenStack Proposal Bot
b2f1447f0c Updated from global requirements
Change-Id: If3c52abbbb9584594bf35bd73b39b7e51fd18de8
2015-12-01 06:06:03 +00:00
Thomas Bechtold
1dac1ac49e Add reno for release notes management
See mailing list announcement:

http://lists.openstack.org/pipermail/openstack-dev/\
        2015-November/078301.html

Change-Id: Iac50ba371fcf6cb890bddbef30d846304056f317
2015-11-26 07:16:03 +01:00
OpenStack Proposal Bot
8fe991af55 Updated from global requirements
Change-Id: Idf520d5c036468b4e639c8a5139db3f5cb456144
2015-11-25 17:14:53 +00:00
Gaurang Tapase
9c99814ce5 Fix usage of dependencies
Manila is broken is threee places, so fix them:
1) test 'test_misc' with WebOb 1.5

WebOb 1.5 was released at 2015-10-11. With this new version,
webob.exc.WSGIHTTPException() constructor now fails with a KeyError
when the HTTP status code is 0.

test_exceptions_raise() of test_misc tries to instantiate all
exceptions of manila.exception. The problem is that
ConvertedException uses a default HTTP status code of 0.

Modify the default HTTP status code of ConvertedException to 400 to
fix the unit tests.

2) Add dependency for 'testresources' that is required by migration
tests.

3) Remove 2 unit tests related to testing of oslo.policy lib
functionality that should not be tested in Manila. It started failing
because under-the-hood behaviour was changed in new realese 0.12.0

Closes-Bug: #1505153
Closes-Bug: #1505374

Change-Id: I0f28f3c3fb2c7eec1bafc3a617344990f86810cf
2015-10-13 13:50:21 +03:00
OpenStack Proposal Bot
6977b0196d Updated from global requirements
Change-Id: I3b897ad173ef27c9a12a5bbe5695657bb0a3bda0
2015-09-08 01:02:41 +00:00
Chandan Kumar
0838be5a09 Remove ununsed dependency: discover
Change-Id: I1cfc6830d98d25e749e9c42eb883677c29da11f9
2015-08-28 20:25:42 +05:30
OpenStack Proposal Bot
a290a9f65b Updated from global requirements
Change-Id: I839ef7a51491de83d31ebcac2b25c1131d5303d2
2015-08-04 14:22:51 +00:00
OpenStack Proposal Bot
0de9d3f993 Updated from global requirements
Change-Id: Ib9b639f3e8b9d53e1b7eb2f1ba28bfb4fb6f0102
2015-07-23 04:39:21 +00:00
OpenStack Proposal Bot
c3c3b5bf15 Updated from global requirements
Change-Id: I5431885ca975e36ba37afa1342c46f58aa8ed6e3
2015-07-17 16:13:46 +00:00
OpenStack Proposal Bot
bdecf2155e Updated from global requirements
Change-Id: I8f93ef21789c78d757a4bab3d5536b811595f492
2015-07-15 20:41:48 +00:00
OpenStack Proposal Bot
ae5213bce2 Updated from global requirements
Change-Id: I7f78c9395a3c8c93d84ba2378423e674d8c9d3a5
2015-07-12 15:18:42 +00:00
OpenStack Proposal Bot
8625fb1f55 Updated from global requirements
Change-Id: Ifa1dac55c7f6ac30f44522ce2be70cd32a831b72
2015-07-11 08:28:57 +00:00
OpenStack Proposal Bot
a778199f01 Updated from global requirements
Change-Id: Ib47d43d98ca8c8c91ff24f4095aabbe64730da6d
2015-07-06 04:12:25 +00:00
OpenStack Proposal Bot
1d4f7f74e9 Updated from global requirements
Change-Id: I56291a9abc6aca92503b2cd21772ce6060332ff2
2015-06-22 20:14:20 +00:00
Jenkins
5dca99a6e8 Merge "Switch from MySQL-python to PyMySQL" 2015-06-02 19:22:15 +00:00
OpenStack Proposal Bot
23906e9174 Updated from global requirements
Change-Id: I8e051158864dab5b3f77691b32eb8d8ec5fbe965
2015-05-29 22:45:50 +00:00
Jeremy Stanley
ac20f3d363 Switch from MySQL-python to PyMySQL
As discussed in the Liberty Design Summit "Moving apps to Python 3"
cross-project workshop, the way forward in the near future is to
switch to the pure-python PyMySQL library as a default.

https://etherpad.openstack.org/p/liberty-cross-project-python3

Change-Id: Ic5b8afd5968a3ea9cb32069d289f3c59729d776e
2015-05-20 01:03:59 +00:00
OpenStack Proposal Bot
5de635ec01 Updated from global requirements
Change-Id: Iacdbad46f186087e7e3d3bf6052807ea0536433f
2015-04-24 12:58:39 +00:00
OpenStack Proposal Bot
3d873d2400 Updated from global requirements
Change-Id: I72c160481111cebc6d573bdd7c000cab9623f4df
2015-04-07 21:53:11 +00:00
OpenStack Proposal Bot
ae2eec31ae Updated from global requirements
Change-Id: I26a22f6cfaf84d4523699bf9bfa5b017cdacb16e
2015-03-22 16:03:09 +00:00
Thomas Bechtold
6785cad994 Enable bashate during pep8 run
bashate checks shell script syntax (similar to pep8 for python). Fix
currently available scripts and enable the check for the scripts.

Change-Id: I33dc8c44a58f40e8bca9e29cd717caf46e5cd586
2015-03-18 13:40:03 +01:00
Shaun Edwards
9cc913ed53 EMC Isilon Manila driver
The Isilon Manila driver supports the following functionalities:
* Create/delete NFS/CIFS share
* Create/delete snapshot
* Allow/deny access to share
* Create share from snapshot

implements: blueprint emc-isilon-manila-driver

Change-Id: If5f064751120890afba0571bc2b407d141ba0323
2015-03-10 15:47:21 +00:00
Igor Malinovskiy
9c72d34df7 Fix metadata validation in share api
Currently validation method _check_metadata_properties()
expects that metadata parameter is a dict which contains
string keys and values, but this assumption is incorrect,
because user can specify key without value or vice versa.

Change-Id: I5cc863bb89f986815a4f6c1addf593f2da62530f
Closes-Bug: #1392827
2014-12-12 18:39:28 +02:00
OpenStack Proposal Bot
40b0ece323 Updated from global requirements
Change-Id: Ia92bf641ce4f9a567ad440a2d487ce55fbea2bc2
2014-11-20 14:06:11 +00:00
OpenStack Proposal Bot
59cdc70452 Updated from global requirements
Change-Id: I536eaabe7ebd7695dacef45a561a83f2db6d124a
2014-11-19 21:06:51 +00:00
OpenStack Proposal Bot
e1a6133f18 Updated from global requirements
Change-Id: Iea965ff051b96422529c9a2c065b332c88f0a529
2014-11-16 15:01:41 +00:00
OpenStack Proposal Bot
161afde62c Updated from global requirements
Change-Id: I88eb57fe51a259cbcfe819dd05997c607f1ceac1
2014-11-13 17:10:56 +00:00
OpenStack Proposal Bot
309e687a5e Updated from global requirements
Change-Id: I0b7d187160a5806a36975641157310f8ebf35193
2014-10-24 22:26:58 +00:00
Andreas Jaeger
0be4d42b22 Sync with global requirements
Sync with global requirements file so that manila uses the same
requirements as all other OpenStack projects.

Change-Id: I22383ab8d343eac51bae44132230a6526fa50489
2014-10-20 08:35:11 +02:00
Pete Zaitcev
c2f1d714f4 Use oslosphinx and remove local copy of doc theme
A packaging review in Fedora found that we had a copy of jQuery code.
Apparently, other OpenStack projects applied a patch to remove this
code, but Manila forked Cinder code from before. The across-the-board
change in OpenStack missed Manila, because we weren't incubated yet.

This patch is almost an exact copy of Cinder patch, but not cherry-
picked because of additional changes, such as the move from oslo.sphinx
to oslosphinx.

Patch is verified to produce readable documentation.

Change-Id: Id0b57f89ae6b63b26b7f0c3fa9af5a529e92ac69
2014-09-08 09:46:23 -06:00
Andreas Jaeger
9a5d5a97d2 warn against sorting requirements
Mark pbr/hacking as first projects.

For background see mail thread starting at:
http://lists.openstack.org/pipermail/openstack-dev/2014-September/044736.html

Change-Id: I64ae9191863564e278a35d42ec9cd743a233028e
Closes-Bug: 1365061
2014-09-04 16:49:19 +02:00
Andreas Jaeger
79cb1f7afc Sync requirements with global requirements
Sync requirements.txt and test-requirements from global
OpenStack requirements repository.

The oslo.db >= 0.4.0 is needed by the recent patch to fix
the testsuite (https://review.openstack.org/116192).

Change-Id: I429dee9caf8c32963da683d596e25b14f62f77ee
2014-08-23 02:29:03 +02:00
Julia Varlamova
f1f8ca0ad1 Use oslo.db in manila
Use oslo.db library instead of own implementation.

Oslo.db code contains different utils for work with db api, db session,
migrations, test classes for db testing, tools for automatic retry
db.api query if db connection was lost, etc.

Oslo.db code was tested better as it is currently used in many projects,
there will be no need in testing our own implementation.

In many cases our own implementation of work with db duplicates
oslo.db code.

Remove:
- manila/common/sqlalchemyutils.py;
- manila/db/sqlalchemy/utils.py;
- manila/db/sqlalchemy/session.py;
- manila/db/sqlalchemy/migration.py;
- DBError, wrap_db_error, InvalidUnicodeParameter exceptions;
- db_sync, db_version, db_version_control, _find_migrate_repo
function

and replace it with appropriate oslo.db functions.

Add 'joinedload' statement to db queries if necessary.

Fix unit tests, clean up test_migrations.py

Implements bp oslo.db

Change-Id: I48a4da797594cf020f67f78024bd0f86b5abd5ef
2014-07-23 16:26:14 +04:00
vponomaryov
16a04df3d0 Refactor test framework
Manila's test framework is pretty old and requires update.

Changes:
- usage of nose replaced with testr
- now all the tests are thread safe
- added new options for run_tests.sh, such as --concurrency, --debug, etc...
- new '--concurrency' option for run_tests.sh defaults to 1, examples:
    ./run_tests.sh  # will run in 1 thread
    ./run_tests.sh --concurrency 2  # will run tests in 2 threads
- added tools/colorizer.py for colorizing output of testrun with run_tests.sh
- tests running with tox use as much threads as cores available by default
- examples of testrun with tox:
    tox  # will run test suites defined with 'envlist' in tox.ini, now it is pep8,py26,py27
    tox -epy27  # amount of threads is equal to amount of cores
    tox -epy27 -- --concurrency=2  # amount of threads is 2
    tox -epy27 -- --concurrency=4  # amount of threads is 4
- Added 'Database' class to manila.test module, for more conveniant db testing
- updated policy file 'manila/tests/policy.json' to allow share-network actions
- removed nose-related requirements
- added new requirements for testrepository, subunit

With merge of this change all old installed virtual environments become
incompatible and should be removed with "rm -rf .tox .venv" before testrun.

Implements blueprint testr-with-unittests

Change-Id: I9579ecd538e29d478dbc12adc7dcc33fc668b397
2014-07-22 14:58:48 +03:00
Dirk Mueller
6f892ed590 Sync with global requirements
Get requirements in sync with global requirements again.
As this updates hacking to a more recent version, add
some blacklisting of hacking warnings to tox.ini to
get the gate passing. Those will be cleaned up
in followup commits.

Change-Id: I18f956d999db21be197ce35044623eaa22ed4185
2014-07-14 11:15:21 +02:00
Valeriy Ponomaryov
8e5da48361 Migrate to oslo.messaging instead of commom/rpc
Manila uses oslo-incubator/rpc as an RPC library.
During Havana, oslo/rpc was cleaned up and moved into
oslo.messaging with a more stable and well-defined API.

oslo-incubator/rpc considered as deprecated and should be
replaced with oslo.messaging in Manila.

Sum changes:

* New dependency oslo.messaging>=1.3.0 is required

* The new rpc module has init() and cleanup() methods which manage the
global oslo.messaging transport state. The TRANSPORT and NOTIFIER
globals are conceptually similar to the current RPCIMPL global,
except we're free to create and use alternate Transport objects.

* The rpc.get_{client,server,notifier}() methods are just helpers
which wrap the global messaging state, specifiy serializers and
specify the use of the eventlet executor.

* In oslo.messaging, a request context is expected to be a dict, so
RequestContextSerializer was added which can serialize to and from
dicts using RequestContext.{to,from}_dict()

* The allowed_rpc_exception_modules configuration option is replaced
by an allowed_remote_exmods get_transport() parameter. This is not
something that users ever need to configure, but it is something
each project using oslo.messaging needs to be able to customize.

* We maintain a global NOTIFIER object and create specializations of
it with specific publisher IDs in order to avoid notification driver
loading overhead.

* rpc.py contains transport aliases for backwards compatibility
purposes. setup.cfg also contains notification driver aliases for
backwards compat.

* messaging.ConfFixture is used in tests to override oslo.messaging
config options, rather than making assumptions about the options
registered by the library.

Partially-implements bp oslo-messaging

Change-Id: I42cd582f3e1ff96c8f6e8957122b8e9176b1771d
2014-07-03 18:59:33 +03:00
vponomaryov
08612d7524 Update manila's docs
After manila's fork from cinder, its docs were not
updated well.

This info is used by doc-builder, see doc/README.rst

Partially implements: blueprint manila-documentation

Change-Id: Ic97584db291b60505d5d310a517c2866fc6fcf5f
2014-06-23 19:19:28 +03:00