'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'

def import_image(self, base, name):

    args = ['--pool', self.pool, base, name]
    args += ['--image-format=2']
    args += self.ceph_args()
    utils.execute('rbd', 'import', *args)
