'Extend an existing volume.'

def extend_volume(self, volume, new_size):

    capacity = (new_size * units.Gi)
    LOG.debug('Extending    volume    to    %(capacity)s    bytes', {'capacity': capacity}, resource=volume)
    self._extend_volume(volume['id'], int((new_size * units.Gi)), user_id=volume['user_id'], project_id=volume['project_id'])
