uptime hypervisor would be failed if some hosts downed

Change-Id: I80637622d1e9987da60e207a55839b5df0df9a44
This commit is contained in:
chenhb 2019-10-14 17:21:40 +08:00
parent 13c21f2972
commit e74eeef83b

View File

@ -97,7 +97,8 @@ class ListAndGetUptimeHypervisors(utils.NovaScenario):
hypervisors = self._list_hypervisors(detailed)
for hypervisor in hypervisors:
self._uptime_hypervisor(hypervisor)
if hypervisor.state == "up":
self._uptime_hypervisor(hypervisor)
@validation.add("required_services", services=[consts.Service.NOVA])