The cinder.backup.drivers.swift Module

Implementation of a backup service that uses Swift as the backend

Related Flags

backup_swift_url:
 The URL of the Swift endpoint (default: None, use catalog).
backup_swift_auth_url:
 The URL of the Keystone endpoint for authentication (default: None, use catalog).
swift_catalog_info:
 Info to match when looking for swift in the service ‘ catalog.
keystone_catalog_info:
 Info to match when looking for keystone in the service catalog.
backup_swift_object_size:
 The size in bytes of the Swift objects used for volume backups (default: 52428800).
backup_swift_retry_attempts:
 The number of retries to make for Swift operations (default: 10).
backup_swift_retry_backoff:
 The backoff time in seconds between retrying failed Swift operations (default: 10).
backup_compression_algorithm:
 Compression algorithm to use for volume backups. Supported options are: None (to disable), zlib and bz2 (default: zlib)
backup_swift_ca_cert_file:
 The location of the CA certificate file to use for swift client requests (default: None)
backup_swift_auth_insecure:
 If true, bypass verification of server’s certificate for SSL connections (default: False)
class SwiftBackupDriver(context, db=None)

Bases: cinder.backup.chunkeddriver.ChunkedBackupDriver

Provides backup, restore and delete of backup objects within Swift.

class SwiftObjectReader(container, object_name, conn)

Bases: object

read()
class SwiftObjectWriter(container, object_name, conn)

Bases: object

close()
write(data)
delete_object(container, object_name)

Deletes a backup object from a Swift object store.

get_container_entries(container, prefix)

Get container entry names

get_extra_metadata(backup, volume)

Swift driver does not use any extra metadata.

get_object_reader(container, object_name, extra_metadata=None)

Return reader object.

Returns a reader object that retrieves a chunk of backed-up volume data from a Swift object store.

get_object_writer(container, object_name, extra_metadata=None)

Return a writer object.

Returns a writer object that stores a chunk of volume data in a Swift object store.

put_container(container)

Create the container if needed. No failure if it pre-exists.

update_container_name(backup, container)

Use the container name as provided - don’t update.

get_backup_driver(context)