'Incrementally update host state from a volume.'

def consume_from_volume(self, volume):

    volume_gb = volume['size']
    self.allocated_capacity_gb += volume_gb
    self.provisioned_capacity_gb += volume_gb
    if (self.free_capacity_gb == 'infinite'):
        pass
    elif (self.free_capacity_gb == 'unknown'):
        pass
    else:
        self.free_capacity_gb -= volume_gb
    self.updated = timeutils.utcnow()
