Currently even if the EvacuateHostTestCase test cases pass,
there are some error log in the logs, it may lead to
confusion when debug the problem, and more important,
it will fail if the 'node' variable is used in the
compute layer code since the 'node' is None and the
cases will fail.
Use stub by purpose because don't want to change current
test structure.
2014-12-18 18:20:23,694 ERROR [nova.compute.manager] Failed to get compute_info for fake-mini
Traceback (most recent call last):
File "/home/jichen/git/nova/nova/compute/manager.py", line 2797, in rebuild_instance compute_node = self._get_compute_info(context, self.host)
File "/home/jichen/git/nova/nova/compute/manager.py", line 4859, in _get_compute_info
service = objects.Service.get_by_compute_host(context, host)
File "/home/jichen/git/nova/nova/objects/base.py", line 156, in wrapper
result = fn(cls, context, *args, **kwargs)
File "/home/jichen/git/nova/nova/objects/service.py", line 111, in get_by_compute_host
db_service = db.service_get_by_compute_host(context, host)
File "/home/jichen/git/nova/nova/db/api.py", line 131, in service_get_by_compute_host use_slave=use_slave)
File "/home/jichen/git/nova/nova/db/sqlalchemy/api.py", line 127, in wrapper
return f(*args, **kwargs)
File "/home/jichen/git/nova/nova/db/sqlalchemy/api.py", line 431, in service_get_by_compute_host
raise exception.ComputeHostNotFound(host=host)
ComputeHostNotFound: Compute host fake-mini could not be found.
Reviewed: https:/ /review. openstack. org/142739 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=737fb8e7a7d b775e937fe8b8a5 f0ca148e1641be
Committed: https:/
Submitter: Jenkins
Branch: master
commit 737fb8e7a7db775 e937fe8b8a5f0ca 148e1641be
Author: jichenjc <email address hidden>
Date: Thu Dec 18 18:23:57 2014 +0800
Enhance EvacuateHostTes tCase test cases
Currently even if the EvacuateHostTes tCase test cases pass,
there are some error log in the logs, it may lead to
confusion when debug the problem, and more important,
it will fail if the 'node' variable is used in the
compute layer code since the 'node' is None and the
cases will fail.
Use stub by purpose because don't want to change current
test structure.
2014-12-18 18:20:23,694 ERROR [nova.compute. manager] Failed to get compute_info for fake-mini jichen/ git/nova/ nova/compute/ manager. py", line 2797, in rebuild_instance
compute_ node = self._get_ compute_ info(context, self.host) jichen/ git/nova/ nova/compute/ manager. py", line 4859, in _get_compute_info Service. get_by_ compute_ host(context, host) jichen/ git/nova/ nova/objects/ base.py" , line 156, in wrapper jichen/ git/nova/ nova/objects/ service. py", line 111, in get_by_compute_host get_by_ compute_ host(context, host) jichen/ git/nova/ nova/db/ api.py" , line 131, in service_ get_by_ compute_ host
use_slave= use_slave) jichen/ git/nova/ nova/db/ sqlalchemy/ api.py" , line 127, in wrapper jichen/ git/nova/ nova/db/ sqlalchemy/ api.py" , line 431, in service_ get_by_ compute_ host ComputeHostNotF ound(host= host) NotFound: Compute host fake-mini could not be found.
Traceback (most recent call last):
File "/home/
File "/home/
service = objects.
File "/home/
result = fn(cls, context, *args, **kwargs)
File "/home/
db_service = db.service_
File "/home/
File "/home/
return f(*args, **kwargs)
File "/home/
raise exception.
ComputeHost
Change-Id: I5541fc27afc233 46ddcd685667737 548b2a813c7
Partial-Bug: #1289064