92 Commits

Author SHA1 Message Date
OpenStack Proposal Bot
b35e5ab80c Updated from global requirements
Change-Id: I8dd1e2580be9642837e5b1f4b70b3cd22ec7c321
2015-06-11 12:33:15 +00:00
OpenStack Proposal Bot
2e97c08711 Updated from global requirements
Change-Id: I6f3a3aee9af7752d2a2372d8177133925157dfb5
2015-05-15 03:34:56 +00:00
Jenkins
ee9f9e10a8 Merge "Replace suds test dependency with suds-jurko" 2015-05-14 02:24:53 +00:00
Thang Pham
4f63f7ff48 Switch to oslo_versionedobjects
oslo_versionedobjects was not made available until very
late in the Kilo cycle (i.e. near the end of kilo-3).
In order to make progress on cinder objects, a fork of
nova objects was made, so that proper trial and testing
could be done. The following patch makes the switch to
use oslo_versionedobjects.

Implements: blueprint cinder-objects
Change-Id: I883f387c8247e8d79da82016a624cef2180cde88
2015-05-13 08:36:53 -07:00
Victor Stinner
befc9da96e Replace suds test dependency with suds-jurko
suds-jurko is actively maintained (latest commit in december 2014) and supports
Python 3, whereas suds doesn't seem to be maintained anymore (last release in
2010).

suds-jurko is a drop-in replacement for suds, both packages provide the same
Python module.

suds-jurko is already in global requirements.

Change-Id: I646602624af7fbece277fe2305a3a541a456ed85
2015-05-12 12:14:49 +02:00
Walter A. Boring IV
aa7655df72 Add os-brick to cinder requirements.txt
This patch adds the os-brick pypi library to
Cinder's requirements.txt as a precursor to the
removal of cinder/brick from the codebase.

Change-Id: Ib0c0996421af1c52fe66df5479768addc40412ad
2015-05-07 11:55:40 -07:00
OpenStack Proposal Bot
a850c95067 Updated from global requirements
Change-Id: I289c236da7680e22539dad22b5f98c298e69a633
2015-04-24 12:56:59 +00:00
OpenStack Proposal Bot
c1702dfc55 Updated from global requirements
Change-Id: I6f506eaa69ba7ae26cd13403d0dec491848db3c6
2015-03-23 17:05:43 +00:00
Jay S. Bryant
c489747177 Move to the oslo.middleware library
This patch moves Cinder to using olso.middleware, updates us so
we are using the oslo_middleware namespace and syncs the latest
middleware code from oslo-incubator to support grenade jobs.

The details for the middleware sync from oslo-incubator are as follows:

Current HEAD in OSLO:
---------------------
commit e589dde0721a0a67e4030813e582afec6e70d042
Date:  Wed Feb 18 03:08:12 2015 +0000
Merge "Have a little fun with release notes"

Changes merged with this patch:
---------------------
__init__.py
  4ffc4c87 - Add middleware.request_id shim for Kilo
  4504e4f4 - Remove middleware

catch_errors.py
  a01a8527 - Use oslo_middleware instead of deprecated oslo.middleware
  ce8f8fa4 - Add middleware.catch_errors shim for Kilo
  4504e4f4 - Remove middleware
  5d40e143 - Remove code that moved to oslo.i18n
  76183592 - add deprecation note to middleware
  463e6916 - remove oslo log from middleware
  fcf517d7 - Update oslo log messages with translation domains

request_id.py
  a01a8527 - Use oslo_middleware instead of deprecated oslo.middleware
  66d8d613 - Fix oslo.middleware deprecation error
  4ffc4c87 - Add middleware.request_id shim for Kilo
  4504e4f4 - Remove middleware
  76183592 - add deprecation note to middleware
  d7bd9dc3 - Don't store the request ID value in middleware as class variable

Some notes on this change.  It is based on the change made in Nova:
https://review.openstack.org/#/c/130771 and is the recommended method
for cleaning up the unused portions of middleware from oslo-incubator,
moving to the oslo.middleware library and not breaking grenade in the
gate.

Change-Id: Ia99ab479cb8ef63a0db1a1208cc2501abba6132c
2015-03-12 13:57:23 -05:00
Ivan Kolodyazhny
5980da5d88 Use oslo.log instead of oslo-incubator
log module was removed from oslo-incubator after oslo.log released.

Change-Id: I205d0625c502cb462919edc76d12091edcc21b1b
Implements: blueprint port-oslo-incubator-to-oslo-log
Partial-Bug: #1381563
2015-03-11 21:45:04 -05:00
Jenkins
22a2bb2057 Merge "quobyte: remove dependency to xattr" 2015-02-18 07:31:33 +00:00
Julien Danjou
abd528ae86 Remove useless requirement on wsgiref
Change-Id: I5f89eb4e3b2b3207ec5e92d35d7e3e3487376677
2015-02-16 11:58:37 +01:00
Danny Al-Gaaf
07ff70a23b quobyte: remove dependency to xattr
The Quobyte driver introduced an new dependency to xattr
python binding. This driver is the only consumer of xattr.

