]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
10 years agoMerge "Use oslo network utils function to set tcp_keepalive"
Jenkins [Mon, 16 Jun 2014 12:08:43 +0000 (12:08 +0000)]
Merge "Use oslo network utils function to set tcp_keepalive"

10 years agoRemoves unecessary call to rbd.Image
Edward Hope-Morley [Sun, 15 Jun 2014 20:30:19 +0000 (21:30 +0100)]
Removes unecessary call to rbd.Image

Removed duplicate and unprotected call to rbd.Image
in rbd driver which can result in an uncaught exception
if the rbd image no longer exists.

Also added unit test for _delete_backup_snaps()

Closes-Bug: 1323203
Change-Id: I89eedb0d0276a985b4d496093df2eee2ce067ec1

10 years agoMerge "Limit formatting routes when adding resources"
Jenkins [Sat, 14 Jun 2014 17:28:00 +0000 (17:28 +0000)]
Merge "Limit formatting routes when adding resources"

10 years agoMerge "Fix Brocade FC driver's use of the fc_fabric_names"
Jenkins [Sat, 14 Jun 2014 07:22:02 +0000 (07:22 +0000)]
Merge "Fix Brocade FC driver's use of the fc_fabric_names"

10 years agoMerge "Allow reset-state on attach and migration fields"
Jenkins [Sat, 14 Jun 2014 03:50:50 +0000 (03:50 +0000)]
Merge "Allow reset-state on attach and migration fields"

10 years agoMerge "Implements HDS-Cinder HNAS Drivers"
Jenkins [Sat, 14 Jun 2014 03:50:42 +0000 (03:50 +0000)]
Merge "Implements HDS-Cinder HNAS Drivers"

10 years agoMerge "Remove second get call to list/show volumes"
Jenkins [Fri, 13 Jun 2014 20:57:03 +0000 (20:57 +0000)]
Merge "Remove second get call to list/show volumes"

10 years agoMerge "CinderException args to strings when exceptions"
Jenkins [Fri, 13 Jun 2014 03:40:12 +0000 (03:40 +0000)]
Merge "CinderException args to strings when exceptions"

10 years agoAllow reset-state on attach and migration fields
john-griffith [Wed, 16 Apr 2014 21:03:18 +0000 (15:03 -0600)]
Allow reset-state on attach and migration fields

The reset-state API call only sets that main status
column on the volume object.  There's also a method
to set attach status, however it turns out that due
to the implementation of the status validation method
in the parent class, this was impossible to use because
it only checked and accepted "status" NOT "attach_status".

This patch fixes that attach_status problem, it also implements
the ability to update the migration status.  A cinderclient change
will be needed to expose these calls as well.

DocImpact

Change-Id: I59e1bb2522f033c944fa07acf4876ca71c8c3d3f
Closes-Bug: #1308253

10 years agoMerge "Copy custom properties to image from volume"
Jenkins [Thu, 12 Jun 2014 18:29:52 +0000 (18:29 +0000)]
Merge "Copy custom properties to image from volume"

10 years agoImplements HDS-Cinder HNAS Drivers
Erlon Cruz [Mon, 24 Mar 2014 14:02:47 +0000 (11:02 -0300)]
Implements HDS-Cinder HNAS Drivers

This change introduces HDS HNAS iSCSI and NFS Drivers.

HNAS NFS certification results:
  https://gist.github.com/sombrafam/6c73cb823ce75b0538bd

HNAS iSCSI certification results:
  https://gist.github.com/sombrafam/2625987243ec91d53c7a

Change-Id: I1a16f76887cf22dcf8ce0ed1dbc0b57327a87616
Implements: blueprint hds-hnas

10 years agoMerge "hp_lefthand_rest_proxy no handler for logger during tests"
Jenkins [Thu, 12 Jun 2014 15:12:04 +0000 (15:12 +0000)]
Merge "hp_lefthand_rest_proxy no handler for logger during tests"

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 agoCopy custom properties to image from volume
PranaliDeore [Tue, 6 May 2014 04:04:45 +0000 (04:04 +0000)]
Copy custom properties to image from volume

Presently after copying an image to volume, all properties
of the image are getting copied properly but while creating
image back from volume, it doesn't copy custom properties
to the image.

At present in volume-glance-metadata table all the properties
of volume are stored as key and value. Because of this it is
difficult to differentiate between core and custom properties.
To overcome this, I have added a new option
'glance_core_properties' in cinder.conf. This option defines
all core properties of an image. This way, it's easy to separate
core and custom properties from the glance_volume_metadata and add
custom property to the newly created image.

For Example:
glance_core_properties = 'checksum', 'container_format',
'disk_format', 'image_name', 'image_id', 'min_disk',
'min_ram', 'name', 'size'

DocImpact: Added 'glance_core_properties' to distinguish the
core and custom properties as discussed above in cinder.conf

blueprint: restrict-uploading-volume-to-image

Change-Id: I786edbc6e54b3d06ef679a71e22676d2f88e7307

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 agoFix Brocade FC driver's use of the fc_fabric_names
Walter A. Boring IV [Tue, 10 Jun 2014 20:40:36 +0000 (13:40 -0700)]
Fix Brocade FC driver's use of the fc_fabric_names

