rackerlabs / vagrant-solum-dev

Vagrant environment for Solum development
8 stars 9 forks source link

Heat services fail to start #37

Open devdattakulkarni opened 9 years ago

devdattakulkarni commented 9 years ago

h-eng: t/stack/status/stack/h-eng.failure" [1] 17235 bin/heat-engine --config-file=/etc/heat/heat.conf Traceback (most recent call last): File "bin/heat-engine", line 38, in from heat.common import messaging File "/opt/stack/heat/heat/common/messaging.py", line 24, in from heat.common import context File "/opt/stack/heat/heat/common/context.py", line 14, in from oslo.middleware import request_id as oslo_request_id File "/usr/local/lib/python2.7/dist-packages/oslo/middleware/init.py", line 23, in from oslo.middleware.sizelimit import RequestBodySizeLimiter File "/usr/local/lib/python2.7/dist-packages/oslo/middleware/sizelimit.py", line 21, in from oslo.config import cfgfilter ImportError: cannot import name cfgfilter h-eng failed to start


h-api

vagrant@devstack:~/devstack$ cd /opt/stack/heat; bin/heat-api --config-file=/etc/heat/heat.conf & echo $! >/opt/stack/status/stack/h-api.pid; fg || echo "h-api failed to start" | tee "/opt/stack/status/stack/h-api.failure" [1] 17269 bin/heat-api --config-file=/etc/heat/heat.conf Traceback (most recent call last): File "bin/heat-api", line 39, in from heat.common import messaging File "/opt/stack/heat/heat/common/messaging.py", line 24, in from heat.common import context File "/opt/stack/heat/heat/common/context.py", line 14, in from oslo.middleware import request_id as oslo_request_id File "/usr/local/lib/python2.7/dist-packages/oslo/middleware/init.py", line 23, in from oslo.middleware.sizelimit import RequestBodySizeLimiter File "/usr/local/lib/python2.7/dist-packages/oslo/middleware/sizelimit.py", line 21, in from oslo.config import cfgfilter ImportError: cannot import name cfgfilter h-api failed to start

h-api-cfn

vagrant@devstack:~/devstack$ cd /opt/stack/heat; bin/heat-api-cfn --config-file=/etc/heat/heat.conf & echo $! >/opt/stack/status/stack/h-api-cfn.pid; fg || echo "h-api-cfn failed to start" | tee "/opt/stack/status/stack/h-api-cfn.failure" [1] 17307 bin/heat-api-cfn --config-file=/etc/heat/heat.conf Traceback (most recent call last): File "bin/heat-api-cfn", line 41, in from heat.common import messaging File "/opt/stack/heat/heat/common/messaging.py", line 24, in from heat.common import context File "/opt/stack/heat/heat/common/context.py", line 14, in from oslo.middleware import request_id as oslo_request_id File "/usr/local/lib/python2.7/dist-packages/oslo/middleware/init.py", line 23, in from oslo.middleware.sizelimit import RequestBodySizeLimiter File "/usr/local/lib/python2.7/dist-packages/oslo/middleware/sizelimit.py", line 21, in from oslo.config import cfgfilter ImportError: cannot import name cfgfilter h-api-cfn failed to start vagrant@devstack:/opt/stack/heat$


h-api-cw

vagrant@devstack:~/devstack$ cd /opt/stack/heat; bin/heat-api-cloudwatch --config-file=/etc/heat/heat.conf & echo $! >/opt/stack/status/stack/h-api-cw.pid; fg || echo "h-api-cw failed to start" | tee "/opt/stack/status/stack/h-api-cw.failure" [1] 17343 bin/heat-api-cloudwatch --config-file=/etc/heat/heat.conf Traceback (most recent call last): File "bin/heat-api-cloudwatch", line 41, in from heat.common import messaging File "/opt/stack/heat/heat/common/messaging.py", line 24, in from heat.common import context File "/opt/stack/heat/heat/common/context.py", line 14, in from oslo.middleware import request_id as oslo_request_id File "/usr/local/lib/python2.7/dist-packages/oslo/middleware/init.py", line 23, in from oslo.middleware.sizelimit import RequestBodySizeLimiter File "/usr/local/lib/python2.7/dist-packages/oslo/middleware/sizelimit.py", line 21, in from oslo.config import cfgfilter ImportError: cannot import name cfgfilter h-api-cw failed to start vagrant@devstack:/opt/stack/heat$

devdattakulkarni commented 9 years ago

Looks like this is the culprit commit

https://github.com/openstack/heat/commit/3a1cd7c8935f0bf05fd505805de7f414a9e4f775

Commit c43107522ccd03188ba584bf949c9895642dbd36, which is parent of above, seems to start all (h-eng, h-api-cfn, h-api-cw) except h-api.

On h-api, seeing this error:

r/local/lib/python2.7/dist-packages/stevedore/extension.py:156 ERROR: Unable to load heat-api from configuration file /etc/heat/api-paste.ini. Got: ImportError('cannot import name cfgfilter',) h-api failed to start

devdattakulkarni commented 9 years ago

h-api fails to start because the api-paste.ini file contains the request_id as the first filter. But with the c43 commit removes request_id stuff.

This was added in https://github.com/openstack/heat/commit/f6deffa73f244867b6a0cac6708f423d992700d9

Tried going to the parent of this, but it lead to errors in starting up in h-api (2014-11-05 20:47:07.975 TRACE heat raise DuplicateOptError(opt.name) 2014-11-05 20:47:07.975 TRACE heat DuplicateOptError: duplicate option: auth_uri) and

h-eng (2014-11-05 20:46:51.512 TRACE heat if clients.neutronclient is not None: 2014-11-05 20:46:51.512 TRACE heat AttributeError: 'module' object has no attribute 'neutronclient')

I guess the best bet is to remove request_id from etc/heat/api-paste.ini. This is just a hack to get us moving forward. (I am thinking that this can be done in the 'vm' option of devstack setup.