Comment 1 for bug 1821731

Revision history for this message
Pierre Riteau (priteau) wrote :

We try to update the lease by setting the end date to be utcnow(): https://github.com/openstack/blazar-tempest-plugin/blob/master/blazar_tempest_plugin/tests/scenario/test_host_reservation.py#L296-L302

If utcnow() is near the end of a second, by the time the request reaches blazar-manager, the time may have reached the next second already.

We should use the same code as instance reservation: https://github.com/openstack/blazar-tempest-plugin/blob/master/blazar_tempest_plugin/tests/scenario/test_instance_reservation.py#L201-L208