]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
10 years agoRemove unused oslo module and adjust opentstack-common.conf
ChangBo Guo(gcb) [Sun, 4 May 2014 02:55:58 +0000 (10:55 +0800)]
Remove unused oslo module and adjust opentstack-common.conf

The issues are detected by new change about update.py
in I68c0108304be8a315bcefe939c22019caab9bc98. This patch
doesn't depend the oslo-incubator patch.
 * remove unused module crypto
 * add missing module loopingcall in openstack-common.conf
 * sort the modules in openstack-common.conf

Change-Id: I9f0fcd3803f89a6902f92d0ea691b9ae0235f64c

10 years agoMerge "Remove Quota Exception Stack Traces from Cinder Logs"
Jenkins [Wed, 11 Jun 2014 11:22:57 +0000 (11:22 +0000)]
Merge "Remove Quota Exception Stack Traces from Cinder Logs"

10 years agoMerge "Handle volumes no longer existing in resume delete"
Jenkins [Wed, 11 Jun 2014 04:22:12 +0000 (04:22 +0000)]
Merge "Handle volumes no longer existing in resume delete"

10 years agoMerge "3PAR volume detach with host in a host set"
Jenkins [Wed, 11 Jun 2014 02:21:59 +0000 (02:21 +0000)]
Merge "3PAR volume detach with host in a host set"

10 years agoMerge "NetApp NFS: Do not reference dst_img_local before assignment"
Jenkins [Tue, 10 Jun 2014 06:42:56 +0000 (06:42 +0000)]
Merge "NetApp NFS: Do not reference dst_img_local before assignment"

10 years agoMerge "Make begin_detaching fail if volume not "in-use""
Jenkins [Tue, 10 Jun 2014 01:48:24 +0000 (01:48 +0000)]
Merge "Make begin_detaching fail if volume not "in-use""

10 years agoMerge "Fixed the comment spelling error - voumes to volumes"
Jenkins [Mon, 9 Jun 2014 08:05:53 +0000 (08:05 +0000)]
Merge "Fixed the comment spelling error - voumes to volumes"

10 years agoMerge "Ensure flushing of IO prior to removing FC device"
Jenkins [Sun, 8 Jun 2014 21:42:08 +0000 (21:42 +0000)]
Merge "Ensure flushing of IO prior to removing FC device"

10 years agoDelete image on upload-to-image failure
Vipin Balachandran [Wed, 30 Apr 2014 12:00:57 +0000 (17:30 +0530)]
Delete image on upload-to-image failure

On upload-to-image failure before initiating the data transfer or during
data transfer, the source volume status is restored properly whereas the
image created remains in queued or saving state. This change deletes the
image during such failures.

Change-Id: I0aa64798d2bc5bf19b79dd3b88dcd107ff369c42
Closes-Bug: #1298042

10 years agoMerge "Use os.urandom in volume transfer"
Jenkins [Thu, 5 Jun 2014 19:30:50 +0000 (19:30 +0000)]
Merge "Use os.urandom in volume transfer"

10 years agoEnsure flushing of IO prior to removing FC device
Walter A. Boring IV [Wed, 4 Jun 2014 22:22:08 +0000 (15:22 -0700)]
Ensure flushing of IO prior to removing FC device

This patch flushes IO for each SCSI device that
brick removes from the system.  The patch also
flushes a multipath device prior to removing
each underlying LUN associated with the
multipath device.   We were seeing kernel
IO errors in the syslog without calling flush
on the block device, during a detach for a
multipath FibreChannel copy image to volume
action.

Change-Id: I2fae3dccd4fcab22c8f59dcd297581ee9577b779
Closes-Bug: 1318950

10 years agoMerge "Add support for z/VM driver."
Jenkins [Thu, 5 Jun 2014 13:46:52 +0000 (13:46 +0000)]
Merge "Add support for z/VM driver."

10 years agoFixed the comment spelling error - voumes to volumes
Inhye Park [Mon, 2 Jun 2014 07:38:37 +0000 (16:38 +0900)]
Fixed the comment spelling error - voumes to volumes

Closes-bug: #1325481
Change-Id: I38a1d9df98c709d3ca173fa61315ad3f7ca9ffdc

10 years agoRemove Quota Exception Stack Traces from Cinder Logs
Rahul Verma [Tue, 3 Jun 2014 22:26:48 +0000 (15:26 -0700)]
Remove Quota Exception Stack Traces from Cinder Logs

