939 Commits

Author SHA1 Message Date
Jenkins
580ed3f680 Merge "Fix omission of request_ids returned to user" 2016-02-27 16:35:16 +00:00
Cao ShuFeng
b2d0f988b9 Fix return type in consistencygroups docstring
Fix return type of create_from_src in consistencygroups.

TrivialFix

Change-Id: I510ccbb919af0a3f0950ff04f9c41b3d3b6aacfa
2016-02-26 14:52:54 +08:00
Jenkins
53fc06dd81 Merge "Don't print HTTP codes for non-HTTP errors" 2016-02-25 20:46:58 +00:00
Jenkins
fe66becd09 Merge "Add extra_specs_list test" 2016-02-25 18:18:48 +00:00
Jenkins
33a40e4e52 Merge "Updated from global requirements" 2016-02-25 17:40:07 +00:00
Jenkins
63955e2a9d Merge "Remove pypy from tox environment list" 2016-02-25 17:27:50 +00:00
OpenStack Proposal Bot
49d63ab360 Updated from global requirements
Change-Id: Ie8e5df17dda66255802b475e6f5295d74a2eface
2016-02-24 21:49:51 +00:00
Brandon Palm
6b5e3d1faa Use instanceof instead of type
Adjusted conditional statements to use instanceof when
comparing variables. Instanceof supports inheritance type
checking better than type.

Change-Id: I449f3df92b3646c384de717b7d53f7f85258c449
2016-02-24 13:46:39 -06:00
Jenkins
8155d453c8 Merge "Extra 'u' in output of cinder cli commands" 2016-02-24 18:32:35 +00:00
Eric Harney
ccacc338a5 Add --cascade to volume delete
This adds the --cascade parameter to the volume
delete command.  Using this will call the volume delete
with an additional parameter that deletes snapshots as
part of the same operation.

The name "cascade" is chosen to be somewhat generic,
so that we can extend this if desired in the future.
(And to hint at the terminology from SQL.)

Depends-On: I33d15b76d4bd0de14c635d404b2c97096c977a58
Change-Id: I05ce61e647c43f9a1e6d74444356a76e5d284673
Blueprint: del-vols-with-snaps
2016-02-24 16:31:32 +00:00
Eric Harney
c4c2c56042 Don't print HTTP codes for non-HTTP errors
This changes:
 $ cinder rename asdf
 ERROR: Must supply either name or description. (HTTP 1)

To:
 $ cinder rename asdf
 ERROR: Must supply either name or description.

Affects rename, snapshot-rename, consisgroup-update,
and consisgroup-create-from-src.
(consisgroup-* previously printed HTTP 400.)

Closes-Bug: #1549020
Closes-Bug: #1549026
Change-Id: Ia920b3b75b53170789b694cbdd49100bd6a72d21
2016-02-24 11:00:05 -05:00
LisaLi
1d0037e47b Add backup list sorted by data_timestamp
As Mitaka implments snapshot backup function, created_at
shows when backups are created, and data_timestamp shows
time when data are taken from volumes.

This patch adds data_timestamp as a sort item, so that
customers can list backups sorted by data_timestamp. As
a result, they can know which backup has latest data.

Closes-Bug: #1536065

Change-Id: Ibb680769cc73bd513dee81e55817d87df5958359
2016-02-24 02:20:36 +00:00
John Griffith
88934c2708 Add replication v2.1 (cheesecake) calls
Cheesecake introduces a host based replication use case.
This change includes the changes needed to support those
implementations in the Cinder API.

Implements: blueprint replication-update

Change-Id: I74dc1a00fb4a2c05510c6159253036ac19706959
2016-02-24 00:47:13 +00:00
Ankit Agrawal
8d1d409700 Add release notes for return-request-id-to-caller
For more details on how request_id will be returned to the caller,
please refer to the approved blueprint [1] discussed with the
cross-project team.
[1] http://specs.openstack.org/openstack/openstack-specs/specs/return-request-id.html

