12463 Commits

Author SHA1 Message Date
TommyLike
b6fd13d217 Refactor internal context testcases with ddt
Use ddt to wrap internal context testcases.

Change-Id: I44ad096065d40d31929ee6aad4ca12ddaf6fe80d
2017-05-12 16:48:59 +08:00
Jenkins
9da1945871 Merge "3PAR: Added Replication Feature In Retype Flow" 2017-05-08 11:18:09 +00:00
Gyorgy Szombathelyi
da93e11794 Modernize the nova client in cinder
The nova client (used by the InstanceLocalityFilter for example)
seems to have obscure config options (compared to other projects),
and seems it is buggy too. Fix this by introducing a [nova] section,
where the usual auth parameters can be put (auth_type, auth_url,
username, password, etc...), and deprecate the old options.
Also doesn't play with the Service Catalog, the authentication plugins
can handle it, use a Token authentication plugin when using
the user context, and removed the separate usage of the admin endpoint.

Change-Id: I55613793c8f525a36ac74636f47d7ab76f5c7e39
Closes-bug: #1686616
DocImpact: to use a Nova connection (e.g. for InstanceLocalityFilter),
one has to configure the [nova] section.
2017-05-07 19:22:03 +02:00
Jenkins
0193bd6c30 Merge "ds8k: should verify REST version separately" 2017-05-06 20:15:21 +00:00
Jenkins
d3f1d1bf6d Merge "Remove snapshot['size'] references" 2017-05-06 19:22:56 +00:00
Jenkins
41cda34ec2 Merge "Re-arrange v3 API reference" 2017-05-06 19:22:42 +00:00
Jenkins
63c68e2647 Merge "Re-order api-ref home page index" 2017-05-06 19:22:29 +00:00
Jenkins
fc99064856 Merge "Fix NoneType has no attribute get" 2017-05-06 06:02:47 +00:00
Jenkins
51e252d060 Merge "Eternus driver: Move soft dependency check out of __init__" 2017-05-05 19:06:32 +00:00
Jenkins
b92996ef35 Merge "genopts: Fix python 3 compat, sort options" 2017-05-05 15:52:24 +00:00
Jenkins
2161f4a450 Merge "Remove usage of parameter enforce_type" 2017-05-04 22:31:00 +00:00
Jenkins
82e5f7be5a Merge "Updated from global requirements" 2017-05-04 20:48:53 +00:00
Jenkins
744663e51c Merge "ProphetStor failed to create volume size larger than the snapshot." 2017-05-04 20:34:48 +00:00
Eric Harney
53cee41e62 genopts: Fix python 3 compat, sort options
Make subprocess.check_output() return strings
instead of bytes by adding universal_newlines.

This fixes the check_uptodate failure during
"tox -e pep8" in a py3 env.

This also sorts the config sections alphabetically.

Closes-Bug: #1688313

Change-Id: If8aaa0d552c5997194f43a38a6674cdfdd9fd15a
2017-05-04 14:30:21 -04:00
Ivan Kolodyazhny
ff21affea0 Remove snapshot['size'] references
Shapshot doesn't have size, we should use volume_size instead of it.

Change-Id: I50f80328bfcd05761380bcb394aff3a3c4ea6945
2017-05-04 21:16:31 +03:00
OpenStack Proposal Bot
a66f798e6c Updated from global requirements
Change-Id: Icba3410a3aab5ceea5f101ac0c570b13e0f25ce2
2017-05-04 13:20:13 +00:00
Jenkins
5a9cc940ed Merge "Trivial fix typos while reading code" 2017-05-04 05:08:21 +00:00
ChangBo Guo(gcb)
ae0df83d94 Remove usage of parameter enforce_type
Oslo.config deprecated parameter enforce_type and change its
default value to True in Ifa552de0a994e40388cbc9f7dbaa55700ca276b0.
Remove the usage of it to avoid DeprecationWarning: "Using the
'enforce_type' argument is deprecated in version '4.0' and will be
removed in version '5.0': The argument enforce_type has changed its
default value to True and then will be removed completely."

Related--Bug: #1517839

Change-Id: I92f76fa44f71497c10d320a2823dc5ba623309f6
2017-05-04 13:02:26 +08:00
Jenkins
3c30a23b3a Merge "Remove dependecy testrepository" 2017-05-04 03:55:54 +00:00
Ngo Quoc Cuong
64eeff2e90 Trivial fix typos while reading code
Change-Id: Id7785bc448d92935d94d9babb667c2733002dd35
2017-05-04 10:27:57 +07:00
Jenkins
9bde1cbbce Merge "Update attachment's status when attaching a readonly volume" 2017-05-03 23:19:17 +00:00
Jenkins
10be576332 Merge "Synology: fix snapshot metadata loss" 2017-05-03 21:13:08 +00:00
Jenkins
6d6a4e8bba Merge "Fix host check in is_backend_frozen" 2017-05-03 21:04:40 +00:00
Jenkins
c088436abb Merge "NFS: run qemu-img info as root" 2017-05-03 20:52:29 +00:00
Jenkins
059446e9ad Merge "xiv: enable get fc targets by host" 2017-05-03 19:48:34 +00:00
Jenkins
5e443284ae Merge "Trivial fix PEP 8 coding style violation and typo" 2017-05-03 18:29:05 +00:00
Jenkins
5eb162d0ab Merge "Add missing testcases for migration scripts" 2017-05-03 18:12:01 +00:00
Jenkins
582a3c5069 Merge "Move the releasenote to the right folder" 2017-05-03 17:04:56 +00:00
Jenkins
fd80a6ca22 Merge "Use cryptography instead of pycrypto" 2017-05-03 17:01:24 +00:00
Matt Riedemann
e13256469d Re-arrange v3 API reference
This applies an order to the v3 API reference documents.

