ntt-sic / masakari

[UNMAINTAINED]
https://wiki.openstack.org/wiki/Masakari
Apache License 2.0
40 stars 24 forks source link

Fix checking records in vm_list #49

Closed hirose31 closed 6 years ago

hirose31 commented 7 years ago

This pull request shortens the time to ecavuate invocation. On my environment, this PR shortens by 60 seconds (recovery_max_retry_count(6) * recovery_retry_interval(10)).

dbapi.get_one_vm_list_by_uuid_and_progress_create_at_last returns not 0 but None in case of no record. So I'v changed from if row_cnt == 0 to if not result in _create_vm_list_db_for_failed_host like _create_vm_list_db_for_failed_instance.