Added an if clause to the Cinder API FaultWrapper so that
a warning is printed rather than an error and stack trace
if an exception of type QuotaError is thrown.

Closes-Bug: 1324294
Change-Id: If91db0f443afc212af3893e27dd36f19b15c43bf

10 years agoUse os.urandom in volume transfer
Ollie Leahy [Fri, 30 May 2014 11:57:02 +0000 (11:57 +0000)]
Use os.urandom in volume transfer

This patch replaces a call to random.random() with a call to
os.urandom(), which generates a higher quality random number.

Closes-Bug: #1319643

Change-Id: Ifaa2216d4905f5286884629beac52b25249d621f

10 years agoMake begin_detaching fail if volume not "in-use"
Nikola Dipanov [Fri, 25 Apr 2014 11:38:31 +0000 (13:38 +0200)]
Make begin_detaching fail if volume not "in-use"

Like it's counterpart from Nova's volume-attach functionality standpoint
- reserve_volume, begin_detaching should fail if the volume is not in
  the correct state to be detached. This will prevent nova from
attempting to check and then detach, which is inherently racy.

Change-Id: Ie87eb0c9aea068affc94032ab2e53a91888d272a
Partial-bug: #1302774

10 years agoMerge "NetApp fix eseries concurrent vol map failure"
Jenkins [Sat, 31 May 2014 19:35:18 +0000 (19:35 +0000)]
Merge "NetApp fix eseries concurrent vol map failure"

10 years agoMerge "Add exception handling for copy_volume_to_image()"
Jenkins [Sat, 31 May 2014 07:47:01 +0000 (07:47 +0000)]
Merge "Add exception handling for copy_volume_to_image()"

10 years agoMerge "Fix a message format error in migration cleanup"
Jenkins [Sat, 31 May 2014 07:46:53 +0000 (07:46 +0000)]
Merge "Fix a message format error in migration cleanup"

10 years ago3PAR volume detach with host in a host set
Mark Sturdevant [Tue, 27 May 2014 21:49:34 +0000 (14:49 -0700)]
3PAR volume detach with host in a host set

When deleting the last VLUN for a host, try to
delete the host.  If the host is in a host set
this will fail.  When that happens, log a nice
message including the reason, but don't fail
or hang the delete VLUN.  Leave hosts in host
sets.

Closes-Bug: #1317134

Change-Id: Ie3f8f94c05a6a318de866598f9e9c4c5d84926f4

10 years agoUpdate cinder.conf
John Griffith [Fri, 30 May 2014 15:59:52 +0000 (15:59 +0000)]
Update cinder.conf

This is mostly just a sanity check, we're revmoving
this whole check from the gate, but we've had
conflicting versions of the truth here and I'm trying
to figure out why.

This patch is a fresh run of generate_sample, which differs
from https://review.openstack.org/#/c/96784/

Change-Id: Ia2d6ca01beb1d2c42084100990129dadbb32b22c

10 years agoFix a message format error in migration cleanup
Juan Manuel Olle [Thu, 22 May 2014 13:24:36 +0000 (10:24 -0300)]
Fix a message format error in migration cleanup

In some situations, the volume migration failed. After the cleanup
begin, code was trying to format a string value as an int,
this caused "copy_error = True" not being invoked, resulted
in UnboundLocalError exception.

Change-Id: I445394cc06fe221804901e8014d60e870f0fe2f7
Closes-Bug: #1290317

10 years agoMerge "Use error instead of warning to log mount exc"
Jenkins [Thu, 29 May 2014 15:57:27 +0000 (15:57 +0000)]
Merge "Use error instead of warning to log mount exc"

10 years agoMerge "Ensure metadata is saved before updating volume status"
Jenkins [Thu, 29 May 2014 13:38:18 +0000 (13:38 +0000)]
Merge "Ensure metadata is saved before updating volume status"

10 years agoAdd support for z/VM driver.
Yi Chun, Huang [Thu, 29 May 2014 10:10:50 +0000 (06:10 -0400)]
Add support for z/VM driver.

Add 'FCP' into connection_info in initialize_connection
in order to support IBM z/VM hypervisors. This change only
because z/VM need FCP(fibre channel port) info while other
platform don't need it. It will not have side effect
to other platforms since they can safely ignore it.