The idea being how does a new user come into and use the API
and what APIs should they see first when getting started.
Naturally they need to know about versions and microversions
that are avaible. Then they might need to know about volume
types before creating a volume. Once they create a volume
and know the basics of working with volumes, they can start
to take some actions on volumes. After that it's just kind
of a random free for all of APIs and the only order applied
to the rest is sorting alphabetically by title.

Change-Id: I8956de3e6907582f7115430eb959813a13e87a49
2017-05-03 09:32:06 -05:00
Matt Riedemann
ad56443ecb Re-order api-ref home page index
Since the v2 API is deprecated, put it in the index after
the v3 API which is current, since as a user the first thing
I want to see is the currently supported API reference, not
the deprecated stuff I shouldn't be using anyway.

Change-Id: I760533ca693cb8f678a6031e07789cd68f11bc47
2017-05-03 09:28:50 -05:00
Ngo Quoc Cuong
4aa2a2a74a Trivial fix PEP 8 coding style violation and typo
PEP 8: unexpected spaces around keyword / parameter equals

Change-Id: I58b490e2716662697f57c6e24b36efe39e9c2777
2017-05-03 19:47:22 +07:00
wangxiyuan
644c50fe0e Move the releasenote to the right folder
Another release note was accidentally added to the wrong
location in the source tree.

Change-Id: Ie0c0402860c4342c5b2bef1f99ab5578722bcb53
2017-05-03 15:01:32 +08:00
TommyLike
b3911ccfc1 Add missing testcases for migration scripts
Use oslo_db to create index and add missing testcases
for migration script 091, 098 and 099, also eliminate
the deprecation warning.

Change-Id: I6163489ca0f59160e7d3bfd837b72995be17c059
2017-05-03 14:34:36 +08:00
stack
4573466b9e 3PAR: Added Replication Feature In Retype Flow
Added ReplicateVolumeTask in retype flow, which will check and
apply/remove replication feature on volume based on new type.

Change-Id: Id53b9cbdc90fd18290747cd6ed5dd6f4673294dd
Closes-Bug: #1680313
2017-05-02 23:32:42 -07:00
TommyLike
94bbf80055 Update attachment's status when attaching a readonly volume
We currently update the volume's status when attaching
a readonly volume with 'rw' mode. Instead we should
update the attachment's attach status.

Change-Id: I0ec13b0af0e9aff0e5ff1a3e9f6e645f8ac0fe4d
Closes-Bug: #1687583
2017-05-03 10:05:17 +08:00
Jia Min
5693012f7a ds8k: should verify REST version separately
for fb and ckd volume, they require different versions of REST
API, because APIs supporting their features are added one by one
and not at the same time, so driver should separate them when
verifying REST version, otherwise it will make user need to upgrade
REST unnecessarily.

Change-Id: Ib42db3f06705212fe3b8f4cfcb625d8a5fb270b7
backport: Ocata
Closes-Bug: #1680379
2017-05-02 18:35:22 -07:00
Jenkins
ae1df67883 Merge "Add attachment API doc" 2017-05-03 00:31:04 +00:00
Jenkins
e7be131196 Merge "fix typo" 2017-05-02 21:01:50 +00:00
Jenkins
81dde2cbdb Merge "validate_integer doesn't check non int properly" 2017-05-02 17:46:52 +00:00
Jenkins
03a2bd16e1 Merge "HPE 3PAR: Adds CG capability in generic volume groups(GVG)." 2017-05-02 17:38:51 +00:00
Jenkins
99706e8675 Merge "Create indexes for foreign keys" 2017-05-02 17:33:09 +00:00
Jenkins
bf7ccc524d Merge "Make divisible py3 compatible in vmware driver" 2017-05-02 17:31:54 +00:00
Jenkins
97a7232c09 Merge "qemu_img_info: report 'luks' images as 'raw'" 2017-05-02 17:31:46 +00:00
Jenkins
c55503d673 Merge "Support sort snapshots with name" 2017-05-02 17:30:16 +00:00
ChangBo Guo(gcb)
4d9086ee1f Remove dependecy testrepository
testr is part of testrepository, we invoke testr through os-testr
in Cinder and  testrepository is dpendency of os-testr, we don't
invoke testr directly, so don't need dependency testrepository.

Change-Id: Ieb0662b1ea35e12387dc12c2b2eec7c3880d9c3b
2017-05-02 11:55:24 +00:00
wangxiyuan
edfa61c61f Move the releasenote to the right folder
ibmsvciogrpselection is not in the right folder.

Change-Id: Ie410d24ed7881bc88be002bf768f312108a062a8
2017-05-02 15:49:52 +08:00
Jenkins
e726321d97 Merge "Refactor 'update_group' method" 2017-05-02 00:50:48 +00:00
Jenkins
c81e1e2713 Merge "Give more time for LVM deactivation" 2017-05-01 19:21:50 +00:00
Eric Harney
b37ce92cc6 Eternus driver: Move soft dependency check out of __init__
Checking this in __init__ means that error messages are
issued for a missing pywbem dependency in scenarios where
the driver class is loaded, like when building sample
configuration.

This should be done at check_for_setup_error rather than
__init__.

Change-Id: Ida6b8ca1a749465d3b073dd93b30b7be643076fb
2017-05-01 13:19:46 -04:00