9770 Commits

Author SHA1 Message Date
Jenkins
a0a96a8e55 Merge "EMC VMAX - locking SG for concurrent threads" 2016-07-06 07:38:52 +00:00
Jenkins
a1105e3abd Merge "EQLX: Extend of snapshot or clone failure" 2016-07-06 04:14:52 +00:00
Jenkins
11bd594ad1 Merge "Add README in release notes directory" 2016-07-05 22:16:57 +00:00
Jenkins
4c7bd2dd21 Merge "Remove translation from config options" 2016-07-05 22:16:46 +00:00
Jenkins
cc87c5ee74 Merge "Log terminate_connection exception with traceback" 2016-07-05 22:16:31 +00:00
Jenkins
06adcf926f Merge "Fix some typos" 2016-07-05 22:16:15 +00:00
Jenkins
b81f4f2f94 Merge "Add logging when filtering returns nothing" 2016-07-05 22:11:12 +00:00
Pablo Iranzo Gómez
b96e3c2068
Fix some typos
Change-Id: Ie395b13e219d58894350fce26d57676a06d5d938
2016-07-05 15:11:39 +02:00
Jenkins
18cfc87056 Merge "Just a few spelling modification. "occurred"" 2016-07-05 12:38:20 +00:00
Jenkins
857343de60 Merge "Updated from global requirements" 2016-07-05 12:34:56 +00:00
Pranali Deore
7a1742c668 Add logging when filtering returns nothing
When hosts are filtered for a request, and no host passes all the
filters, operators can only see the last filter run; they have no
visibility into which filter removed which host. This attempts to
improve this situation by tracking the hosts remaining after each
filter is run and the number of hosts removed. If no host is left,
that information along with volume ID of the request would be logged.

Since that can be a lot of information, it will call LOG.info with
just the counts for all but the final filter, which will contain
the last deleted host names, LOG.debug will output the full record
of each filter and the hosts remaining after each step.

This will better enable operators to determine why a particular host
was not selected.

Change-Id: I3baf75a4a4430c55b30dde1cae86fa5e195ec6d3
2016-07-05 07:26:04 -04:00
Hyeock Kwon
4547afd0db Just a few spelling modification. "occurred"
Change-Id: If7ba51cb61a1d9caae26a27d0e94d8fedd630003
2016-07-05 17:54:09 +09:00
Jenkins
c99ac09a8c Merge "Add proper scheduler_hint key to dev-ref" 2016-07-05 08:11:40 +00:00
Jenkins
421f625494 Merge "Add __ne__ built-in function" 2016-07-05 05:37:45 +00:00
Jenkins
60b3dfdb02 Merge "Replace use of mox with mock in test_api_urlmap" 2016-07-04 20:14:09 +00:00
Béla Vancsics
bcaa956028 Use assertEqual/Less/Greater/In/IsNone
Instead of using assertFalse(A * B) / assertTrue(A * B),
developers should use assertEqual/NotEqual/Less/LessEqual
/Greater/GreaterEqual/In/NotIn/IsNone/IsNotNone
The * operator: '==', '!=', '<', '<=', '>', '>='

Change-Id: I11b60a93c089f688c6b243da01d20c205c4f2df9
2016-07-04 17:58:16 +02:00
OpenStack Proposal Bot
a13e1dba2f Updated from global requirements
Change-Id: I28fb711fef983981cbc5b82148d5baad4bdcead6
2016-07-04 11:35:17 +00:00
yuyafei
e6e2ef4d69 Add __ne__ built-in function
In Python 3 __ne__ by default delegates to __eq__ and inverts the
result, but in Python 2 they urge you to define __ne__ when you
define __eq__ for it to work properly [1].There are no implied
relationships among the comparison operators. The truth of x==y
does not imply that x!=y is false. Accordingly, when defining
__eq__(), one should also define __ne__() so that the operators
will behave as expected.
[1]https://docs.python.org/2/reference/datamodel.html#object.__ne__