Change-Id: Ib2d72969608a84a7a200b96da3eefb3ccc13a096
Closes-Bug: #1323993

10 years agoMerge "Only create volume with an active image"
Jenkins [Wed, 28 May 2014 06:06:20 +0000 (06:06 +0000)]
Merge "Only create volume with an active image"

10 years agoMerge "Allow host config to be overriden in backend"
Jenkins [Wed, 28 May 2014 04:38:21 +0000 (04:38 +0000)]
Merge "Allow host config to be overriden in backend"

10 years agoMerge "Fix ISER scan retry option"
Jenkins [Wed, 28 May 2014 01:51:45 +0000 (01:51 +0000)]
Merge "Fix ISER scan retry option"

10 years agoHandle volumes no longer existing in resume delete
Mike Perez [Thu, 22 May 2014 21:29:06 +0000 (14:29 -0700)]
Handle volumes no longer existing in resume delete

init_host resumes deletes for volumes with a status of 'deleting'. It
does these sequentially, and sometimes a volume could be deleted under
it, causing a bad stacktrace. This will gracefully handle those
situations and move on. Added coverage for resume volume delete being
successful as well.

Change-Id: I5b30265609b65804f2da77d9daa84b640de7939c
Closes-Bug: #1322340

10 years agoMerge "Updated from global requirements"
Jenkins [Tue, 27 May 2014 17:09:40 +0000 (17:09 +0000)]
Merge "Updated from global requirements"

10 years agoFix ISER scan retry option
Eric Harney [Tue, 27 May 2014 14:11:53 +0000 (10:11 -0400)]
Fix ISER scan retry option

The 'num_iscsi_scan_tries' option was renamed to
'num_volume_device_scan_tries'.

Remove it from the test where the deprecated name is
referenced since it is not used there anyway.

Fix the ISER driver to set the new config field rather than the
old one.  Presumably this made the num_iser_scan_tries option
not work since only the new field is passed to the brick
connector.

Closes-Bug: #1323741

Change-Id: I13ac4cce10894b541054fbda719bbc5fd555e3c1

10 years agoOnly create volume with an active image
ling-yun [Fri, 4 Apr 2014 14:18:50 +0000 (22:18 +0800)]
Only create volume with an active image

1. Currently cinder doesn't check whether the image is active
when create volume with an image id, we can even create volume
with a deleted/saving/queued image.

2. For deleted image, it only happened when using admin credentials.

When using non-admin credentials, it returned an error that image
is not found by using 'glance image-show' on a deleted image, which
is expected. Also when creating a volume from this deleted image,
it returned  a 404 error upfront. This again is the expected result.

When using admin credentials, we can view the details of deleted image
with 'glance image-show'. If create a volume out of an image ID (which
is now deleted), the operation succeeds, but the volume is left in
'error' state.

3. This accounts for a bug(he volume shouldn't be created) and should be fixed.

Change-Id: If4f59695fbf6636778d0d352aef28d90bb45ee91
Closes-Bug: #1302621

10 years agoMerge "vmware: Fix problems with VIM API retry logic"
Jenkins [Tue, 27 May 2014 04:16:07 +0000 (04:16 +0000)]
Merge "vmware: Fix problems with VIM API retry logic"

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Mon, 26 May 2014 23:48:46 +0000 (23:48 +0000)]
Updated from global requirements

Change-Id: I6baf865f537abb71258fdfebe89403f7076c2765

10 years agoEnsure metadata is saved before updating volume status
Haruka Tanizawa [Fri, 25 Apr 2014 02:41:40 +0000 (11:41 +0900)]
Ensure metadata is saved before updating volume status

This patch ensures the volume metadata is saved to
the snapshot metadata before updating the status
of the snapshot to be available.

Change-Id: Iada010520dc3c086fcd410a6c7fd152cf4a31561
Closes-Bug: #1310991

10 years agoUse error instead of warning to log mount exc
Flavio Percoco [Sat, 24 May 2014 08:12:36 +0000 (10:12 +0200)]
Use error instead of warning to log mount exc

Gluster's driver uses warning to log mount exceptions. This patch
replaces that warning with an error message.

Change-Id: I54a10ec8abf460ca9ff7bb009b8d702cfad0fed0
Closes-Bug: #1317573

10 years agoMerge "Add mailmap entry"
Jenkins [Fri, 23 May 2014 23:42:53 +0000 (23:42 +0000)]
Merge "Add mailmap entry"

