187 Commits

Author SHA1 Message Date
Julien Danjou
68fe413433 Remove useless requirements
This patch cleans up the requirement list to remove old modules that are
not used anymore directly by Nova.

Change-Id: Ifb0548aff985669ea0c4df470b8881edc3f2c26c
2015-01-19 14:41:20 +01:00
Joe Gordon
b39df562c7 Move to hacking 0.10
Release notes:
http://git.openstack.org/cgit/openstack-dev/hacking/tag/?id=0.10.0

* Remove references in tox.ini to removed rules
* Fix minor changes (H501)
* Clarify that H306 (imports in alphabetical order shouldn't be skipped)
* Ignore H238: check for old style class declarations
* Temporary skip W292, fix in next patch.

Change-Id: I6d990a564df6a312bd09b2a152315bbdba732082
2015-01-10 21:45:08 +00:00
Daniel P. Berrange
72de6ac4f0 remove all traces of pylint testing infrastructure
The pylint tests have been broken for several months and
the Jenkins job has also been disabled. There has been
no sign of attempts to address this, so just delete what
remains of the pylint support so developers don't mistakenly
think it is supposed to work with patches they are submitting.

Change-Id: Ifacc99e45acb0e9a72be6c31113e0cf073354f02
2015-01-08 11:56:45 +00:00
Matthew Treinish
7a543bcec8 Switch to tempest-lib's packaged subunit-trace
This commit removes the local copy of subunit-trace in nova and uses
the packaged version of the utility in tempest-lib.

Change-Id: I1ed2fea9ff3d8194628b722684492f8ba7a3cabb
2015-01-06 21:25:56 +00:00
Davanum Srinivas
f9c96e1d35 Switch to moxstubout and mockpatch from oslotest
The fixtures in nova/openstack/common will be removed as
they have been removed from oslo-incubator. We should use
the fixtures from oslotest.

Note that oslotest uses mox3 instead of mox and some of the
tests were failing as a result which have been fixed in this
review. Only the failing tests have been fixed, so you will
see some tests use a mix of mock and mox3 as a result.

Based on feedback from Nova core, all existing references
to 'import mox' have been switched over to mox3 as well.

Change-Id: Ifa9dbb6f9bb1a358d815ae80cf928b65d5dcf5bd
2014-12-02 08:03:42 -05:00
OpenStack Proposal Bot
ead1c2abaa Updated from global requirements
Change-Id: Iafc853662d0ab6642f5468bd2cdba1eb86f808a5
2014-11-20 14:09:43 +00:00
Jenkins
c51673f384 Merge "Use session in cinderclient" 2014-11-20 12:27:14 +00:00
OpenStack Proposal Bot
d8215946e8 Updated from global requirements
Change-Id: Ia0f0031936a93220b1eead193078d61e75080055
2014-11-18 19:42:49 +00:00
Jamie Lennox
4919269542 Use session in cinderclient
Use the common session loading parameters and the session object for
talking to cinder.

There are some related changes in this patch.

Firstly auth_token middleware now provides an authentication plugin that
can be used along with the session object to make requests under the
user's authentication. This will largely replace the information
required on the context object.

This authentication plugin is not serializable though and so it cannot
be transferred over RPC so we introduce a simple authentication plugin
that reconstructs the required information from the context.

When talking to cinder we now create a global session object (think of
this like keeping open a connection pool object) and use the
authentication plugin to send requests to cinder.

I also condense the cinder tests as they are largely copied and pasted
between v1 and v2 and this solves fixing them in two places.

DocImpact: Renames cinder's timeout, insecure and CA certificates
parameters to the parameters used by the common session object. Adds
options for using client certificates with connection.

Change-Id: I7afe604503b8597c16be61d2a66a10b94269a219
2014-11-18 09:46:25 +10:00
OpenStack Proposal Bot
ec64294a2e Updated from global requirements
Change-Id: Ibf3abb2cf0ca3fc18fb8fc7931657bed7ed51924
2014-11-13 22:32:42 +00:00
OpenStack Proposal Bot
296b27e364 Updated from global requirements
Change-Id: I0f3cb3023952f889650c3ebbd0fb6aee5861898d
2014-11-10 23:02:10 +00:00
OpenStack Proposal Bot
82a94bb70e Updated from global requirements
Change-Id: I11c99071cab59458a093485aa903b5fff9b8c1d5
2014-10-28 11:50:22 +00:00
OpenStack Proposal Bot
49b339d61c Updated from global requirements
Change-Id: I0143a9659a2dafaacf687f117b77a627e468a106
2014-10-13 18:48:45 +00:00
OpenStack Proposal Bot
05a9337c8d Updated from global requirements
Change-Id: Ib0b48969350c16427e05470edcf1d240819798fb
2014-09-19 18:20:40 +00:00
OpenStack Proposal Bot
63ad39a90b Updated from global requirements
Change-Id: Ia631e585f9133f4d2f606394a6ffe47c323a9242
2014-09-13 07:26:01 +00:00
Michael Davies
e3fe96d71a Import Ironic Driver & supporting files - part 1
Import the Ironic virt driver and supporting files (client lib wrapper
and state mapping), as well as relevant unit tests, as of commit
da967d77894be6f23d81fb5cc948f9d13898ba84

This is the dicing up of review/103167 into smaller chunks
ready for review.

Change-Id: If1f51c97212f687dd0d4d4044e9dbf7a90335e75
Co-authored-by: Adam Gandelman <adamg@ubuntu.com>
Co-authored-by: Andrey Kurilin <akurilin@mirantis.com>
Co-authored-by: ChangBo Guo(gcb) <eric.guo@easystack.cn>
Co-authored-by: Chris Behrens <cbehrens@codestud.com>
Co-authored-by: Chris Krelle <nobodycam@gmail.com>
Co-authored-by: David Shrewsbury <shrewsbury.dave@gmail.com>
Co-authored-by: Devananda van der Veen <devananda.vdv@gmail.com>
Co-authored-by: Dmitry Tantsur <dtantsur@redhat.com>
Co-authored-by: Jim Rollenhagen <jim@jimrollenhagen.com>
Co-authored-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
Co-authored-by: Matthew Gilliard <matthew.gilliard@hp.com>
Co-authored-by: Mikhail Durnosvistov <mdurnosvistov@mirantis.com>
Co-authored-by: Pablo Fernando Cargnelutti <pablo.fernando.cargnelutti@intel.com>
Co-authored-by: Robert Collins <rbtcollins@hp.com>
Co-authored-by: ryo.kurahashi <kurahashi-rxa@necst.nec.co.jp>
2014-09-05 19:00:12 -04:00
Dolph Mathews
d2ea835147 warn against sorting requirements
Change-Id: I64ae9191863564e278a35d42ec9cd743a233028e
Closes-Bug: 1365061
2014-09-03 11:49:54 -05:00
OpenStack Proposal Bot
aae07caffc Updated from global requirements
Change-Id: I07afee130b7e1a362597784e8e31dc35e6f74674
2014-08-22 23:33:29 +00:00
OpenStack Proposal Bot
c71ef8e109 Updated from global requirements
Change-Id: Ide162a1145a2c8b67546812fbfcdc24a5753818b
2014-07-28 19:51:31 +00:00
Clark Boylan
8f505b8526 Stop depending on sitepackages libvirt-python
We can install libvirt-python bindings from pypi now because the libvirt
devs are supporting pypi packages and the version of libvirt we are
testing nova master against is new enough to link against that pypi
package.

Making this switch will better isolate nova test environments as all
dependencies can be installed without any site packages leaking into
virtualenvs. It will also make the dependency on libvirt-python a bit
more explicit.

Change-Id: I2890702869f05a02ad5e2ecb419db06433231b36
2014-07-25 12:36:46 -07:00
Jenkins
101d16237c Merge "Move oslotest to test only requirements" 2014-07-14 03:21:10 +00:00
OpenStack Proposal Bot
998286a4f0 Updated from global requirements
Change-Id: I4884005a65e9992447587588bac89b85b087bc4a
2014-06-17 15:00:18 +00:00
Joe Gordon
518b2766ba Bump hacking to 0.9.x series
Hacking 0.9.0 had a minor bug so require 0.9.1 or higher.

In order to keep this patch to just a requirements bump, ignore new and
stricter hacking rules that are being triggered. Fixing up the code and
turning these on is out of scope of this patch and is for future patches.

Change-Id: Iafbd4adae8c6b446d53b62dfc490eab8e76a43ac
2014-06-10 09:56:31 -07:00
Dirk Mueller
111b4cc967 Move oslotest to test only requirements
oslotest is only used for unit testing, so
it shouldn't be in requirements.txt

Change-Id: I5073fbd93712072cec8598663590e35fc2edd08d
2014-05-30 13:00:54 +02:00
OpenStack Proposal Bot
c8d4e892d0 Updated from global requirements
Change-Id: Icdb6e17edab010bef272dd0bf5b20973ba759282
2014-05-29 16:03:31 +00:00
OpenStack Jenkins
c981ac8e71 Updated from global requirements
Change-Id: Id8aa2fe07afd2325f28c63bcb76fff3d8b4d376f
2014-02-24 22:28:31 +00:00
Ben Nemec
c926216a9b Replace oslo.sphinx with oslosphinx
oslosphinx is now available as a replacement for oslo.sphinx that
won't conflict with oslo.config in virtual envs.

Change-Id: I7c116f816af895261e76af385ee3e9288e6fa70f
Closes-Bug: #1277168
2014-02-12 16:45:49 +00:00
OpenStack Jenkins
d9089dae9b Updated from global requirements
(Also add the sphinx issue which wasn't in the automatic job and
blocked this from landing.)

Change-Id: I94bc14b0ce448ea7a103a6faab73c29b38fbdf3d
2013-12-10 18:02:18 -05:00
Monty Taylor
446967ac0c Updated from global requirements
Change-Id: Ibf423f14a5c37aa298b2115bfd4936f660c6f530
2013-09-05 11:12:57 -04:00
Matt Riedemann
c8ec991483 Add mock to test-requirements
There are several changes which depend on using mock rather than mox for
unit tests:

https://review.openstack.org/#/c/42474/
https://review.openstack.org/#/c/43161/

And the general trend seems to be to move from using mock over mox for
new tests (see blueprint mox-to-mock-conversion).

And given mock is listed in the global-requirements.txt file in the
openstack/requirements project, we should require mock for nova so we
can start using it.

Change-Id: Iaa0f233c28de2f92a237ee6d089858ee10bc6d2f
2013-08-28 19:30:49 -07:00
Joe Gordon
27b96675f2 Upgrade to Hacking 0.7
There was a bug in hacking 0.6 that broke H202, assertRaises Exception
too broad, so switch to Hacking 0.7 and fix the one H202 bug.

Change-Id: Ia3fb22d1524022479d7068cb84a3bdf7ca19f408
2013-08-15 15:56:02 -04:00
Rick Harris
a134850886 Catch ldap ImportError
Since the `ldap` module isn't a requirement, we need to guard against it not
being present.

One reason this is needed is that we generate sample configs by walking the
module import tree. If a module isn't importable--because a depenency isn't
met, for example--the module's configs are omitted from the sample config,
requiring the developer to manually add them back.

Fixes bug 1208560

Change-Id: Ie23b7fad118ecadabf7e36703934fa933f4e8c50
2013-08-08 17:38:20 +00:00
Joe Gordon
dea5ce73a8 Start using hacking 0.6
So we can start using new hacking 0.6 checks.

Since hacking 0.6 pins pep8, pyflakes and flake8 they can be removed
from test-requires. For any unfixed checks list them in tox.ini

Fix a H103, 'Header does not match Apache 2.0 License notice' that
leaked in

Change-Id: I652fe3270f1c37afdd386bfae7c4b27b6abcfa06
2013-07-25 12:15:17 -04:00
Julien Danjou
923a7eeaa3 Check that the configuration file sample is up to date
We added this check recently to Ceilometer, and it helps a lot to keep this
file always up to date and not falling behind.

Change-Id: I5ad2c6366032a39c2e55dd11a16b9f1780ab9ed0
2013-07-18 20:22:43 +02:00
Doug Hellmann
47500553d9 Use oslo.sphinx and remove local copy of doc theme
Use the new oslo.sphinx version of the OpenStack doc
theme instead of copying it into this repo.

blueprint oslo.sphinx

Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Change-Id: I0bd91f7bb43f97b99051fed65b75fc05d5149cc8
2013-07-06 13:18:04 -04:00
Monty Taylor
8a421f3821 Remove explicit distribute depend.
Causes issues with the recent re-merge with setuptools. Advice from
upstream is to stop doing explicit depends.

Change-Id: Ib2c68618368c766e7444e45074bddb01b29752d3
2013-06-11 11:37:19 -07:00
Ruby Loo
5740920bb3 Rename requires files to standard names.
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.

Change-Id: I68ece8406fb1d4e082a42db8e76e17b1aaa7e775
Fixes: bug #1179008
2013-05-22 20:12:08 +00:00