Stop relying on VCPU count in the introspection tests

Starting with Rocky bare metal nodes no longer expose VCPU/DISK/RAM,
just use hypervisor count instead.

Change-Id: I792d1e04dc9d98341f9ee8106507afd43c980187
This commit is contained in:
Dmitry Tantsur 2018-08-21 12:31:49 +02:00
parent 3dc8f79c86
commit a0a36fe4d0
1 changed files with 1 additions and 2 deletions

View File

@ -201,8 +201,7 @@ class InspectorScenarioTest(BaremetalScenarioTest):
while True:
time.sleep(CONF.baremetal_introspection.hypervisor_update_sleep)
stats = self.hypervisor_stats()
expected_cpus = self.baremetal_flavor()['vcpus']
if int(stats['hypervisor_statistics']['vcpus']) >= expected_cpus:
if int(stats['hypervisor_statistics']['count']):
break
timeout = CONF.baremetal_introspection.hypervisor_update_timeout