19830 Commits

Author SHA1 Message Date
Mark McLoughlin
c73d15d347 Remove unused wrap_errors decorator
Only used by rescue extension in nova.

Change-Id: I3ade99405736bf8ffb8891a8d53c02905501ae44
2012-07-17 04:18:40 +01:00
Mark McLoughlin
23df265037 Remove unused get_{id,version}_from_href()
The former is only used in the compute API in Nova to e.g. get
an image or flavor ID from a client supplied ref.

The latter is unused even in Nova since the removal of the 1.0
API.

Change-Id: I4e00ca816820cb51c0ab3d4d864766d981854939
2012-07-17 04:10:18 +01:00
Mark McLoughlin
b79ad1a950 Remove unused metadata serialization
Only used by the compute API in Nova for e.g. images and server
metadata.

Change-Id: I223aca1a1c8e35c9339107e5c11bdd8a39968681
2012-07-17 04:06:19 +01:00
Mark McLoughlin
03700f12f3 Remove unused raise_http_conflict_for_instance_invalid_state()
Only used by the compute API in Nova.

Change-Id: I3b2dfa33b4bd1523e13ddb5401bc0397df7466ef
2012-07-17 04:04:58 +01:00
Mark McLoughlin
fbf1ee2069 Remove unused OverLimitFault
Only used by compute limits in Nova.

Change-Id: I065ca64e060acc0773189f1497fcc54041621f39
2012-07-17 04:00:51 +01:00
Ghe Rivero
da97aa46d8 Remove old flagfile support
Cherry-picks 7e3e9b8 from Nova.

Change-Id: Id5a0ffabf7c6eab0bbda1b130a39a6581b26e350
2012-07-16 21:52:59 +01:00
Zhongyue Luo
78918b8861 Misused and not used config options
Cherry picks dc9c3cb from Nova.

Fixes bug #1000071

[nova.api.sizelimit.py]
osapi_max_request_body_size: BoolOpt -> IntOpt

[nova.rpc.__init__.py]
allowed_rpc_exception_modules: IntOpt -> ListOpt

[nova.volume.driver.py]
num_shell_tries: StrOpt -> IntOpt
num_iscsi_scan_tries: StrOpt -> IntOpt

[nova.volume.driver.py]
san_thin_provision: 'true' -> True
san_is_local: 'false' -> False

Change-Id: If283dd7c4feba69c07bd483acd14f45c2659b743
2012-07-16 21:49:38 +01:00
Rick Harris
9929f2b2a1 Pass 'cinder' project into ConfigOpts
Cherry-picks fb96f7d from Nova.

Change-Id: I1a11e8fd6a56b2336457f7df178c2b3c187246c3
2012-07-16 21:47:37 +01:00
Mark McLoughlin
cba4583312 Sync to newer openstack.common.cfg
Cherry picks e0d891e from Nova.

Changes since last sync are:

 * New ConfigOpts.find_file() for locating conf files
 * Support for directory source of config files
 * Provide file extension when when looking for files
 * Some refactoring of the cfg cache
 * Add caching to openstack.common.cfg

Change-Id: If9852d0431093d590252bb704e934a4a56ef0263
2012-07-16 21:32:21 +01:00
Zhiteng Huang
519bd2451d Convert Cinder to use openstack-common timeutils
This patch is part of effort to get Cinder to use openstack-common
package.  This part is to replace time related functions in utils.py
with 'timeutils' module.

Implement blueprint cinder-common-timeutils

Change-Id: Ic5e9e317a95a7399f0604823eec76b3642a0c1b1
2012-07-13 16:24:44 +08:00
Jenkins
008cad1428 Merge "Updated HpSanISCSIDriver to use initialize/terminate methods." 2012-07-12 20:03:42 +00:00
John Griffith
c3bc1aa3a6 Do not duplicate nova docs in cinder
* This modifies the index.rst file to give interim info about cinder
* We were regenerating the nova docs copied over which was bad!
* Fixes bug 1022315

Change-Id: I46531976f3e6521cec69cc13276d328d6c2d2da3
2012-07-12 13:11:54 -06:00
John Griffith
b46a0afc37 Remove unused db api methods
* Implements cinder blueprint remove-extra-dbapi-methods
  * Related to cinder initial-db-cleanup:
      Remove db api methods associated with removed tables
	  Modify/Remove tests associated with removed tables
	  Remove non-existing db API calls from volume/api

Change-Id: I60e0c6ffad9c78a29d56a27a04e9ec5ebaa1f251
2012-07-09 14:30:03 -06:00
John Griffith
263d7b9054 Create single initial Cinder DB migration file
* Implements blueprint initial-db-cleanup
 * Sets initial migration
 * Removes unused tables that were brought in from nova
 * Condenses db migrations into the single initial migration/creation
 * Add explicit mysql set InnoDB in UTF8 loop
 * Folow up patches include:
 *    Remove unused db API calls
 *    Fix/Remove affected tests

