7527 Commits

Author SHA1 Message Date
Victor Stinner
2c49f5ddfc Port vzstorage to Python 3
* vzstorage: replace a/b with a//b to use integer division on
  Python 3.
* fix os.path.exists mock: only override return for path /fake
  (shares config)
* tests-py3.txt: add cinder.tests.unit.test_vzstorage

Note: remove also spaces in parameters in two functions calls to
respect the PEP 8.

Partial-Implements: blueprint cinder-python3
Change-Id: I7cee7009d8bc87cd0294e90cb2967f4560276994
2015-11-08 22:07:57 +01:00
Jenkins
5bc425235b Merge "Fix UsedLimitsController's authorizer to soft" 2015-11-08 18:13:31 +00:00
Jenkins
537b998b2a Merge "Case sensitivity problem in cinder scheduler" 2015-11-08 14:56:43 +00:00
Jenkins
dce6dff060 Merge "Use Service object instead of DB API directly" 2015-11-08 13:57:07 +00:00
Jenkins
8266e79fe5 Merge "Add reno for release notes management" 2015-11-08 13:54:52 +00:00
Jenkins
46000f1047 Merge "Update register_opts hacking check to allow tuples" 2015-11-08 05:51:20 +00:00
Jenkins
1f924aa97a Merge "Docstring fix in scheduler-stats" 2015-11-08 05:48:56 +00:00
Jenkins
fb0a73abb1 Merge "Don't use default=None for config options" 2015-11-08 05:48:44 +00:00
Jenkins
ea222055ce Merge "Add protocol to help of glance_api_servers option" 2015-11-08 00:24:33 +00:00
Nate Potter
db8076be96 Don't use default=None for config options
In the config module default=None is set as the default value,
so it isn't necessary to set it again when doing config options.

Change-Id: I09989ab679d249a9f7dea6af5d53c14dd1726e09
Closes-Bug: #1323975
2015-11-07 23:20:39 +00:00
OpenStack Proposal Bot
fab6419297 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ifa7a8f2610f20afd7416adae8c32ddaa47e55262
2015-11-07 06:37:25 +00:00
Jenkins
a06236e6c1 Merge "Port vmware datastore to Python 3" 2015-11-07 05:35:22 +00:00
Jenkins
e37570fd19 Merge "Fix delete quota of subprojects" 2015-11-07 05:30:21 +00:00
Jenkins
0cf61cfb3d Merge "Using extra-specs in cloned vols for Nimble driver" 2015-11-06 23:59:15 +00:00
Jenkins
8b6f2dcfb2 Merge "Port test_tintri to Python 3" 2015-11-06 19:41:53 +00:00
Jenkins
8350acd97d Merge "NetApp: Cleanup if E-Series volume create fails" 2015-11-06 18:38:51 +00:00
Victor Stinner
5a87c0726b Port vmware datastore to Python 3
* _filter_datastores(): replace filter() with list comprehension
  to get a list on Python 3.
* tox.ini: add test_vmware_datastore to Python 3.4.

Partial-Implements: blueprint cinder-python3
Change-Id: Ide4e4adf012e155b99b528ddde937df1a48a079b
2015-11-06 17:30:44 +01:00
Michał Dulko
2e6a2872e8 Use Service object instead of DB API directly
In cmd.manage and volume.api we had code accessing DB API directly.
This should be done through Service versioned object instead and this
commit fixes that.

Change-Id: I7c65323279b86c37fce7ffeb2b2626508842edfb
Closes-Bug: 1513806
2015-11-06 15:06:55 +01:00
Jenkins
568a4c7bd0 Merge "Brocade driver add_zone optimization" 2015-11-06 12:27:07 +00:00
Atsushi SAKAI
54317c5805 Docstring fix in scheduler-stats
Docstring fixes in scheduler-stats