Implements: blueprint return-request-id-to-caller
Change-Id: Ic6b557895707f30869219bd5096c4ef7785cf7dc
2016-02-24 00:37:28 +00:00
Jenkins
8c8cdabde3 Merge "Eliminate unnecessary character" 2016-02-23 22:04:35 +00:00
Jenkins
33a6589106 Merge "Add request_ids attribute to resource objects" 2016-02-23 22:04:29 +00:00
Jenkins
d9ded178ff Merge "Add request_ids attribute to resource objects" 2016-02-23 22:04:23 +00:00
Jenkins
13a29b5a32 Merge "Fix sort problem in snapshot and backup list" 2016-02-23 22:04:17 +00:00
Jenkins
79750ab8ad Merge "Add request_ids attribute to resource objects" 2016-02-23 22:04:11 +00:00
Jenkins
0d4af65e8a Merge "Provide consistency for Wrapper classes" 2016-02-23 22:03:50 +00:00
Sean McGinnis
40f7f29fc7 Remove pypy from tox environment list
Pypy is a supported python interpretor for python-cinderclient,
but I don't think it's necessary to run all unit tests with it
for everyone. We do have the gate-python-cinderclient-pypy test
to validate there are no incompatibilities.

Pypy is also not available by default, so it is an extra step for
someone to know to install and set up the pypy environment before
they can run tox without failures.

Change-Id: I15e315415574dfe8cf8a3d5f7f968a082b81b165
2016-02-22 13:07:04 -06:00
Sheel Rana
a26c1e67b6 Extra 'u' in output of cinder cli commands
In output of cinder show command, below fields contains extra 'u'
character being unicode:
1. volume_image_metadata
2. metadata

In output of "cinder credentials", below field contains extra 'u'
1. roles

In output of "cinder qos-create", below field contains extra 'u'
1. specs

In output of "cinder qos-list", below field contains extra 'u'
1. specs

In output of "cinder extra-specs-list", below field contains extra 'u'
1. extra_specs

In output of "cinder qos-show", below field contains extra 'u'
1. specs

Change-Id: I8be32f117ddc29b087ee872ff065c175dd70b372
Closes-Bug: #1538413
Closes-Bug: #1538415
2016-02-19 17:26:24 +00:00
Eric Harney
befd35bced Add extra_specs_list test
There is no test covering this command.

Change-Id: I887cef64490037b17dbea5d82b099324b5fe9d58
2016-02-18 17:10:15 -05:00
Ivan Kolodyazhny
c8f1ca1650 Use ostestr as a tests runner
ostestr has more user-friendly output including lists of all and
failed tests.

Change-Id: I6db42b0f7480d79b85e20334fb3c2d8236efc316
2016-02-17 18:47:24 +02:00
Ankit Agrawal
b560b1777c Add request_ids attribute to resource objects
Added request_ids attribute to resource object for all the volume,
volume_types, volume_type_access and volume_snapshots APIs by
updating following APIs:

volumes: delete, update, force_delete, reset_state, extend,
migrate_volume, retype, update_readonly_flag, manage, unmanage,
promote, reenable, get_pools, initialize_connection,
terminate_connection, get_encryption_metadata

volume_types: delete
volume_type_access: add_project_access remove_project_access
volume_snapshots: delete and update

Returning list with request_ids as attribute in case of
'delete_metadata' and 'delete_image_metadata' APIs.

These changes are required to return 'request_id' from client to
log request_id mappings of cross projects.

For more details on how request_id will be returned to the caller,
please refer to the approved blueprint [1] discussed with the
cross-project team.
[1] http://specs.openstack.org/openstack/openstack-specs/specs/return-request-id.html

DocImpact
'request-ids' will be returned as an attribute with response object.
User can access it using 'res.request_ids' where 'res' is a
response object.