10 years agoMerge "Set volume usage audit period to not NoneType"
Jenkins [Fri, 23 May 2014 04:21:02 +0000 (04:21 +0000)]
Merge "Set volume usage audit period to not NoneType"

10 years agoMerge "Updated from global requirements"
Jenkins [Fri, 23 May 2014 03:09:54 +0000 (03:09 +0000)]
Merge "Updated from global requirements"

10 years agoMerge "Remove create_from* functor jump table"
Jenkins [Fri, 23 May 2014 02:47:29 +0000 (02:47 +0000)]
Merge "Remove create_from* functor jump table"

10 years agoAllow host config to be overriden in backend
Vishvananda Ishaya [Thu, 22 May 2014 21:49:20 +0000 (14:49 -0700)]
Allow host config to be overriden in backend

This allows you to specify host=XXX in your backend configuration
to override the host value that is specified in the DEFAULT section,
allowing for some backends to share a hostname while others can
have unique names.

Change-Id: Ie8894a7cebf350dc2d50567058a765482b9d97d7
Closes-bug: #1322366

10 years agoMerge "Remove all mostly untranslated PO files"
Jenkins [Thu, 22 May 2014 19:27:42 +0000 (19:27 +0000)]
Merge "Remove all mostly untranslated PO files"

10 years agoMerge "Add rally job"
Jenkins [Thu, 22 May 2014 17:44:05 +0000 (17:44 +0000)]
Merge "Add rally job"

10 years agoRemove all mostly untranslated PO files
Andreas Jaeger [Thu, 22 May 2014 16:33:09 +0000 (18:33 +0200)]
Remove all mostly untranslated PO files

We only import PO files that are at least 75 % translated,
so we can delete now all other PO files. The patch only
removes the mostly untranslated files. Once a file becomes mostly
translated, the bot will import it again.

This removes all languages besides en_US.

Change-Id: I56c85a63888d0edd81895fb213e5967b0e799013
Closes-Bug: #1317794

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 22 May 2014 07:04:39 +0000 (07:04 +0000)]
Updated from global requirements

Change-Id: Ie6811fcb0c536447bd605a22b52d6fd2dee2d328

10 years agoRemove create_from* functor jump table
Joshua Harlow [Thu, 22 May 2014 02:26:15 +0000 (19:26 -0700)]
Remove create_from* functor jump table

To make it easier to debug during runtime which method was
called remove the dictionary type -> functor mapping and
use a set of if statements instead. This makes it so that
if one of these methods fails we can gather more information
from the traceback than what was previously possible.

Change-Id: Iee2b0b90fe57734966d415c053bbc967335d5509

10 years agoMerge "SSHPool in utils should allow customized host key missing policy"
Jenkins [Wed, 21 May 2014 19:59:43 +0000 (19:59 +0000)]
Merge "SSHPool in utils should allow customized host key missing policy"

10 years agoSSHPool in utils should allow customized host key missing policy
Lynxzh [Mon, 19 May 2014 10:47:16 +0000 (18:47 +0800)]
SSHPool in utils should allow customized host key missing policy

The cinder/utils SSHPool should allow  missing key policy and host key
file being customized so that any caller can determine by their own
scenario if the host key file can be customized, or if an 'AutoAdd' is
appropriate, or just reject the key when mismatch. This will give more
flexible customization and also prevent any security issue as a middle
man.

Closes-Bug: #1320056
Change-Id: I3c72b0d042de719ecd45429d376bd88d0aefb2cc

10 years agoMerge "NetApp fix attach fail for already mapped volume"
Jenkins [Tue, 20 May 2014 22:58:04 +0000 (22:58 +0000)]
Merge "NetApp fix attach fail for already mapped volume"

10 years agoCheck whether O_DIRECT is supported to iflag and oflag separately
vitas.yuzhou [Mon, 12 May 2014 18:57:48 +0000 (02:57 +0800)]
Check whether O_DIRECT is supported to iflag and oflag separately

The problem is when this is used for volume clear and the clear method
specifies use of the 'zero' option (/dev/zero) setting iflag direct is
not a valid option for that input file, but oflag direct is a valid
option for output file, so we should check iflag and oflag separately.

Change-Id: I4b627e95b68d56e3011cddc577c62fad0c384dba
Close-Bug: 1318748

