test_aggregate_add_host_create_server_with_az fails with remote compute connection scenario
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned | ||
tempest |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Problem:
If it is not all in one environment, it is the controller node connecting with remote nova compute node. It fails to run tempest test case of test_aggregate_
{"message": "NV-67B7376 No valid host was found. ", "code": 500, "details": " File \"/usr/
Basic investigation:
Since the code logic is to add the host of nova compute which is the same of controller node as default. Above scenario is the compute node is not the same with controller, it is remote nova compute node, it will show "No valid host was found".
summary: |
test_aggregate_add_host_create_server_with_az fails with remote compute - connetion + connection scenario |
tags: | added: testing |
Changed in tempest: | |
status: | Incomplete → New |
status: | New → Incomplete |
Changed in tempest: | |
status: | Incomplete → Fix Committed |
Changed in nova: | |
status: | New → Invalid |
Changed in tempest: | |
status: | Fix Committed → Fix Released |
Root cause:
2014-03-19 07:26:34.070 15316 WARNING nova.scheduler. filters. compute_ filter [req-13d9cfa3- 1d8f-4c26- a46a-6636e8bd9a 24 3d7ffb47dd41404 491d4a0021c0a4d 58 1fa8989d1516437 8b200a03ca4d125 ed] NV-ACBDB7A (192-168-0-6, 192-168- 0-6.scecd. ibm.com) ram:5340 disk:20480 io_ops:0 instances:0 has not been heard from in a while 1d8f-4c26- a46a-6636e8bd9a 24 3d7ffb47dd41404 491d4a0021c0a4d 58 1fa8989d1516437 8b200a03ca4d125 ed] NV-9EF7356 Filter ComputeFilter returned 0 hosts driver [req-13d9cfa3- 1d8f-4c26- a46a-6636e8bd9a 24 3d7ffb47dd41404 491d4a0021c0a4d 58 1fa8989d1516437 8b200a03ca4d125 ed] [instance: 4c40d930- dc98-4d6b- 9f68-d3bd67a339 e0] NV-EAF7DD6 Setting instance to ERROR state.
2014-03-19 07:26:34.071 15316 INFO nova.filters [req-13d9cfa3-
2014-03-19 07:26:34.071 15316 WARNING nova.scheduler.
compute_filter.py:
def host_passes(self, host_state, filter_properties): 'disabled' ]:
LOG. debug(_ ("%(host_ state)s is disabled, reason: %(reason)s"),
{'host_ state': host_state,
'reason' : service. get('disabled_ reason' )}) up_api. service_ is_up(service) :
LOG.warn( _("%(host_ state)s has not been heard from in a "
" while") , {'host_state': host_state})
return False
"""Returns True for only active compute nodes."""
service = host_state.service
if service[
return False
else:
if not self.servicegro
return True