Change-Id: Icc4565291220278a65e6910a840fba623b750cc4
Partial-Implements: blueprint return-request-id-to-caller
2016-02-17 13:38:13 +00:00
Ankit Agrawal
2b25183c97 Fix return type in backup docstring
Fixed return type for export_record and import_record
in volume backups.

TrivialFix

Change-Id: I58aea0996961eab33e5cfa7d57b59cda9859e82e
2016-02-17 01:23:51 -08:00
Cao Shufeng
8c0f84f8ad Fix omission of request_ids returned to user
ManagerWithFind's find() and findall() function is exposed to users
as ManagerWithFind is parent class of VolumeManager, SnapshotManager,
etc.

When the find() and findall() function is called by users, they should
also return request_ids to users.

Change-Id: I87dca61f96ff9cf4dc9a443a46d7f559e8b3026f
Closes-Bug: 1545975
2016-02-17 16:45:11 +08:00
daiki kato
2aa26f5d2a Eliminate unnecessary character
Eliminated unnecessary character about endpoint of keystone.

Change-Id: I4ae38d22c28162d87277379a693614c2a63433c9
2016-02-17 11:16:58 +09:00
Jenkins
f88e4da1d6 Merge "Remove openstack-common.conf" 2016-02-16 23:13:15 +00:00
Jose Porrua
5efb5964f7 Avoid logging sensitive info in http requests.
This patch follows the same approach as other OpenStack python
clients, by adding a safe header method to hash sensitive information.

Change-Id: I980ea7411b1e7f6d47d0a75d58de87b0f944d0d9
Closes-bug: #1516689
2016-02-16 15:36:32 +00:00
Ankit Agrawal
ec65605ede Add request_ids attribute to resource objects
Added request_ids attribute to resource object for all the
cgsnapshots, consistencygroups, qos_specs, quota_classes,
quotas and services APIs by updating following APIs:

cgsnapshots: delete, update
consistencygroups: delete, update, create
qos_specs: delete, associate, disassociate, disassociate_all
quota_classes: update
quotas: update
services: enable, disable, disable_log_reason

These changes are required to return 'request_id' from client to
log request_id mappings of cross projects.

For more details on how request_id will be returned to the caller,
please refer to the approved blueprint [1] discussed with the
cross-project team.
[1] http://specs.openstack.org/openstack/openstack-specs/specs/return-request-id.html

DocImpact
'request-ids' will be returned as an attribute with response object.
User can access it using 'res.request_ids' where 'res' is a
response object.

Change-Id: I7b399512fcec9ecd31938656deb60e325bb76ad4
Partial-Implements: blueprint return-request-id-to-caller
2016-02-16 00:53:50 -08:00
Ankit Agrawal
c49fce3909 Add request_ids attribute to resource objects
Added request_ids attribute to resource object for all the
volume_backups, volume_encryption_types and volume_transfers
APIs by updating following APIs:

volume_backups: reset_state, delete, export_record, import_record
volume_transfers: delete
volume_encryption_types: list

Returning list with request_ids as attribute in case of 'list' API
for volume_encryption_types.

These changes are required to return 'request_id' from client to log
request_id mappings of cross projects.

For more details on how request_id will be returned to the caller,
please refer to the approved blueprint [1] discussed with the
cross-project team.
[1] http://specs.openstack.org/openstack/openstack-specs/specs/return-request-id.html

DocImpact
'request-ids' will be returned as an attribute with response object.
User can access it using 'res.request_ids' where 'res' is a
response object.

Change-Id: I2197ca38f6c9a8b0ced5c82d29676b49c9700b09
Partial-Implements: blueprint return-request-id-to-caller
2016-02-16 00:34:58 -08:00
Ankit Agrawal
b2fc77f731 Provide consistency for Wrapper classes
Updated TupleWithMeta class to make it consistent with other Meta
classes in order to avoid confusion. Also made provision to call
TupleWithMeta with a tuple containing one or more elements.

