Merge "Switch cinder api to v2 and add --force and --incremental"
This commit is contained in:
commit
c9ac953c77
@ -204,7 +204,8 @@ class BackupOs:
|
||||
def backup_cinder(self, volume_id, name=None, description=None):
|
||||
client_manager = self.client_manager
|
||||
cinder = client_manager.get_cinder()
|
||||
cinder.backups.create(volume_id, self.container, name, description)
|
||||
cinder.backups.create(volume_id, self.container, name, description,
|
||||
incremental=True, force=True)
|
||||
|
||||
|
||||
def snapshot_create(backup_opt_dict):
|
||||
|
@ -99,7 +99,7 @@ class ClientManager:
|
||||
options = self.options
|
||||
logging.info("[*] Creation of cinder client")
|
||||
self.cinder = cclient.Client(
|
||||
version="1",
|
||||
version="2",
|
||||
username=options.user_name,
|
||||
api_key=options.password,
|
||||
project_id=options.tenant_name,
|
||||
|
Loading…
x
Reference in New Issue
Block a user