Here you can see the method consume_from_volume, which updates the attributes for the pool (PoolState) object. This updates the allocated_capacity_gb, free_capacity_gb.
https://github.com/openstack/cinder/blob/master/cinder/scheduler/host_manager.py#L336-L353
The pool's capabilities is NOT updated, and hence the get_pools call returns out of date values for the pool between get_volume_stats() calls.
Here you can see the method from_volume, which updates the attributes for the pool (PoolState) object. capacity_ gb, free_capacity_gb.
consume_
This updates the allocated_
https:/ /github. com/openstack/ cinder/ blob/master/ cinder/ scheduler/ host_manager. py#L336- L353
The pool's capabilities is NOT updated, and hence the get_pools call returns out of date values
for the pool between get_volume_stats() calls.