10 years agoMerge "eliminate the need for hplefthandclient in tests"
Jenkins [Mon, 19 May 2014 21:23:06 +0000 (21:23 +0000)]
Merge "eliminate the need for hplefthandclient in tests"

10 years agoSet volume usage audit period to not NoneType
Mike Perez [Sat, 17 May 2014 19:18:59 +0000 (15:18 -0400)]
Set volume usage audit period to not NoneType

The setting of NoneType causes cinder-volume-usage-audit to not start up
and throw a stacktrace. This sets the config default back to something
it can use.

Change-Id: I4a9751025486b77dd7cf45d0aaad02e2325055d4
Closes-Bug: #1320541

10 years agoBrcdFCSanLookupService should allow customize host key and policy
Lynxzh [Mon, 19 May 2014 09:49:00 +0000 (17:49 +0800)]
BrcdFCSanLookupService should allow customize host key and policy

In BrcdFCSanLookupService, the initialization should allow the
customization of the known_hosts_file and missing_key_policy so that the
hosts key and missing policy can be customized according to the
different scenario and customer aspect. This will not change the default
behavior when no argument is given, but more flexible to allow the
caller to give more options according to different requirements.

Closes-Bug: #1320050
Change-Id: If5767f63ccd2cde5fbea30a6154acf4d28f662b6

10 years agoNetApp fix eseries concurrent vol map failure
Navneet Singh [Fri, 28 Feb 2014 10:19:49 +0000 (15:49 +0530)]
NetApp fix eseries concurrent vol map failure

This fixes the issue while mapping volume to host
when the requests are very close in time proximity.
The map operation has been synchronized.

Change-Id: I2e120d84d3b96faa4ab8d4324e70a089bcddeaa5
Closes-bug: #1312685

10 years agoNetApp fix attach fail for already mapped volume
Navneet Singh [Thu, 27 Feb 2014 15:20:52 +0000 (20:50 +0530)]
NetApp fix attach fail for already mapped volume

This patch fixes the error raised during mapping of a volume
to the host during attach operation if the volume is already
mapped to the host.

Change-Id: I4f711e7ac18eea0dfddab65fd85a3601fe967a88
Closes-bug: #1310659

10 years agoMerge "Fix retyping volume that has volume type None"
Jenkins [Mon, 19 May 2014 01:51:11 +0000 (01:51 +0000)]
Merge "Fix retyping volume that has volume type None"

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Sun, 18 May 2014 18:42:16 +0000 (18:42 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Specify lld in tgt config backends"
Jenkins [Sun, 18 May 2014 16:54:15 +0000 (16:54 +0000)]
Merge "Specify lld in tgt config backends"

10 years agoMerge "Fix broken version responses"
Jenkins [Sun, 18 May 2014 15:54:18 +0000 (15:54 +0000)]
Merge "Fix broken version responses"

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Sun, 18 May 2014 06:15:05 +0000 (06:15 +0000)]
Imported Translations from Transifex

Change-Id: I91f80dd98e0c18492060ff1eca7ed9544a326797

10 years agoMerge "Fix solaris_execute in SolarisISCSIDriver."
Jenkins [Sat, 17 May 2014 21:12:39 +0000 (21:12 +0000)]
Merge "Fix solaris_execute in SolarisISCSIDriver."

10 years agoMerge "Added unit test cases for _is_share_eligible in NFS driver."
Jenkins [Sat, 17 May 2014 21:09:55 +0000 (21:09 +0000)]
Merge "Added unit test cases for _is_share_eligible in NFS driver."

10 years agoConvert SolidFire Capacity response to GiB
John Griffith [Tue, 13 May 2014 05:01:55 +0000 (01:01 -0400)]
Convert SolidFire Capacity response to GiB

This patch fixes the reported free_capacity_gb response
in the SolidFire update_cluster_status method.

The initial patch fixed the free_capacity conversion,
however omitted the same fix that was needed for the
free_space calculation.

Closes Bug: #1284452

Change-Id: If034957764911ec92a6d7e603d0510325018db6d

10 years agoeliminate the need for hplefthandclient in tests
Mark Sturdevant [Mon, 12 May 2014 21:27:48 +0000 (14:27 -0700)]
eliminate the need for hplefthandclient in tests

In order to eliminate the need to have the hplefthandclient in the
global-requirements project, we need to remove the hplefthandclient
from being imported in all HP LeftHand driver unit tests in cinder.

