summaryrefslogtreecommitdiff
path: root/openstackclient/volume/v2/backup.py
Commit message (Collapse)AuthorAgeFilesLines
* Add warning message for --state option of set command in volumeHuanxuan Ao2016-09-261-1/+4
| | | | | | | | | There are some set commands can set object state, it maybe a danger behavor for users, so add explanation and warning in the help message of the "--state" option to talk users be caution when using (cinderclient have done this too) Change-Id: I6a902887ea98879999c9972f36b1b7ef332173c3
* Add "volume backup set" command in volume v2Huanxuan Ao2016-09-221-0/+59
| | | | | | | | Add "volume backup set" command in volume v2 (v2 only) to set backup name, description and state Change-Id: If17e8457db9a4704fb5bb9c75921ed82fd0069cf Closes-Bug: #1613261
* Rename backup commands in volume v1 and v2Huanxuan Ao2016-08-111-15/+100
| | | | | | | | | | | | | | | | | | | | | Backup commands are used only in volume service now, but "backup" is too generic, users may not know the commands are used for volume from the commands name. By seeing the command name, users can only see the "backup" but do not know which object the backup commands work for. It may confuse users. I think rename "backup" to "volume backup" can depict resource relation and will be helpful for users to know the commands clearly. So add new commands ``volume backup create/delete/ list/show/restore`` to replace the old commands ``backup create/delete/list/show/restore``. And also deprecate old commands. Change-Id: I4f844d9bc48573eb4d17288ce6b8a90cea00d16a Implements: bp backup-snapshot-renamed-for-volume-resource Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com>
* Support error handling for delete commands in volumev2Huanxuan Ao2016-07-141-4/+23
| | | | | | | | Some delete conmmands in volumev2 did not support error handling, this patch add them and also add the unit tests for bulk deletion Change-Id: I56ade6f9c7396c78fb989547476c4d94ccd76eae
* Add "--incremental" option to "backup create" command in volume v2Paul Bourke2016-07-111-0/+7
| | | | | | | | | | Cinder V2 API supports creating volume backup with "--incremental" option. However, OSC doesn't support this argument. So this patch adds the "--incremental" option to allow users to create incremental style backups. Change-Id: Iefac5f1a6c9ef006ad9c22d4250ae6df50504781 Closes-Bug: 1600196
* Add '--force' option to 'backup delete' command in volumev2Huanxuan Ao2016-07-061-1/+7
| | | | | | | | | Add '--force' option to 'backup delete' command in volumev2 (v2 only) to allow delete in state other than error or available. Change-Id: I661ea0d465db227e374cbacdde0206fa1a6dd3d5 Closes-Bug: #1597188
* Add "--snapshot" option to "backup create" command in volumev2Huanxuan Ao2016-07-011-0/+10
| | | | | | | | Add "--snapshot" option to "backup create" command to support backing up a snapshot. Change-Id: Ibecbf1902599875f422d372d529835f73211d3ec Closes-Bug: #1597184
* Merge "Add "--force" option to "backup create" command in volumev2"Jenkins2016-06-281-1/+8
|\
| * Add "--force" option to "backup create" command in volumev2Huanxuan Ao2016-06-271-1/+8
| | | | | | | | | | | | | | | | | | | | Cinder V2 API supports creating volume backup with "--force" option. However, OSC doesn't support this argument. So this patch add the "--force" option to allow users to back up a in-use volume. Change-Id: I326f8d6172b2830da4cf1317348af50142cc5490 Closes-Bug: #1596443
* | Change "ID only" to "name or ID" for backup commandsHuanxuan Ao2016-06-271-1/+1
|/ | | | | | | | Tested "find_resulce()" can find a backup by name or ID. But some help messages and doc were "ID only", this patch modify them. Change-Id: I22dcc3a0b40f2bafabb6d26498158e2468037312
* osc-lib: commandDean Troyer2016-06-131-1/+1
| | | | | | | Leave command.py and test_command.py as a sanity check during the deprecation period. Change-Id: I24e1b755cbfbcbcaeb5273ec0c9706b82384fc85
* osc-lib: utilsDean Troyer2016-06-131-1/+1
| | | | | | | | Use osc-lib directly for utils. Leave openstackclient.common.utils for deprecation period. Change-Id: I5bd9579abc4e07f45219ccd0565626e6667472f7
* i18n support for help and error messages in cinderSheel Rana2016-05-231-9/+11
| | | | Change-Id: I98fbc959034fe0530966291643b381855801de20
* Make snapshot and backup name optionalIvan Kolodyazhny2016-04-061-1/+0
| | | | | | | Cinder does not require snapshot and backup name. These arguments are optional. Change-Id: I05d59efc9642205a25684bf0b77758328296d959
* log take_action parameters in a single placeAkihiro Motoki2016-02-021-23/+5
| | | | | | | | | | | | Previously each command logs take_action parameters explicitly by using @utils.log_method decorator or log.debug(). Some commands have no logging. This commit calls a logger in the base class and drops all logging definition from individual commands. Closes-Bug: #1532294 Change-Id: I43cd0290a4353c68c075bade9571c940733da1be
* Trivial: Remove useless return from files in image and volumeTang Chen2015-12-181-1/+0
| | | Change-Id: I3526ecd202d0908d91305a066ad72d03cee794b5
* Add support for volume backup v2 commandAmey Bhide2015-06-041-0/+132
| | | | | | | | | openstack backup create openstack backup list openstack backup restore Implements: blueprint volume-v2 Change-Id: I77965730065dd44f256c46bcc43c1e6a03b63145
* Add support for volume v2 APIAmey Bhide2015-05-301-0/+70
Added following commands for volume V2 API: volume show volume delete volume type show volume type delete snapshot show snapshot delete backup show backup delete Implements: blueprint volume-v2 Change-Id: I68bd303c194f304ad15f899d335b72a8bf3ebe10