Instead of introducing new dependencies call getfattr binary
as already done in the quobyte nova volume driver.

Closes-Bug: 1420332
Co-Authored-By: Marc Koderer <marc@koderer.com>

Change-Id: I83f97310313cf7a603996ae64327002cdf0ad5fc
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-02-11 09:29:05 +01:00
Vipin Balachandran
960cbb21e3 VMware: Integrate VMDK driver with oslo.vmware
The common code between various VMware drivers was moved to
oslo.vmware library during Icehouse release. The VMDK driver
should be updated to use this library. Changes are mostly
replacing import statements and removing redundant modules
and corresponding test cases.

Summary of changes:
* Replace api with oslo.vmware.api
* Replace vim with oslo.vmware.vim
* Replace pbm with oslo.vmware.pbm
* Replace io_util with oslo.vmware.image_transfer
* Replace vmware_images with oslo.vmware.image_transfer
* Replace read_write_util with oslo.vmware.rw_handles
* Remove error_util and use oslo.vmware.exceptions
* Move VMDK driver specific exceptions to a new module
  'exceptions'
* Replace PBM WSDL files with the corresponding files in
  oslo.vmware
* Replace PBM related methods in volumeops with the
  corresponding ones in oslo.vmware.pbm

Implements: blueprint vmdk-oslo.vmware
Change-Id: Ib484fabffb8ef1a56051d7e1bed5218b633306bb
2015-02-06 15:27:29 +05:30
OpenStack Proposal Bot
63001a5c10 Updated from global requirements
Change-Id: I97eb25f01f3079245ede66887f43622b22d9accc
2015-02-05 20:11:10 +00:00
OpenStack Proposal Bot
da61d1888c Updated from global requirements
Change-Id: I77d92824c867cabfe505f169e1a224ac805d650f
2015-01-28 16:31:40 +00:00
Jenkins
8e241a4ffe Merge "Remove argparse from requirements" 2015-01-23 21:01:44 +00:00
Julien Danjou
3bf22b0fe8 Remove argparse from requirements
Since Cinder does not support Python 2.6 anymore and that argparse is
native in Python >=2.7, no need to pip install it.

Change-Id: I1701a3f6584c5fc827387b185d7182d3011062ca
2015-01-23 12:23:46 +01:00
John Griffith
eff6a51a70 Add retrying lib from global requirements
Submitted a retry decorator and it was pointed out that
the retrying library was already in global-requirements,
it would probably be good to leverage this and use it rather
than roll our own, so let's add it to our version of requirements
and then we can look at whether using a decorator or just
leveraging the lib is the right way to go.

Change-Id: Ieea042e5cd65b7c7bfa803996f60856fcae054bf
2015-01-22 17:21:27 -07:00
OpenStack Proposal Bot
1831b61aa0 Updated from global requirements
Change-Id: I1859c16eb9bf00bdffe64a7f64aae575a1b916ae
2015-01-20 16:43:20 +00:00
OpenStack Proposal Bot
7d925cc7ec Updated from global requirements
Change-Id: If4911d8a678ecffee79b92d53eb1d8e1ada7a26f
2015-01-16 01:10:17 +00:00
OpenStack Proposal Bot
2de1097e75 Updated from global requirements
Change-Id: Ifd1c94a3d90dc69abac47a100734b84ea9ba8243
2015-01-15 21:42:05 +00:00
Anthony Lee
59bf887ea9 Add driver filter and evaluator for scheduler
This patch adds a new filter for the cinder scheduler that
can interpret two new properties provided by backends,
'filter_function' and 'goodness_function'.  A driver can rely
on cinder.conf entries to define these properties for a backend
or the driver can generate them some other way.  An evaluator is
used by the filter to parse the properties.  The 'goodness_function'
property  is used to weigh qualified backends in case multiple ones
pass the filter. More details can be found in the spec:
https://review.openstack.org/#/c/129330/

Implements: blueprint filtering-weighing-with-driver-supplied-functions
DocImpact:  New optional backend properties in cinder.conf.
            New filter and weigher available for scheduler.
Change-Id: I38408ab49b6ed869c1faae746ee64a3bae86be58
2015-01-06 23:28:47 +00:00
Yuriy Nesenenko
dfaaa2ecbd Replace oslo-incubator with oslo_context
Context currently being moved out of the incubator to a standalone project.