Change-Id: I40878c38fd27933d73225ba49bd69b425f13dc6a
2016-07-04 17:07:41 +08:00
xiexs
f63d89dd3b Add proper scheduler_hint key to dev-ref
In the dev-ref, the hint key for volume create API
should be 'OS-SCH-HNT:scheduler_hints' but not 'scheduler_hints'.
Furthermore, it should be parallel with the key 'volume'.
To be more clear fix the example as well.

Change-Id: I999aebb0e53ebac5dc121ef1ccdc98f9d5ac816a
2016-07-04 00:11:49 -04:00
Jenkins
6f2112caa8 Merge "Deprecate defining c-vol backends in DEFAULT" 2016-07-02 20:08:42 +00:00
Sean McGinnis
a337fb3f80 EQLX: Extend of snapshot or clone failure
When creating a volume from a snapshot or cloning an existing
volume the driver first creates a new volume of the original
size, then extends the volume if needed to meet the requested
size. The extend call in these operations were passing the
wrong arguments into the extend_volume call, resulting in an
exception being thrown.

Change-Id: I503543fc45a0607d295a2ebe3602436857fc8ff8
Closes-bug: #1598148
2016-07-02 14:37:53 -05:00
Jenkins
a63059db85 Merge "Implement match-set type 3PAR FC VLUN creation" 2016-07-02 19:06:01 +00:00
Jenkins
8f60693610 Merge "Correct reraising of exception" 2016-07-02 17:03:27 +00:00
Jenkins
4b947344bc Merge "Fix broken link in HACKING.rst" 2016-07-02 16:09:50 +00:00
Jenkins
2b213e0148 Merge "Use elevated context to query DB in VolumeNumberWeigher" 2016-07-02 04:40:24 +00:00
Jenkins
18f21d9659 Merge "Updated unit tests to use official unittest methods" 2016-07-02 02:21:45 +00:00
Eric Harney
81066a05df Log terminate_connection exception with traceback
The volume manager is not logging a traceback for
volume driver terminate_connection failures.

This can result in an opaque error message which
is hard to troubleshoot.

Closes-Bug: #1598214
Change-Id: Ibde64e0715cc861b73434e6a9c676c7e25a37a18
2016-07-01 15:36:37 +00:00
Yuriy Nesenenko
d4b9738300 Replace use of mox with mock in test_api_urlmap
This patch replaces the remaining cases of mox with mock
in test_api_urlmap.py

Change-Id: I582fdb8abd72b3493545d9b19ed78e81f211cab7
2016-07-01 17:17:44 +03:00
Vipin Balachandran
f01ae06084 Add README in release notes directory
This patch adds a README in release notes directory.

Change-Id: Ib1678d3a3c729cfec17466a05bb88416175c78d6
2016-07-01 19:03:26 +05:30
Jenkins
c249ccbe37 Merge "Violin: resize volume if cloned lun is larger" 2016-07-01 09:53:43 +00:00
Vipin Balachandran
afbb085a10 Fix broken link in HACKING.rst
This patch fixes the broken link to 'testing' in HACKING.rst.

Change-Id: I9ecab0223885d1bd91fedd186d125618d785d2d8
2016-07-01 15:08:43 +05:30
Jenkins
4415c6fcb5 Merge "Dell SC: Do not set High Availability in async mode." 2016-06-30 23:08:32 +00:00
Patrick East
395288aae4 Deprecate defining c-vol backends in DEFAULT
We will, in future releases, remove support for this. For
now we will log a big warning when someone uses c-vol without
an enabled_backends config set.

DocImpact: Need to document upgrade path and new
recommended config.
Implements: blueprint shared-backend-config

Change-Id: Idf0a7346ae5d5ae45f9fc05a526ef5d66b162a3f
2016-06-30 12:58:16 -07:00
Jenkins
0a2baaf6e5 Merge "Replace use of mox with mock in test_ibm_xiv_ds8k" 2016-06-30 16:33:06 +00:00
Tom Swanson
b15938b746 Dell SC: Do not set High Availability in async mode.
The Dell SC driver was setting replication SyncMode to HighAvailability
even if the replication type was Asynchronous. This is not supported
on the platform.

