Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

openstack-ansible Rocky heat ERROR: Internal Error

Just deploy the openstack-ansible and everything is working fine except heat?

I get this error from th heat log file in the heat_api container.

REQ: curl -g -i -X GET http://10.35.13.31:8004/v1/5f5e7f00c06c42dba5e6d392be48894a/stacks? -H "Accept: application/json" -H "User-Agent: python-heatclient" -H "X-Auth-Token: {SHA1}388e2b5dcc7eac615f6f16aea050409b184816c1" Starting new HTTP connection (1): 10.35.13.31:8004 http://10.35.13.31:8004 "GET /v1/5f5e7f00c06c42dba5e6d392be48894a/stacks HTTP/1.1" 500 5277 RESP: [500] Content-Length: 5277 Content-Type: application/json x-openstack-request-id: req-0f6a4cbf-983b-4275-821b-17c3e0d40de2 RESP BODY: {"explanation": "The server has either erred or is incapable of performing the requested operation.", "code": 500, "error": {"traceback": "Traceback (most recent call last):\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/heat/api/middleware/fault.py\", line 168, in process_request\n return req.get_response(self.application)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/webob/request.py\", line 1313, in send\n application, catch_exc_info=False)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/webob/request.py\", line 1277, in call_application\n app_iter = application(self.environ, start_response)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/webob/dec.py\", line 129, in __call__\n resp = self.call_func(req, args, kw)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/webob/dec.py\", line 193, in call_func\n return self.func(req, *args, *kwargs)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/oslo_middleware/base.py\", line 131, in __call__\n response = req.get_response(self.application)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/webob/request.py\", line 1313, in send\n application, catch_exc_info=False)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/webob/request.py\", line 1277, in call_application\n app_iter = application(self.environ, start_response)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/webob/dec.py\", line 129, in __call__\n resp = self.call_func(req, args, *kw)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/webob/dec.py\", line 193, in call_func\n return self.func(req, args, *kwargs)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/heat/common/wsgi.py\", line 631, in __call__\n response = req.get_response(self.application)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/webob/request.py\", line 1313, in send\n application, catch_exc_info=False)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/webob/request.py\", line 1277, in call_application\n app_iter = application(self.environ, start_response)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/webob/dec.py\", line 129, in __call__\n resp = self.call_func(req, args, *kw)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/webob/dec.py\", line 193, in call_func\n return self.func(req, args, *kwargs)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/osprofiler/web.py\", line 112, in __call__\n return request.get_response(self.application)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/webob/request.py\", line 1313, in send\n application, catch_exc_info=False)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/webob/request.py\", line 1277, in call_application\n app_iter = application(self.environ, start_response)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/webob/dec.py\", line 129, in __call__\n resp = self.call_func(req, args, *kw)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/webob/dec.py\", line 193, in call_func\n return self.func(req, args, *kwargs)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/heat/common/wsgi.py\", line 628, in __call__\n response = self.process_request(req)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/heat/common/auth_url.py\", line 56, in process_request\n auth_url = self.auth_url\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/heat/common/auth_url.py\", line 35, in auth_url\n self._auth_url = self._get_auth_url()\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/heat/common/auth_url.py\", line 42, in _get_auth_url\n return endpoint_utils.get_auth_uri(v3=False)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/heat/common/endpoint_utils.py\", line 32, in get_auth_uri\n url=cfg.CONF.clients_keystone.auth_uri)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/keystoneauth1/discover.py\", line 498, in __init__\n authenticated=authenticated)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/keystoneauth1/discover.py\", line 101, in get_version_data\n resp = session.get(url, headers=headers, authenticated=authenticated)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/keystoneauth1/session.py\", line 1011, in get\n return self.request(url, 'GET', **kwargs)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/keystoneauth1/session.py\", line 814, in request\n resp = send(kwargs)\n File \"/openstack/venvs/heat-18.1.4/lib/python2.7/site-packages/keystoneauth1/session.py\", line 907, in _send_request\n raise exceptions.SSLError(msg)\nSSLError: SSL exception connecting to https://10.35.13.31:5000: HTTPSConnectionPool(host='10.35.13.31', port=5000): Max retries exceeded with url: / (Caused by SSLError(SSLError(\"bad handshake: Error([('SSL routines', 'ssl3_get_record', 'wrong version number')],)\",),))\n", "type": "SSLError"}, "title": "Internal Server Error"} GET call to orchestration for http://10.35.13.31:8004/v1/5f5e7f00c06c42dba5e6d392be48894a/stacks used request id req-0f6a4cbf-983b-4275-821b-17c3e0d40de2 ERROR: Internal Error clean_up ListStack: ERROR: Internal Error END return value: 1

Anybody can help on that one ?

cat user_variables.yml


Debug and Verbose options. debug: false

install_method: source

Example environment variable setup:

This is used by apt-cacher-ng to download apt packages:

proxy_env_url: http://10.50.51.31:8080

(1) This sets up a permanent environment, used during and after deployment:

no_proxy_env: "localhost,127.0.0.1,{{ internal_lb_vip_address }},{{ external_lb_vip_address }},{% for host in groups['all_containers'] %}{{ hostvars[host]['container_address'] }}{% if not loop.last %},{% endif %}{% endfor %}" global_environment_variables:
HTTP_PROXY: "{{ proxy_env_url }}"
HTTPS_PROXY: "{{ proxy_env_url }}"
NO_PROXY: "{{ no_proxy_env }}"
http_proxy: "{{ proxy_env_url }}"
https_proxy: "{{ proxy_env_url }}"
no_proxy: "{{ no_proxy_env }}"

haproxy_keepalived_external_vip_cidr: "{{external_lb_vip_address}}/20" haproxy_keepalived_internal_vip_cidr: "{{internal_lb_vip_address}}/20" haproxy_keepalived_external_interface: br-vlan haproxy_keepalived_internal_interface: br-mgmt

Keepalived default IP address used to check its alive status (IPv4 only) keepalived_ping_address: "10.35.2.113"

haproxy_ssl: False haproxy_backend_ssl: False