Ask Your Question
0

HTTPNotFound (HTTP 404) error when run heat orchestration

asked 2019-05-22 15:53:08 -0500

sivadmp gravatar image

updated 2019-05-23 08:57:06 -0500

Hi, When I run the command openstack --debug orchestration service list there is an HTTPNotFound (HTTP 404) error.

In the logs, the service starts correctly

/var/log/heat/heat-api.log
2019-05-22 15:53:22.591 4134907 INFO heat.api [-] Starting Heat REST API on 192.168.100.10:8000

/var/log/heat/heat-api-cfn.log
2019-05-22 10:54:21.661 4135698 INFO heat.api.cfn [-] Starting Heat API on 192.168.100.10:8004

(OpenStack Newton) Result of the command openstack --debug orchestration service

REQ: curl -g -i -X GET http://domain.com:8004/v1/f33f040ecba44cfda148f15b276b88ea/services -H "User-Agent: python-heatclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4668076db6d4003e32eab3697a2fdaf7bd1163f0"
Starting new HTTP connection (1): domain.com
http://domain.com:8004 "GET /v1/f33f040ecba44cfda148f15b276b88ea/services HTTP/1.1" 404 112
RESP: [404] Content-Length: 112 Content-Type: application/json; charset=UTF-8 Date: Wed, 22 May 2019 15:11:38 GMT Connection: keep-alive 
RESP BODY: {"message": "The resource could not be found.<br /><br />\n\n\n", "code": "404 Not Found", "title": "Not Found"}

ERROR: None
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 374, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 92, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/dist-packages/heatclient/osc/v1/service.py", line 37, in take_action
    services = heat_client.services.list()
  File "/usr/lib/python2.7/dist-packages/heatclient/v1/services.py", line 33, in list
    return self._list(url, "services")
  File "/usr/lib/python2.7/dist-packages/heatclient/openstack/common/apiclient/base.py", line 135, in _list
    body = self.client.get(url).json()
  File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 187, in get
    return self.request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/dist-packages/heatclient/common/http.py", line 322, in request
    raise exc.from_response(resp)
HTTPNotFound: ERROR: None
clean_up ListService: ERROR: None
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/osc_lib/shell.py", line 135, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 255, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/dist-packages/osc_lib/shell.py", line 180, in run_subcommand
    ret_value = super(OpenStackShell, self).run_subcommand(argv)
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 374, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 92, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/dist-packages/heatclient/osc/v1/service.py", line 37, in take_action
    services = heat_client.services.list()
  File "/usr/lib/python2.7/dist-packages/heatclient/v1/services.py", line 33, in list
    return self._list(url, "services")
  File "/usr/lib/python2.7/dist-packages/heatclient/openstack/common/apiclient/base.py", line ...
(more)
edit retag flag offensive close merge delete

Comments

Does heat-api run on domain.com? Anything in the heat-api log and/or (if Heat is deployed behind a web server) the web server’s log? What do you get from curl http://domain.com:8004?

Bernd Bausch gravatar imageBernd Bausch ( 2019-05-22 19:41:24 -0500 )edit

2 answers

Sort by » oldest newest most voted
1

answered 2019-05-23 08:58:46 -0500

updated 2019-05-23 08:59:45 -0500

I did not see this earlier. You swapped the ports by mistake.

API should have 8004, cloudformation 8000, but your config is:

[heat_api]
bind_port = 8000
bind_host = 192.168.100.10

[heat_api_cfn]
bind_port = 8004
bind_host = 192.168.100.10
edit flag offensive delete link more
0

answered 2019-05-23 09:12:09 -0500

sivadmp gravatar image

delete the configuration [heat_api] [heat_api_cfn] , now if it works

Thank you

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2019-05-22 10:29:38 -0500

Seen: 65 times

Last updated: May 23