Change-Id: I4f25ed35a88f82ee934cc35872c66d7a38256408
Closes-Bug: #1210261
2015-01-02 15:18:10 +02:00
Jenkins
8da40b4eda Merge "Update global requirements" 2014-12-18 04:22:26 +00:00
Jenkins
970c572427 Merge "First version of Cinder driver for Quobyte USP" 2014-12-16 18:57:47 +00:00
John Griffith
10c63e4c92 Update global requirements
Manual push to sync global req.  Just need the setuptools
pin, further detail here: http://goo.gl/c9RmSE

Change-Id: I75e7c8829153e10b81d2ce5dbfca84fdde14a3ff
2014-12-15 14:40:03 -07:00
Silvan Kaiser
49d9276418 First version of Cinder driver for Quobyte USP
Supported Operations are:
- Create Volume
- Delete Volume
- Attach Volume
- Detach Volume
- Extend Volume
- Create Snapshot
- Delete Snapshot
- List Snapshots
- Create Volume from Snapshot
- Create Volume from Image
- Create Volume from Volume (Clone)
- Create Image from Volume

The driver uses a file-based interface to access the configured
Quobyte volume. Therefore, the driver is similar to the existing
drivers NFS and GlusterFS.

Due to the similarities, I reused the snapshot code from the GlusterFS
driver. Gluster, thanks for that! I've kept the "Red Hat" copyright in
the header to credit you properly.

All driver functions are covered by unit tests. Snapshot tests were
taken over from test_glusterfs.py. New tests are written using "Mock"
instead of "mox".

Certification tests: https://bugs.launchpad.net/cinder/+bug/1401471

Implements: blueprint quobyte-usp-driver
Change-Id: I7ca13e28b000d7a07c2baecd5454e50be4c9640b
2014-12-12 15:31:51 +00:00
OpenStack Proposal Bot
766de4bad8 Updated from global requirements
Change-Id: I305473aa6a64ea685a7e23aace3c91df983e8fb5
2014-12-08 16:17:14 +00:00
OpenStack Proposal Bot
78dbe1957b Updated from global requirements
Change-Id: I8f8b1d782549d72e1ff0e42ae36fc271f7eeea04
2014-12-05 23:59:27 +00:00
OpenStack Proposal Bot
433c836e55 Updated from global requirements
Change-Id: I9b0933979b0df44d8ccd46699ee58acdda2df14b
2014-12-05 16:32:54 +00:00
OpenStack Proposal Bot
aab739d419 Updated from global requirements
Change-Id: I58714f27507e2ec1117e23577ab082341b7a032b
2014-11-23 09:34:17 +00:00
ChangBo Guo(gcb)
372df8a75b Switch Cinder to use oslo.concurrency
Let's switch to the newly released oslo library for the
processutils and lockutils. We use the config fixture(s) to
specify disable_process_locking and lock_path in the CONF
variable of oslo.concurrency library for correctly setting the
flags.

Change-Id: Ib8f3aac5449eba66ea84bc5cad8aea061adab276
2014-11-20 22:21:46 +08:00
ChangBo Guo(gcb)
7d341e267f Use oslo.utils
oslo.utils library now provides the functionality previously in
oslo-incubator's excutils, importutils, network_utils, strutils
timeutils, units etc. Some of these outdated modules will still be
around for a while until all other oslo modules that use them have been
updated in future commits.

Change-Id: Idee8600dfe42e5977b8fb824e91afff7e9119981
2014-11-20 22:17:47 +08:00
ChangBo Guo(gcb)
69548a0b9f Switch to oslo.serialization
Very simple import change in each file, just touches a whole
lot of files. jsonutils has graduated into a standalone library
and has been removed from the oslo-incubator repository.
We should be using the library for all projects.
This commit doesn't change files synced from oslo-incubator, and
doesn't remove the 'module=jsonutils' in openstack-common.conf.
Another sync commit will cover that.

Change-Id: I56ea380a85e8a3c1b42b2425430fc28409937365
2014-11-19 15:49:03 +08:00
OpenStack Proposal Bot
78504a8fcc Updated from global requirements
Change-Id: Ib06608cdb8ce099ddc5f5f92aa33e6ba3c68e079
2014-11-10 22:58:13 +00:00
ZhiQiang Fan
8c477b1e3d Disable python-barbicanclient 3.0.0 version
python-barbicanclient 3.0.0 has introduced cliff module, but pins it
to 1.6.1, while global-requirements set it to >=1.7.0, now the whole
OpenStack projects depends on higher version of cliff, but
python-barbicanclient is needed by cinder, then grenade test will
fail because: pkg_resources.DistributionNotFound: cliff==1.6.1

As long as python-barbicanclient maintainers don't provide a patch
for 3.0.0 (which seems not happen FMPOV), we need to disbable this
version.

