Commit Graph

14 Commits

Author SHA1 Message Date
Lingxian Kong cd68986948 Get backup list by instance ID or name
Change-Id: I97d3fcfa2935f76cb8753734fec6dab8669e732a
2021-05-19 20:43:06 +12:00
Lingxian Kong c7319d8fe8 Support to restore backup from data location
This feature needs to bump python-troveclient major version as it
introduced an incompatible change for backup creation CLI.

Change-Id: I6fe94ccb552e2c0020150494ccc2ba6361184229
2021-02-21 00:37:08 +13:00
Lingxian Kong 4c71809fad Bulk backup delete
Change-Id: I100f8a302aeb498e3c0cebd8d36ef5fa437d444d
2021-02-19 11:07:23 +13:00
Lingxian Kong 4756e291b6 Show project Id for backup
Change-Id: I7314abe06ac750c202382ffcf37eaa08bfabcede
2020-09-15 12:27:41 +12:00
Lingxian Kong e4d79c2cbc Support getting backups of a specific project
Change-Id: Ia590fa6aae23b7323963181d79c9b0097fd2e4d1
2020-09-14 00:07:12 +12:00
Lingxian Kong 40af556264 Support backup strategy
Change-Id: Ic8c20109b287f2f9220379cb249669d18b52893d
2020-07-16 23:03:53 +12:00
Sean McGinnis 2b8282bb1e
Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: Ib83e626f51e6e01898bb7931c1660a1a548500f3
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 11:59:46 -05:00
Lingxian Kong 982b3f035a Support backup filtering
To get all the backups of an instance:

    openstack database backup list --instance-id <instance-id>

Admin user gets backups of all the projects:

    openstack database backup list --all-projects

Story: #2006433
Task: #36346
Change-Id: I871d1ffa27805158024e8ecbe1dceae725c4deac
2019-08-25 23:33:26 +12:00
wangyao 83eb65cc84 Add execution-delete to OSC
This change adds database support to the python-openstackclient
project for the execution-delete command.

The trove command execution-delete is now:
    openstack database backup execution delete

Change-Id: I9934a047d48daed53567b59bb51a2eab4d6e37b5
Partially-Implements: blueprint trove-support-in-python-openstackclient
2018-07-17 16:20:58 +08:00
zhanggang 84e5873a03 Add backup-list-instance to OSC
This change adds database support to the python-openstackclient
project for the backup-list-instance command.

The trove command backup-list-instance is now:
    openstack database backup list instance

Change-Id: I383cfe0bac54051641fe0589057c24e7d885f5c1
Partially-Implements: blueprint trove-support-in-python-openstackclient
2017-12-23 04:54:54 -05:00
zhanggang 504918fc63 Add backup-create to OSC
This change adds database support to the python-openstackclient
project for the backup-create command.

The trove command backup-create is now:
    openstack database backup create

Change-Id: I0dedce04efa9d2af4455bb6a94a96b6cbfc77bab
Partially-Implements: blueprint trove-support-in-python-openstackclient
2017-12-22 04:06:41 -05:00
zhanggang bd401268ac Add backup-delete to OSC
This change adds database support to the python-openstackclient
project for the backup-delete command.

The trove command backup-delete is now:
    openstack database backup delete

Change-Id: I869d8649cc83d8c889995a8133e6b91407d7f862
Partially-Implements: trove-support-in-python-openstackclient
2017-12-08 03:13:27 -05:00
wangyao d7e5252d8c Add backup-show to OSC
This change adds database support to the python-openstackclient
project for the backup-show command.

The trove command backup-show is now:
    openstack database backup show

Change-Id: I2f8a4c9c9df1ca68c5746acd272e80d7d9eda364
Partially-Implements: trove-support-in-python-openstackclient
2017-11-30 16:48:03 +08:00
Trevor McCasland 808caecc6d Add backup-list to OSC
This change adds database support to the python-openstackclient
project for the backup-list command.

The trove command backup-list is now:
    openstack database backup list

Change-Id: I9aafb76c5a0d4a49b92a356e8465abf5919ab0ac
Partially-Implements: trove-support-in-python-openstackclient
2017-01-17 11:24:09 -06:00