The Brocade Fibre Channel Zone Manager driver wasn't
stripping out whitespace in the fc_fabric_names
prior to using them.  This would cause breakage later on
in the driver.

Change-Id: I6d16a35026fdd2f30a92f9dff16435a6c39b699a
Closes-Bug: 1328681

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 agohp_lefthand_rest_proxy no handler for logger during tests
Mark Sturdevant [Fri, 30 May 2014 20:19:04 +0000 (13:19 -0700)]
hp_lefthand_rest_proxy no handler for logger during tests

Create the proxy during do_setup() instead of __init__()
so that the logger is ready for an import error during tests.

Closes-Bug: #1325116
Change-Id: I88145d97df5d746e92bc8302bf516ca9eaa05d00

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 agoRemove second get call to list/show volumes
John Griffith [Thu, 29 May 2014 18:18:12 +0000 (18:18 +0000)]
Remove second get call to list/show volumes

Recently it was observed that with large numbers of volumes
that things like "cinder list" could take extremely long to
return.

For example, running cinder list on a system with 1000 volumes took
greater than 30 seconds to return.  It turns out that the cause of
this is the addition of visible admin_metadata.

There's two problems with this:
1. The original patch probably shouldn't have gone in
   data is either admin data or it's not, selectively picking
   pieces of admin data out to provide to the user just creates
   complications and introduces confusion.
2. The REAL issue here is that since the standar gets are made
   with the standard user context, the add_visible_admin_metadata
   would go through and do an elevated context get on every single
   volume individually.  This is what caused the horrible performance
   issue on cinder list with large numbers of volumes.

Running as admin, or removing the second call drops this down to about 3
seconds for the same 1000 volume list.

This patch removes the secondary admin context get_call.  Instead where
we expect to do display the visible admin_meta, we pass in a flag
requesting that the volume object we're getting has the appropriate
metadata.  This way we can elevate the context if needed and avoid
iterating through the gets again.

This patch also cleans up the get_visible_admin_meta methods, and
consolidates both V1 and V2 to use the utils method.

Change-Id: I3fb7aefb7d8a5664b0a3fb3958f509b5cd621320
Closes-Bug: 1317606

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 agoLimit formatting routes when adding resources
Inhye Park [Tue, 15 Apr 2014 09:48:44 +0000 (18:48 +0900)]
Limit formatting routes when adding resources

By default, routes.mapper.Mapper.resource adds a bunch of formatted
routes that accept anything after a '.'. Our spec says only .xml
and .json are accepted so limit the formatting to those valuse.

This allows identifiers with a '.' in urls. A few tests were added
to the extensions test to prove that .xml and .json are stripped
but other values are not.

Closes-bug: #1307956
Change-Id: I8f0b4ae3b10ea93890f6506662905bd5823412f5

10 years agoUse oslo network utils function to set tcp_keepalive
pran1990 [Mon, 5 May 2014 23:07:13 +0000 (16:07 -0700)]
Use oslo network utils function to set tcp_keepalive

Earlier, tcp_keepidle was set to 600s and other parameters left to default
values. A new function was added to oslo-incubator for setting tcp keepalive
settings, and cinder should use this to set any values we want.
In addition to the existing cfg option for tcp_keepidle, new values were added
for tcp_keepalive(to turn on/off this feature, tcp_keepintvl(to specify gap
between successive probes) and tcp_keepcnt(to specify number of probes). To
mimic existing behavior, tcp_keepalive defaults to True, and tcp_keepidle to
600(seconds). The other two default to None, and the oslo code will ignore
them.
Ran update.py in oslo-incubator to copy changed modules into cinder.
Changes are:
network_utils.py (which contains the function we need, others are deps)
edd73c9 Merge "Improve help strings"
fe3389e Improve help strings
8a0f567 Remove str() from LOG.* and exceptions
f61a4e7 Fix python26 compatibility for RFCSysLogHandler
da6d713 Revert setting oslo-incubator logs to INFO
0d18381 Set default log levels for oslo.messaging and oslo-incubator

gettextutils.py
9912e5d Add API for creating translation functions
6cc96d0 Fix test_gettextutils on Python 3

jsonutils.py
9e5a393 jsonutils.load() accepts file pointer, not string
a6b2aec On Python <= 2.6, use simplejson if available
e3a1d9c Use six.moves.xmlrpc_client instead of xmlrpclib
3a31bba Python3 support for xmlrpclib
e6494c2 Use six.iteritems to make dict work on Python2/3

log.py
edd73c9 Merge "Improve help strings"
fe3389e Improve help strings
8a0f567 Remove str() from LOG.* and exceptions
f61a4e7 Fix python26 compatibility for RFCSysLogHandler
da6d713 Revert setting oslo-incubator logs to INFO
0d18381 Set default log levels for oslo.messaging and oslo-incubator

Current HEAD in OSLO:
----------------------------------------------
Merge: 2640847 e433899
Date:   Mon May 5 19:41:28 2014 +0000
Merge "Enable configuring tcp keepalive"
----------------------------------------------

Ran generate_sample to generate cinder.conf.sample

Implements blueprint configure-tcp-keepalive
Change-Id: I2e4c2327803c25e54ed771f25ef973bb543b9355

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