Change-Id: I0044c5c35a35eb99d2b9549065c401b0f1ccbd28
Closes-Bug: #1506706
2015-11-06 19:12:13 +09:00
Jenkins
91f1881440 Merge "SMBFS: Fix retrieving total allocated size" 2015-11-06 07:02:46 +00:00
Victor Stinner
6533655c84 Port test_tintri to Python 3
* Set configuration.nfs_oversub_ratio, otherwise tests
  fail with TypeError on comparison between mock.Mock and int.
* tox.ini: add test_tintri to Python 3.4.

Change-Id: Ie2b5215795481bdfb11116876d83ef777a10c224
Partial-Implements: blueprint cinder-python3
2015-11-05 17:20:41 +01:00
Michał Dulko
7da1684f3c Add reno for release notes management
Change-Id: Id4d6604d9775c34e9a8e911ec6e7afd02d56ef47
2015-11-05 14:58:17 +01:00
Jenkins
cb029f2cab Merge "Execute mount.nfs check with absolute path" 2015-11-05 13:20:57 +00:00
Jenkins
76c42fc70a Merge "Fix failure of unit test TestCinderAllCmd" 2015-11-05 11:22:22 +00:00
OpenStack Proposal Bot
ac1ce0f67b Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I6ab2b52a778e11c5bf6af424624deb9bfee24c84
2015-11-05 06:06:20 +00:00
Mitsuhiro Tanino
c10beb9fc0 Fix failure of unit test TestCinderAllCmd
After introducing the commit 93d26e40098c966e7d791a9fb6152244a9f9409d
unit test TestCinderAllCmd fails if a test environment has
/etc/cinder/cinder.conf with proper backend configuration.
We should mock out some variables not to depend on test environment.

Change-Id: I3218f6be1c38ed228aa96346d6976a04ecb8d421
Closes-Bug: #1513263
2015-11-04 18:54:14 -05:00
Tom Patzig
64172b01cd Execute mount.nfs check with absolute path
Currently the existence of mount.nfs is checked by executing
the relative binary 'mount.nfs' with a non-root user,
in this case cinder. This results, for example on SUSE, in the error:

      NfsException: mount.nfs is not installed

Because mount.nfs is located under /sbin, unprivileged users
do not have /sbin in their PATH to search for executables.
The change runs the mount.nfs check by using the absolute binary
path /sbin/mount.nfs. This seems to be common for most distributions
(SUSE, RedHat, CentOS, Ubuntu, Debian). The check can still be executed
as non privileged user, by not relying on correctly set PATH variable
and using the absolute path.

Change-Id: I3c1ecfdadd9ea492d58d69cbdf33045b002668c7
Closes-Bug: #1510150
2015-11-04 22:13:13 +01:00
Jenkins
321c9c901d Merge "Imported Translations from Zanata" 2015-11-04 12:32:05 +00:00
Jenkins
a034288104 Merge "Update minimum tox version to 1.8" 2015-11-04 07:06:29 +00:00
OpenStack Proposal Bot
97c310b566 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I9f984456b5e7196acb93d7bb4f1b71fcf8c0e97b
2015-11-04 06:06:47 +00:00
Jenkins
c8a7e93ebe Merge "Return volume_type extra specs based on policy" 2015-11-03 22:51:13 +00:00
Sean McGinnis
f17c0bbd75 Update minimum tox version to 1.8
Other projects have updated to 1.8 or later for the minimum
tox version (nova, neutron), so we should probably do the
same.

Change-Id: Iddb9ab286519d555671ec39c0ce75c9351025730
2015-11-03 16:47:01 -06:00
Jenkins
ec1cb29881 Merge "Add qos_specs_id to volume type show" 2015-11-03 20:13:58 +00:00
Jenkins
9ee11fbd86 Merge "Implement update_migrated_volume for NFS driver" 2015-11-03 20:00:57 +00:00
Jenkins
e41f63a3b3 Merge "Replace warnings.warn in sqlalchemy-api" 2015-11-03 16:53:02 +00:00
Jenkins
fed877360b Merge "Move CloneableVD to common functions" 2015-11-03 15:45:05 +00:00
Jenkins
44dbc09987 Merge "Replace warnings.warn in glusterfs" 2015-11-03 15:30:17 +00:00
Ankit Agrawal
a809220fde Replace warnings.warn in sqlalchemy-api
There is a warning message logged by warnings.warn,
it should be replaced by LOG.warning.