Change-Id: I4009ea17b507b1deb2a567dd420f309e15aaf92d
Closes-Bug: #1316824

10 years agoMerge "eliminate the need for hp3parclient in tests"
Jenkins [Sun, 11 May 2014 20:09:27 +0000 (20:09 +0000)]
Merge "eliminate the need for hp3parclient in tests"

10 years agoMerge "Remove explicit dependency on amqplib"
Jenkins [Sat, 10 May 2014 02:57:24 +0000 (02:57 +0000)]
Merge "Remove explicit dependency on amqplib"

10 years agoFix solaris_execute in SolarisISCSIDriver.
Scott Devoid [Mon, 5 May 2014 21:44:44 +0000 (16:44 -0500)]
Fix solaris_execute in SolarisISCSIDriver.

A previous refactor [1] of SolarisISCSIDriver and SanDriver renamed
the `_execute` function to `san_execute`. However, SolarisISCSIDriver
still called the _execute function, which no longer exists in it's
parent classes.

This change calls san_execute instead of _execute in
super(SolarisISCSIDriver, san).

[1] https://review.openstack.org/#/c/38194/

Closes-Bug: #1318108
Change-Id: I4cafefdb3eef8f3c2c345907d7eabd4e8f88ef65

10 years agoMerge "Ensure that lun_id is an int"
Jenkins [Fri, 9 May 2014 22:12:15 +0000 (22:12 +0000)]
Merge "Ensure that lun_id is an int"

10 years agoMerge "Add set-bootable command"
Jenkins [Fri, 9 May 2014 11:06:17 +0000 (11:06 +0000)]
Merge "Add set-bootable command"

10 years agoFix for solidfire driver to use reserved_percentage
jbrogan [Thu, 8 May 2014 14:06:52 +0000 (14:06 +0000)]
Fix for solidfire driver to use reserved_percentage

Fixed _update_cluster_status so reserved_percentage uses value
from cinder.conf.

Change-Id: I74af8dd86645b4c0800391bd126bf2bce94cf205

10 years agoFix retyping volume that has volume type None
git-harry [Thu, 8 May 2014 11:38:41 +0000 (12:38 +0100)]
Fix retyping volume that has volume type None

Modified volume_types_diff to work when one volume type is None.

Fixed _fix_encryption_specs so that the new dictionary is returned.

Change-Id: Iaba3032317f4d0649c917fb92403c4e9146fe3e9
Closes-Bug: #1311058

10 years agoMerge "Fix wrong exception reference"
Jenkins [Thu, 8 May 2014 07:03:39 +0000 (07:03 +0000)]
Merge "Fix wrong exception reference"

10 years agoeliminate the need for hp3parclient in tests
Mark Sturdevant [Mon, 5 May 2014 21:13:48 +0000 (14:13 -0700)]
eliminate the need for hp3parclient in tests

In order to eliminate the need to have the hp3parclient in the
global-requirements project, we need to remove the hp3parclient
from being imported in all 3par driver unit tests in cinder.

Closes-Bug: #1315195
Change-Id: Ife5c70871e742be5970be8f0284e12554f93cab4

10 years agoMerge "Add missing methods to FakeISCSIDriver"
Jenkins [Thu, 8 May 2014 03:34:35 +0000 (03:34 +0000)]
Merge "Add missing methods to FakeISCSIDriver"

10 years agoMerge "Implement validate_connector in FibreChannelDriver"
Jenkins [Wed, 7 May 2014 21:12:57 +0000 (21:12 +0000)]
Merge "Implement validate_connector in FibreChannelDriver"

10 years agoAdd missing methods to FakeISCSIDriver
John Griffith [Wed, 7 May 2014 20:34:52 +0000 (14:34 -0600)]
Add missing methods to FakeISCSIDriver

Just a quick/simple add of missing methods to make the FakeISCSI
driver usable.

Change-Id: I7e822dd094d925d13e7e5b2f6605d11fd138dbd1

10 years agoAdd mailmap entry
Morgan Fainberg [Wed, 7 May 2014 19:01:57 +0000 (12:01 -0700)]
Add mailmap entry

Add a mailmap entry to map to my gmail account.

Change-Id: If8cdff519415bd2b7138638746988e6f177c855c

10 years agoFix wrong exception reference
Sergey Gotliv [Tue, 6 May 2014 21:27:46 +0000 (00:27 +0300)]
Fix wrong exception reference

