Bug 1545532 - Empty hypervisor stats - No valid host was found
Summary: Empty hypervisor stats - No valid host was found
Keywords:
Status: CLOSED DUPLICATE of bug 1543914
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Eoghan Glynn
QA Contact: Joe H. Rahme
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-15 08:42 UTC by Ronnie Rasouli
Modified: 2019-09-09 15:07 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-18 12:40:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ronnie Rasouli 2018-02-15 08:42:43 UTC
Description of problem:


SOS report on: http://ikook.tlv.redhat.com/uploads/sosreport-RonnieRasouli-20180215031515.tar.xz

By running tempest automation tests, there are repeating errors of "Message: No valid host was found. , Code: 500"'

Looking at the openstack hypervisor list show the resources are empty.

+----------------------+-------+
| Field                | Value |
+----------------------+-------+
| count                | 0     |
| current_workload     | 0     |
| disk_available_least | 0     |
| free_disk_gb         | 0     |
| free_ram_mb          | 0     |
| local_gb             | 0     |
| local_gb_used        | 0     |
| memory_mb            | 0     |
| memory_mb_used       | 0     |
| running_vms          | 0     |
| vcpus                | 0     |
| vcpus_used           | 0     |
+----------------------+-------+

This test for example:
http://staging-jenkins2-qe-playground.usersys.redhat.com/view/DFG/view/cloud_apps/view/heat/job/DFG-cloud_apps-heat-13_director-rhel-virthost-3cont_1comp_3ceph-ipv4-vxlan-poc/1/testReport/heat_tempest_plugin.tests.functional.test_translation/TestTranslation/test_value_from_nested_stack/

Version-Release number of selected component (if applicable):

RHOS13 core_puddle: 2018-02-07.4

openstack-nova-api-17.0.0-0.20180123163703.27eadbc.el7ost.noarch
openstack-nova-conductor-17.0.0-0.20180123163703.27eadbc.el7ost.noarch
openstack-nova-compute-17.0.0-0.20180123163703.27eadbc.el7ost.noarch

How reproducible:
100%

Steps to Reproduce:
1. Deploy RHOS13 with 3 controllers, 3 CEPH, 1 Compute
2. run tempest Jenkins job for heat


Actual results:

12 failures related to nova valid host found 


Expected results:

provision VM without those errors 

Additional info:

 fault                               | {u'message': u'No valid host was found. There are not enough hosts available.', u'code': 500, u'details': u'  File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 1108, in schedule_and_build_instances\n    instance_uuids, return_alternates=True)\n  File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 714, in _schedule_instances\n    return_alternates=return_alternates)\n  File "/usr/lib/python2.7/site-packages/nova/scheduler/utils.py", line 729, in wrapped\n    return func(*args, **kwargs)\n  File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 53, in select_destinations\n    instance_uuids, return_objects, return_alternates)\n  File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 37, in __run_method\n    return getattr(self.instance, __name)(*args, **kwargs)\n  File "/usr/lib/python2.7/site-packages/nova/scheduler/client/query.py", line 42, in select_destinations\n    instance_uuids, return_objects, return_alternates)\n  File "/usr/lib/python2.7/site-packages/nova/scheduler/rpcapi.py", line 158, in select_destinations\n    return cctxt.call(ctxt, \'select_destinations\', **msg_args)\n  File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 174, in call\n    retry=self.retry)\n  File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 131, in _send\n    timeout=timeout, retry=retry)\n  File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 559, in send\n    retry=retry)\n  File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 550, in _send\n    raise result\n', u'created': u'2018-02-15T08:33:42Z'} 

|

Comment 1 Sylvain Bauza 2018-02-16 14:42:08 UTC
Could you please provide the nova-compute logs with if possible DEBUG ?
Looks like something is wrong with the nova driver that doesn't provide the hypervisor resources.

Comment 2 Ronnie Rasouli 2018-02-18 12:40:36 UTC

*** This bug has been marked as a duplicate of bug 1543914 ***


Note You need to log in before you can comment on or make changes to this bug.