Bases: object
Context manager to simplify error handling for connecting to ceph.
Bases: object
List of command line parameters to be passed to ceph commands to reflect RBDDriver configuration such as RBD user name and location of ceph.conf.
Create a snapshot on an RBD object.
| Volume: | Name of RBD object |
|---|---|
| Name: | Name of snapshot |
Import RBD volume from image file.
Uses the command line import instead of librbd since rbd import command detects zeroes to preserve sparseness in the image.
| Base: | Path to image file |
|---|---|
| Name: | Name of RBD volume |
Remove RBD volume
| Name: | Name of RBD volume |
|---|
Remove a snapshot from an RBD volume.
| Volume: | Name of RBD object |
|---|---|
| Name: | Name of snapshot |
| Ignore_errors: | whether or not to log warnings on failures |
Resize RBD volume.
| Name: | Name of RBD object |
|---|---|
| Size: | New size in bytes |
Revert an RBD volume to its contents at a snapshot.
| Volume: | Name of RBD object |
|---|---|
| Name: | Name of snapshot |
Bases: object
Context manager for dealing with an existing rbd volume.
This handles connecting to rados and opening an ioctx automatically, and otherwise acts like a librbd Image object.
The underlying librados client and ioctx can be accessed as the attributes ‘client’ and ‘ioctx’.