unit test test_engine_service_configures_connection_pool fails with TypeError

Bug #1716080 reported by Rabi Mishra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Critical
Rabi Mishra

Bug Description

There is new check added to RPCDispatcher

https://github.com/openstack/oslo.messaging/commit/b7382d58d773e9be61dda3fac5b2e3cbddc22a22

traceback:

2017-09-08 21:21:42.017876 | ======================================================================
2017-09-08 21:21:42.017947 | FAIL: heat.tests.engine.service.test_service_engine.ServiceEngineTest.test_engine_service_configures_connection_pool
2017-09-08 21:21:42.017979 | tags: worker-4
2017-09-08 21:21:42.018030 | ----------------------------------------------------------------------
2017-09-08 21:21:42.018066 | Traceback (most recent call last):
2017-09-08 21:21:42.018149 | File "/home/jenkins/workspace/gate-heat-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
2017-09-08 21:21:42.018190 | return func(*args, **keywargs)
2017-09-08 21:21:42.018262 | File "heat/tests/engine/service/test_service_engine.py", line 411, in test_engine_service_configures_connection_pool
2017-09-08 21:21:42.018299 | self.eng.start()
2017-09-08 21:21:42.018385 | File "/home/jenkins/workspace/gate-heat-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 157, in wrapper
2017-09-08 21:21:42.018425 | result = f(*args, **kwargs)
2017-09-08 21:21:42.018481 | File "heat/engine/service.py", line 396, in start
2017-09-08 21:22:00.016400 | self._rpc_server = rpc_messaging.ge/home/jenkins/workspace/gate-heat-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_db/sqlalchemy/test_base.py:176: DeprecationWarning: Using class 'PostgreSQLOpportunisticFixture' (either directly or via inheritance) is deprecated
2017-09-08 21:22:00.016482 | self, skip_on_unavailable_db=self.SKIP_ON_UNAVAILABLE_DB))
2017-09-08 21:22:00.016561 | /home/jenkins/workspace/gate-heat-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/debtcollector/removals.py:277: DeprecationWarning: Using class 'DbFixture' (either directly or via inheritance) is deprecated
2017-09-08 21:22:00.016589 | return old_init(self, *args, **kwargs)
2017-09-08 21:22:00.663792 | URL postgresql://openstack_citest:***@localhost/wbtgwktcaq does not contain a '+drivername' portion, and will make use of a default driver. A full dbname+drivername:// protocol is recommended.
2017-09-08 21:29:50.657825 | Killed
2017-09-08 21:29:53.371479 | t_rpc_server(target, self)
2017-09-08 21:29:53.371564 | File "heat/common/messaging.py", line 131, in get_rpc_server
2017-09-08 21:29:53.371591 | access_policy=access_policy)
2017-09-08 21:29:53.371652 | File "/home/jenkins/workspace/gate-heat-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/debtcollector/updating.py", line 64, in wrapper
2017-09-08 21:29:53.371678 | return wrapped(*args, **kwargs)
2017-09-08 21:29:53.371740 | File "/home/jenkins/workspace/gate-heat-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 214, in get_rpc_server
2017-09-08 21:29:53.371759 | access_policy)
2017-09-08 21:29:53.371820 | File "/home/jenkins/workspace/gate-heat-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 161, in __init__
2017-09-08 21:29:53.371848 | raise TypeError("%s: endpoint=%s" % (errmsg, ep))
2017-09-08 21:29:53.371936 | TypeError: 'target' is a reserved Endpoint attribute used for namespace and version filtering. It must be of type oslo_messaging.Target. Do not define an Endpoint method named 'target': endpoint=<heat.engine.service.EngineService object at 0x7f0cf4cf8ed0>

Tags: gate-failure
Revision history for this message
Rabi Mishra (rabi) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

Fix proposed to branch: master
Review: https://review.openstack.org/502209

Changed in heat:
status: New → In Progress
Rabi Mishra (rabi)
tags: added: gate-failure
Changed in heat:
milestone: none → queens-1
Rabi Mishra (rabi)
Changed in heat:
importance: High → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/502209
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=3089880daa612d7d5af01ca65c0cd1a7444f067a
Submitter: Jenkins
Branch: master

commit 3089880daa612d7d5af01ca65c0cd1a7444f067a
Author: rabi <email address hidden>
Date: Sat Sep 9 08:13:25 2017 +0530

    Don't mock Target unnecessarily

    Change-Id: I25be61ac5f6e13014529f290cbbe5589cedc6e09
    Closes-Bug: #1716080

Changed in heat:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/heat 10.0.0.0b1

This issue was fixed in the openstack/heat 10.0.0.0b1 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.