iscsi.py should catch cinder.exception.NotFound instead of
cinder.brick.exception.NotFound.

Change-Id: I77134683712e9706619a7f7fe82caed42ede5887
Closes-Bug: #1300136

10 years agoProperly initialize rpc in cinder-volume-usage-audit
Koert van der Veer [Tue, 6 May 2014 09:04:00 +0000 (11:04 +0200)]
Properly initialize rpc in cinder-volume-usage-audit

When RPC isn't initialized, any RPC based notifiers will fail, which
renders cinder-volume-usage-audit mostly useless.

Change-Id: I0b2d63871c0e57f8a9a55059c5fa22dc785b2767
Closes-Bug: #1316483

10 years agoAdd exception handling for copy_volume_to_image()
Zhengguang--reset-author [Tue, 6 May 2014 01:05:34 +0000 (09:05 +0800)]
Add exception handling for copy_volume_to_image()

The method require_driver_initialized occurs exception so that the
method volume_get will be not executed, and the variable 'volume'
will be not defined. In the "finally" code segment, the
volume['instance_uuid'] will get the UnboundLocalError, this patch
gets volume before require_driver_initialized to avoid the above
problem.

Change-Id: Ic8167383eb67c5016c9853da274455e0f202dc4d
Closes-Bug: #1322958

10 years agoNetApp NFS: Do not reference dst_img_local before assignment
Alex Meade [Thu, 17 Apr 2014 15:42:05 +0000 (11:42 -0400)]
NetApp NFS: Do not reference dst_img_local before assignment

This patch moves the assignment of the dst_img_local variable to before the
try/finally block that references it so that the finally block will have this
variable no matter where in the try block an error is raised.

Change-Id: Iab48b46559f18a3d6b044abe4bc3e615e7fee075
Closes-Bug: 1309047

10 years agoRemove explicit dependency on amqplib
Dirk Mueller [Mon, 5 May 2014 11:52:31 +0000 (13:52 +0200)]
Remove explicit dependency on amqplib

amqp (or amqplib) is only accessed via kombu, and kombu
already specifies the right dependency (either amqp if new
enough or amqplib for old versions of kombu).

Change-Id: I4efa419db1befdfcbe639a8557e21eb97ca3a26e

10 years agoFixes an issue with 3PAR attach
Walter A. Boring IV [Fri, 2 May 2014 22:30:47 +0000 (15:30 -0700)]
Fixes an issue with 3PAR attach

There was a case that during vlun creation
the location returned back from the 3PAR
didn't include the NSP value.

Change-Id: I6c6341fda65df0e8ce148f3d926990a50471a2db
Closes-Bug: #1315542

10 years agoMerge "Replace tearDown with addCleanup - Part 2"
Jenkins [Fri, 2 May 2014 13:23:44 +0000 (13:23 +0000)]
Merge "Replace tearDown with addCleanup - Part 2"

10 years agoEnsure that lun_id is an int
Jay S. Bryant [Thu, 1 May 2014 22:13:25 +0000 (17:13 -0500)]
Ensure that lun_id is an int

The map_vol_to_host function was treating the lun number
as a string rather than an int.  This was causing attempts
to mount storwize_svc volumes to Hyper-V nodes to fail as they
were checking an integer type against a unicode type which
would fail.

This change casts result_lun to an integer after the value has
gone through the ssh injection attack check.  This way Hyper-V
is able to verify if the found LUN is the target LUN, enabling
mount of storwize_svc volumes to Hyper-V.

Change-Id: I96d179f2a58e5948c8ba6c9ae618daad7b8d4c86
Closes-bug: 1269915

10 years agoImplement validate_connector in FibreChannelDriver
Mark Sturdevant [Fri, 25 Apr 2014 17:58:42 +0000 (10:58 -0700)]
Implement validate_connector in FibreChannelDriver

The base FibreChannelDriver didn't implement the
validate_connector() method. It fell back to the
parent class which simply does a pass.  Now the
FCDriver checks to ensure that the connector has
wwnns and wwpns and raises an exception if either
one is empty or not set.

Closes-Bug: #1294812

Change-Id: I1e63c4718d24bdb3ead78de871971cdc498f6b01

10 years agoMerge "Add disabled kwarg to service_get_all_by_topic"
Jenkins [Wed, 30 Apr 2014 11:33:38 +0000 (11:33 +0000)]
Merge "Add disabled kwarg to service_get_all_by_topic"