Change-Id: If24b00747dbbff7037b7aca39602d5f0b1c6aa50
2012-07-05 19:10:50 -06:00
Zhiteng Huang
c7690fc53d Updated HpSanISCSIDriver to use initialize/terminate methods.
This is based on Nirmal Ranganathan's patch for Nova-volume, which
added a new key 'host' for initialize/terminate volume connection
information in nova to fix bug 992729.

HpSanISCSIDriver should adopt the change in order to work properly.
Also added missing unit tests for the HpSanISCSIDriver.

Fixes bug 992729.

Change-Id: I9584811a340799161d8c9ae88b1def282380c9ad
Signed-off-by: Zhiteng Huang <zhiteng.huang@intel.com>
2012-07-05 23:14:11 +08:00
Christopher MacGown
a55f073221 Pruned Authors file to active contributors (from nova-volumes).
Active contributors was fetched from git blame output, for files
inside the nova/nova/volumes folder in nova.

Change-Id: I8cc63975bf1160ca76badc54fd4d51077873dfee
2012-07-03 18:09:20 -07:00
Clark Boylan
57d6c5d1bc Move nova-manage.rst to cinder-manage.rst.
Cinder docs were not building because sphinx was looking for
cinder-manage.rst which did not exist. The file was simply misnamed
and renaming it to cinder-manage.rst allows the docs to build.

Change-Id: I68f4ed81230cc277a96bb34dfa172e5ce7788ac4
2012-07-02 14:28:08 -07:00
John Griffith
a9c8212f69 Add action extensions to support nova integration.
* Adds VolumeActions extension to support key functions
    described in blueprint volume-decoupling
 * Adds snapshot translations to APIs
 * Should be back in sync with 7992
 * blueprint compat-extensions
 * sleepsonthefloor: Moved added snapshot attributes to extension, added tests
 * sleepsonthefloor: Lock pep8==1.1 in tox.ini

Change-Id: I9c6118cd434ca8b275d2386546923f932420b975
2012-06-26 14:35:56 -07:00
Jenkins
2c6e273259 Merge "Revert "Add action extensions to support nova integration."" 2012-06-13 18:23:58 +00:00
John Griffith
9c55720129 Revert "Add action extensions to support nova integration."
This reverts commit 8d8903f466cd7d4270e46ad896817fe94c99b575
2012-06-13 17:51:37 +00:00
Jenkins
a071c75c7e Merge "Add action extensions to support nova integration." 2012-06-12 04:26:40 +00:00
John Griffith
f8c9b20b2d Fix volume['id'] from integer to string
* This is the same fix as nova bug 1010200
* Missed in volume uuid migration

Change-Id: Ib433ea6a1f247aad7fcba72680fd14e82387ed62
2012-06-07 14:40:52 -06:00
Anthony Young
8d8903f466 Add action extensions to support nova integration.
* Adds VolumeActions extension to support key functions
   described in blueprint volume-decoupling

Change-Id: I1310c9e813c089619e8ecdf56c631d8257c0897e
2012-06-07 11:37:34 -07:00
John Griffith
0cd8f34eed Set pep8 version to 1.1 in test_requires
* Fixes bug 1007518
* Changes in pep8 cause new failures
* Fix up the ones we found anyway

Change-Id: I5cd73a252f73893e4672a2e39b667c519423ae3f
2012-06-01 11:39:45 -06:00
Anthony Young
2263cf7db7 Fix topics so that the do not collide with nova.
* Without this, there are issues running cinder if
   you have previously run n-vol
 * Fix pep8

Change-Id: Id56dbfd6c4f62a74cc57edcc7859753dd7e36229
2012-05-30 16:00:53 -07:00
Monty Taylor
50792c2ff4 Fix up coverage and jenkins test running.
The docs job wasn't working because of an un-renamed file.
Coverage wasn't running in jenkins with the xml output file.
Remove the .cache.bundle support that we're moving away from.

Change-Id: I1140baa53dee8b14ac4d1f8549425a0fdd7a8425
2012-05-21 16:46:25 -04:00
John Griffith
fe23db3380 Remove instance Foreign Key in volumes table, replace with instance_uuid
* Remove the instance relationship and instance_id FK
* Add instance_uuuid column to volumes table

Change-Id: I54d723dcb9819731a58ec64095c54c99aa9e5dc4
2012-05-11 11:59:58 -06:00
Monty Taylor
1c52fb3041 Align the tox.ini file.
Change-Id: I0d1731f157d12bfcc1e4933dd71c49e9bda4116a
2012-05-03 21:45:20 -07:00
Nirmal Ranganathan
4c20252389 Removed cinder/api/openstack/compute and moved the relevant pieces under
cinder/api/openstack/volume. Fixes bug 994177.

Change-Id: I1b953a96a1d69a62ad312d381cead4cd231a3998
2012-05-03 14:54:27 -05:00
Jenkins
c53d8e343e Initial fork out of Nova. 2012-05-03 10:48:26 -07:00