21 Commits

Author SHA1 Message Date
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
vponomaryov
f8e4ff56b1 Rewrited mox tests to mock (part 2)
This is second and last part of removing mox
module from manila's dependencies, that became deprecated.
Rewrote unittests for scheduler, fixed and enabled them.

Partially implements: blueprint replace-mox-with-mock
Change-Id: Ida60abaa287e42a42c59f900bb168992575e311e
2014-06-17 17:55:21 +03:00
Jenkins
5b1139326d Merge "Switch to Hacking 0.8.x" 2014-06-17 13:48:49 +00:00
Valeriy Ponomaryov
ea26ee3c9a Use testtools module instead unittest module
It allows us to use a bunch of skip
decorators, addCleanup method with
2.6 and 2.7 python versions.
Provides more strict usage of setUp
and tearDown methods.

Change-Id: I62144ba43d62e3becb90427d5d6600f97db458df
2014-06-16 09:19:37 +03:00
Valeriy Ponomaryov
f335f8accd Removed redundant dependency of hp3parclient
This dependency, at first, is unused,
and at second - was removed from
openstack requirements:
01ceffe54f
It breaks devstack installation on ci jobs.

Change-Id: I09a3ac8c7f64c6baef74454d98b03daf613cade9
2014-05-29 10:22:56 +03:00
Dirk Mueller
c6383f1f16 Switch to Hacking 0.8.x
This brings along Hacking requirements to match
other OpenStack projects. Since hacking already
requires the right pep8 pyflakes etc version,
those dependencies are not necessary to be specified
here.

Change-Id: Ifb575aa549bfd0288e44acda9a750ea40b9d14c2
2014-05-23 00:36:45 +02:00
Aleks Chirko
9312341359 Updated from global requirements
Change-Id: If99b11499a780f8beb81305f8c49753715a213e9
2014-02-04 19:24:42 +02:00
Monty Taylor
bbd21eb4cc Remove d2to1 dependency
Change-Id: I9e91070e61e00cbc7d99ff223e85c3c371f60566
2013-09-30 10:48:26 -04:00