10 years agoFix broken version responses
Andreas Jaeger [Sat, 26 Apr 2014 16:59:33 +0000 (18:59 +0200)]
Fix broken version responses

The version responses link to non-existing PDF and WADL files.
Remove the WADL link and replace the PDF link with a HTML link to
docs.openstack.org.

Change-Id: Id514caee32df430b616609144f52d1a58c93d9cd
Closes-Bug: #1313118
Closes-Bug: #1313116

10 years agoMerge "Fixed 3PAR driver issue finding correct vlun"
Jenkins [Tue, 29 Apr 2014 17:57:12 +0000 (17:57 +0000)]
Merge "Fixed 3PAR driver issue finding correct vlun"

10 years agoMerge "Fix double "the" in Cinder quota warning"
Jenkins [Tue, 29 Apr 2014 16:47:12 +0000 (16:47 +0000)]
Merge "Fix double "the" in Cinder quota warning"

10 years agoMerge "Improve consistency of help strings"
Jenkins [Tue, 29 Apr 2014 16:02:27 +0000 (16:02 +0000)]
Merge "Improve consistency of help strings"

10 years agoMerge "Replace tearDown with addCleanup - Part 5"
Jenkins [Tue, 29 Apr 2014 16:01:58 +0000 (16:01 +0000)]
Merge "Replace tearDown with addCleanup - Part 5"

10 years agoFix double "the" in Cinder quota warning
Arne Wiebalck [Tue, 29 Apr 2014 12:37:41 +0000 (14:37 +0200)]
Fix double "the" in Cinder quota warning

Amend a Cinder warning printed with a double "the".

Change-Id: I1471514c9bae84de4b2bef9b11a163314a00802e

10 years agoFixed 3PAR driver issue finding correct vlun
Walter A. Boring IV [Mon, 28 Apr 2014 21:30:47 +0000 (14:30 -0700)]
Fixed 3PAR driver issue finding correct vlun

This patch fixes an issue that happens when
a volume is attached to the same host
more than once.  The driver wasn't looking
for the correct VLUN on the 3par after the
VLUN was created.  We now get the VLUN
information in the return of the creation call.

Change-Id: Id570094f29900c0adcffe6c9d4145c9ad5e3ce4e
Closes-Bug: #1313894

10 years agoStorwize/SVC driver detach volume failed
Li Min Liu [Tue, 22 Apr 2014 02:56:54 +0000 (10:56 +0800)]
Storwize/SVC driver detach volume failed

If config two backends on the same storage, but the protocol is
different, one is FC and the other is iSCSI,  that will create two
hosts on the storage.

When detaching the volume which is attached to the iSCSI host, the
driver will get FC host by default, that causes volume status keeps
'detaching'.

Change-Id: Idbdb3861574197549625b4a6b6141197e42857ff
Closes-Bug: #1310559

10 years agoAdd disabled kwarg to service_get_all_by_topic
git-harry [Fri, 25 Apr 2014 16:03:13 +0000 (17:03 +0100)]
Add disabled kwarg to service_get_all_by_topic

service_get_all_by_topic disabled kwarg allows results to include
where disabled is True or False or both.

Updated code where service_get_all_by_topic is used to make use of
disabled kwarg instead of filtering afterwards.

Removed logging of disabled services in host_manager.

Closes-Bug: #1285673
Change-Id: I748461e64acd4e9563c4016781c5e1d4b116dac8

10 years agoAdd rally job
Sergey Skripnick [Fri, 25 Apr 2014 15:31:06 +0000 (18:31 +0300)]
Add rally job

Add rally scenario to be run by OpenStack CI system

Change-Id: Ie305ab51b75cd24e21868b965b9345a4444b2d20

10 years agoMerge "Replace tearDown with addCleanup - Part 4"
Jenkins [Fri, 25 Apr 2014 08:20:19 +0000 (08:20 +0000)]
Merge "Replace tearDown with addCleanup - Part 4"

10 years agoMerge "Cinder list does not filter admin metadata."
Jenkins [Fri, 25 Apr 2014 08:14:25 +0000 (08:14 +0000)]
Merge "Cinder list does not filter admin metadata."

10 years agoMerge "Remove unused volume instance_uuid methods"
Jenkins [Fri, 25 Apr 2014 08:14:22 +0000 (08:14 +0000)]
Merge "Remove unused volume instance_uuid methods"