Change-Id: Ifcff0ebeb13b07420f6b8073b094c3b1687999e8
2015-11-03 01:45:24 -08:00
Xi Yang
11b9346edf Replace warnings.warn in glusterfs
There is a warning message logged by warnings.warn,
it should be replaced by LOG.warn.

Change-Id: Ia15d2cdfe6ed1b000a399bbdd0ccafe02aaa0197
2015-11-03 15:01:41 +08:00
Jenkins
b92cd85cb9 Merge "Fix calling delete_zones method with a wrong argument" 2015-11-03 06:19:20 +00:00
Jenkins
4a3427f1f8 Merge "lvconvert missing from cinder volume.filters" 2015-11-03 04:48:15 +00:00
Sonia Ghanekar
8484a234a8 Using extra-specs in cloned vols for Nimble driver
This patch uses the set extra-specs while cloning a volume. All
existing extra-specs: 'nimble:encryption', 'nimble:perfpol-name'
and 'nimble:multi-initiator' are being reflected in the cloned
volume.

In the existing code, the extra-specs were not being considered
while cloning volumes; the parent volume attributes were used
directly in the cloned volume. This patch uses the extra-spec
values if they are set or if not then uses the default values
for the same.

Change-Id: I7610377e557720038f77ebd318422456e658e2ce
Closes-Bug: #1507821
2015-11-02 14:16:16 -08:00
zhangsong
547f107867 SheepdogDriver: Improve get_volume_stats operation
This patch improves get_volume_stats method to invoke
dog command in SheepdogClient Class method instead of
in SheepdogDriver class method directly. Here are two
benefits we can realize as a result:

1.The current implementation can only get volume status
by local sheepdog node, but the SheepdogClient Class also
supports the method to run dog command with remote sheepdog
node.

2.SheepdogClient Class methods are implemented to run dog
command with fine grained Error handling. So it can improve
the robustness and is more readable to run dog command in
SheepdogClient Class method.

Change-Id: I64ca193cd50e6914d0d5fb6cf711c760dfb65b8c
Closes-Bug: #1512287
2015-11-02 18:28:22 +08:00
Jenkins
95a5901a64 Merge "VMware: Enforce min vCenter version" 2015-11-02 07:59:21 +00:00
Jenkins
8fee608bfa Merge "Add -constraints for CI jobs" 2015-11-02 07:44:33 +00:00
Jenkins
940b6883e2 Merge "Retype support for CloudByte iSCSI cinder driver" 2015-11-02 02:40:36 +00:00
chenying
2ce285ecfb Fix calling delete_zones method with a wrong argument
Add a new zone with cisco zonemanager driver. If the added zone
name is the same as the existed name, the function delete_zones
will be called. But it fails because of passing a argument with
incorrect type. This patch fixes this error.

Co-Authored-By: Al Lau <alau2@cisco.com>
Closes-Bug: #1496283
Change-Id: Ib340b6828cfeb2bb318db23971268c7974ecc9f6
2015-10-30 16:36:46 +08:00
Nate Potter
94714e761a Return volume_type extra specs based on policy
Currently extra specs are only shown to the admin user
when showing volume types. This patch grants the flexibility
to grant other users privelages to see them based on policy.

It also hides the extra_specs entry in the dictionary from
users who can't see it rather than just showing "None" as
the value.

Closes-Bug: #1504577
APIImpact

Change-Id: Ia8f71180f048ba9b253e35ee136915812ef8df0c
2015-10-29 15:35:10 +00:00
Jenkins
aa6265b108 Merge "Revert "Handle correct exception raised by python-novaclient"" 2015-10-29 14:10:53 +00:00