Merge "Switch cinder api to v2 and add --force and --incremental"

This commit is contained in:
Jenkins 2016-02-29 14:09:03 +00:00 committed by Gerrit Code Review
commit c9ac953c77
2 changed files with 3 additions and 2 deletions

View File

@ -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):

View File

@ -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,