For more details on how request_id will be returned to the caller,
please refer to the approved blueprint [1] discussed with the
cross-project team.
[1] http://specs.openstack.org/openstack/openstack-specs/specs/return-request-id.html

Change-Id: I5a79a4ed8cb4dc83ea3b64499df191750462100d
Partial-Implements: blueprint return-request-id-to-caller
2016-02-15 23:41:31 -08:00
Jenkins
bdeb22da28 Merge "Removes MANIFEST.in as it is not needed explicitely by PBR" 2016-02-15 15:06:50 +00:00
Jenkins
9878bd6480 Merge "Code is hosted on git.openstack.org" 2016-02-15 15:06:44 +00:00
Jenkins
0177bf81b9 Merge "Update HACKING with current information" 2016-02-15 15:02:16 +00:00
Jenkins
050da686cd Merge "Fix link for OpenStack manual" 2016-02-15 14:41:35 +00:00
Jenkins
77cbff6639 Merge "Allow "cinder backup-delete" to delete multiple backups in one request" 2016-02-14 16:59:58 +00:00
Jenkins
9095a00f3d Merge "Pass insecure option to HTTPClient" 2016-02-12 00:10:03 +00:00
Jenkins
3a17042128 Merge "Put py34 first in the env order of tox" 2016-02-11 23:21:39 +00:00
Shilpa Jagannath
a3dca1599f Allow "cinder backup-delete" to delete multiple backups in one request
While "cinder snapshot-delete" and "cinder delete" allow multiple resources to be deleted in a single command, "cinder backup-delete" request can only delete one backup at a time. Adding this capability to backups in cinderclient. Enables "cinder backup-delete" to delete multiple backups in a single command.

With this change the command can be run as below:

cinder backup-delete <backup> [<backup>...]

DocImpact
Closes-Bug: #1543056
Implements: blueprint cli-backup-multiple-deletes

Change-Id: I767710bda3b7c358c6525c9a9f074010084e411d
2016-02-11 10:40:05 +00:00
OpenStack Proposal Bot
c6e06a1b2a Updated from global requirements
Change-Id: I697e3c611ef51994f99e4cebe469df57bb72ea03
2016-02-11 07:44:10 +00:00
Jenkins
c56c1d47b4 Merge "Fix some flake8 violations" 2016-02-11 03:24:06 +00:00
Jenkins
0f26309f58 Merge "Return wrapper classes with request_ids attribute" 2016-02-11 01:58:45 +00:00
Jenkins
c297452aab Merge "Add Wrapper classes for list, dict, tuple" 2016-02-10 16:16:21 +00:00
Jenkins
77feadd6a0 Merge "Remove debug statement" 2016-02-09 21:38:42 +00:00
Chaozhe.Chen
9e60e4a592 Fix some flake8 violations
1. Wrong use of 'noqa'. "# flake8: noqa" option disables all checks
for the whole file.
2. Remove exclusion of 'tools' and '*openstack/common*' in flake8 and
fix the violations.

Change-Id: I153e992ffd6a80e70a99d7066c503c34326c93ab
Closes-bug: #1540254
2016-02-09 20:28:30 +08:00
Jenkins
64138007bd Merge "Bootable filter for listening volumes from CLI" 2016-02-08 16:49:49 +00:00
Sheel Rana
3dec787a52 Bootable filter for listening volumes from CLI
This fix depends upon fix proposed in cinder.

Depends-On: I1f1ec20441b28e01bf07bc4f60d848b653e58d58

DocImpact

Implements : blueprint select-volume-through-bootable-option

Closes-Bug: #1535749

Change-Id: Ibf3eadc95307e0c803ad9fa449578f8ca6f654d0
2016-02-04 15:11:24 +00:00
Jay S Bryant
5523e32dc8 Remove debug statement
We found in a recent review that one of my debug
print statements was accidentally let in an
earlier patch.  This patch removes my debug code.

Change-Id: I1d1baaed4362d499b1c141f0eba36dfe883d0e3a
2016-02-03 15:08:01 -06:00