Change-Id: I02f055ae89989cef2bd0264c60279a1f1a141e01
Related-Bug: #1388414
2014-11-02 02:18:35 +08:00
OpenStack Proposal Bot
fe5b75dc0b Updated from global requirements
Change-Id: I8ad37eb2e149aa1bb51ec71988e8dbbf6243118e
2014-10-15 23:40:34 +00:00
OpenStack Proposal Bot
7766ff9894 Updated from global requirements
Change-Id: I5e9c61dbf0751c90a191d644e515af5838e96439
2014-10-07 19:11:27 +00:00
OpenStack Proposal Bot
e4cbcd8f29 Updated from global requirements
Change-Id: I948862c12267ac530c5aa136ac490b134b81d41d
2014-09-18 13:58:41 +00:00
OpenStack Proposal Bot
56ec6c0135 Updated from global requirements
Change-Id: Ie85ed9ad591edc3e38352fe0c7ee751a43557a38
2014-09-15 16:58:10 +00:00
Jenkins
f852d969c0 Merge "Update oslo.config and oslo.messaging requirements" 2014-09-13 02:28:58 +00:00
Eric Harney
eb01ccba28 Block sqlalchemy-migrate 0.9.2
Breaks unit tests.

Closes-Bug: #1368391

Change-Id: Ic814a91038800201603baf33ca40e4586944343b
2014-09-11 16:53:49 -04:00
Eric Harney
182806887e Update oslo.config and oslo.messaging requirements
Need to land the sample config update with these
updates so that the global requirements update can
pass tests.

Change-Id: Iaae306f05098165d80a7398a22038b322e9f7935
2014-09-11 10:39:43 -04:00
Dolph Mathews
6ea28dca60 warn against sorting requirements
Change-Id: I64ae9191863564e278a35d42ec9cd743a233028e
Closes-Bug: 1365061
2014-09-03 11:56:50 -05:00
Boris Pavlovic
a8fa3ceb1e Integrate OSprofiler and Cinder
*) Add osprofiler wsgi middleware
This middleware is used for 2 things:
1) It checks that person who want to trace is trusted and knows
secret HMAC key.
2) It start tracing in case of proper trace headers
and add first wsgi trace point, with info about HTTP request
*) Add initialization of osprofiler at start of serivce
Set's olso.messaging notifer instance (to send notifications to Ceilometer)

*) Fix fake notifier

NOTE to test this:

You should put to localrc:

  RECLONE=no

  CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler

  ENABLED_SERVICES+=,ceilometer-acompute,ceilometer-acentral,ceilometer-anotification,ceilometer-collector
  ENABLED_SERVICES+=,ceilometer-alarm-evaluator,ceilometer-alarm-notifier
  ENABLED_SERVICES+=,ceilometer-api

You should use python-cinderclient with this patch:

  https://review.openstack.org/#/c/103359/

Run any command with --profile SECRET_KEY

  $ cinder --profile SECRET_KEY create 1
  # it will print <Trace ID>

Get pretty HTML with traces:

  $ osprofiler trace show --html <Profile ID>

note that osprofiler should be run from admin user name & tenant.

Change-Id: Ic3ce587946eaa7e6b19cf35a2cc905ae5de29dd3
2014-08-21 02:19:36 +04:00
Brianna Poulos
02f2b996bf Adds barbican keymgr wrapper
Adds a barbican keymgr wrapper to the key manager interface in
cinder.  This allows barbican to be configured as the key manager
for encryption keys in cinder.  The wrapper translates calls from
the existing key manager interface to python-barbicanclient.

There are two new configuration variables: encryption_auth_url
(the authentication URL for the encryption service) and
encryption_api_url (the api URL for the encryption service).

Change-Id: Ifd0d9b073d7f1c3c92d318c20a080b253008b50c
Implements: blueprint encryption-with-barbican
DocImpact
2014-08-18 09:38:57 -04:00
James Carey
ac33ad9ec9 Use oslo.i18n
oslo.i18n provides the i18n function that were provided by
oslo-incubator's gettextutils module.

Change-Id: I1f361a8321fb02f03b4f3f3e2ef688fcf19514a3
2014-08-08 17:26:41 -05:00
Brant Knudson
1917e2ff07 Use auth_token from keystonemiddleware
auth_token middleware in python-keystoneclient is deprecated and has
been moved to the keystonemiddleware repo.

Closes-Bug: #1342274
Change-Id: I1aadbe24db63eb2507b088cd53886d7f2e192cab
2014-08-06 18:30:51 +10:00
Jenkins
6c22f2d3b5 Merge "Bump oslo.rootwrap to 1.3.0.0a1 for Cinder" 2014-08-04 22:20:34 +00:00