Change-Id: I209b70e7bca790e3fbb091fa5c11ec7aad4a2480
Closes-Bug: #1597820
2016-06-30 11:29:28 -05:00
Jenkins
446234a530 Merge "XtremIO: fix test suite" 2016-06-30 15:42:55 +00:00
Jenkins
101d6e0b01 Merge "Huawei: Support huawei consistency group" 2016-06-30 14:47:56 +00:00
Yuriy Nesenenko
79a0a5b452 Replace use of mox with mock in test_ibm_xiv_ds8k
This patch replaces the remaining cases of mox with mock
in test_ibm_xiv_ds8k.py

Change-Id: Iea60cb3b47e1c25f30a6cfb4ba6451e6ac28fffa
2016-06-30 17:29:52 +03:00
Sean McGinnis
9768902a73 Remove translation from config options
There were a few cases where config option help text was marked
for translation. This text is just used in the generated config
sample and does not ever actually get translated for end user
runtime display. This results in extra strings for the translation
teams to translate with no actual benefit.

Change-Id: I8594533d0e3a61da00bd42ac0f7d8e3da75616fc
2016-06-30 08:53:09 -05:00
Jenkins
ff5f91366f Merge "Replace use of mox with mock in test_brick_lvm" 2016-06-30 13:03:28 +00:00
Sean McGinnis
47805a0632 Correct reraising of exception
Found an instance where an exception was being caught, then rethrown.
The correct handling would be to just raise again.

Change-Id: Ib6a1347b10cdbaeb101b7c9187954a8ace3bd6de
2016-06-30 07:52:14 -05:00
Helen Walsh
221405eb92 EMC VMAX - locking SG for concurrent threads
Locking additions and deletions to a storage group to prevent
"locked by an existing change session" error when concurrent
threads access the same storage group.

Change-Id: I96c025691f9b63a19f8213a6d7713d4e192c9784
Closes-Bug: 1554634
2016-06-30 11:48:54 +01:00
Jack Lu
afc9cb9b2d Use elevated context to query DB in VolumeNumberWeigher
Currently tenant would fail to create volume, if cinder uses
VolumeNumberWeigher.

This will elevate tenant to admin privilege, then VolumeNumberWeigher
has the privilege to get volume count of each hosts.

Change-Id: I1aa0e8ad74d37389ad1feecef113ab8e260dfd0f
Closes-Bug: #1594294
2016-06-30 14:04:01 +08:00
chenzongliang
d32d9966b6 Huawei: Support huawei consistency group
Adding support for consistency groups in huawei driver.
supports the following interfaces:
1.create_consistencygroup
2.delete_consistencygroup
3.update_consistencygroup
4.create_cgsnapshot
5.delete_cgsnapshot

DocImpact
Implements: blueprint support-huawei-consistency-group
Change-Id: Ib35c382d1cc008f483a60da557781435dde098e1
2016-06-30 13:13:19 +08:00
Jenkins
1e65575336 Merge "Use True instead of 1 in while loop" 2016-06-30 05:04:58 +00:00
Jenkins
cf871a77fc Merge "Add strict Boolean checking for quota show" 2016-06-30 04:05:13 +00:00
Jenkins
af0cddbaea Merge "Fix raise UnableToFailover call in SolidFire" 2016-06-29 21:51:14 +00:00
Ryan Selden
3e15a1286a Updated unit tests to use official unittest methods
Fixed many instances of `assert something` to `self.assertTrue(something)`
or whatever applies for that particular test

Change-Id: Iddce97e48dff25183c91f598c18db4943260110a
2016-06-29 21:49:50 +00:00
Jenkins
742f64b560 Merge "Provide Kaminario K2 all-flash array FC driver" 2016-06-29 20:58:05 +00:00
John Griffith
d70ed62041 Fix raise UnableToFailover call in SolidFire
The SolidFire driver isn't raising the UnableToFailover
exception properly.  This fixes the call and adds the
reason string.

Change-Id: I2d018a29015f7db3dd51c90e262e70f4cceaac59
Closes-Bug: #1597483
2016-06-29 13:17:00 -06:00