Ask Your Question
1

All neutron commands returns http 404 [closed]

asked 2014-11-26 22:10:11 -0600

francois gravatar image

updated 2014-11-27 06:12:41 -0600

[root@controller ~]# neutron  ext-list
Not Found (HTTP 404)

How do I go to debug this ?

[root@controller ~]# neutron --debug  ext-list
DEBUG: keystoneclient.session REQ: curl -i -X GET http://controller:35357/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
DEBUG: keystoneclient.session RESP: [200] {'date': 'Thu, 27 Nov 2014 03:46:46 GMT', 'content-type': 'application/json', 'content-length': '421', 'vary': 'X-Auth-Token'} 
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links": [{"href": "http://controller:35357/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}

DEBUG: stevedore.extension found extension EntryPoint.parse('table = cliff.formatters.table:TableFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('csv = cliff.formatters.commaseparated:CSVLister')
DEBUG: neutronclient.neutron.v2_0.extension.ListExt get_data(Namespace(columns=[], fields=[], formatter='table', max_width=0, quote_mode='nonnumeric', request_format='json', show_details=False))
DEBUG: keystoneclient.auth.identity.v2 Making authentication request to http://controller:35357/v2.0/tokens
DEBUG: keystoneclient.session REQ: curl -i -X GET http://controller:9696/v2/a79c28f349aa47158ea272cdfdfe679e/v2.0/extensions.json -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: TOKEN_REDACTED"
DEBUG: keystoneclient.session RESP:
DEBUG: keystoneclient.session Request returned failure status: 404
ERROR: neutronclient.shell Not Found (HTTP 404)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/neutronclient/shell.py", line 691, in run_subcommand
    return run_command(cmd, cmd_parser, sub_argv)
  File "/usr/lib/python2.7/site-packages/neutronclient/shell.py", line 90, in run_command
    return cmd.run(known_args)
  File "/usr/lib/python2.7/site-packages/neutronclient/common/command.py", line 29, in run
    return super(OpenStackCommand, self).run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/display.py", line 91, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/neutronclient/common/command.py", line 35, in take_action
    return self.get_data(parsed_args)
  File "/usr/lib/python2.7/site-packages/neutronclient/neutron/v2_0/__init__.py", line 669, in get_data
    data = self.retrieve_list(parsed_args)
  File "/usr/lib/python2.7/site-packages/neutronclient/neutron/v2_0/__init__.py", line 638, in retrieve_list
    data = self.call_server(neutron_client, search_opts, parsed_args)
  File "/usr/lib/python2.7/site-packages/neutronclient/neutron/v2_0/__init__.py", line 610, in call_server
    data = obj_lister(**search_opts)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 98, in with_params
    ret = self.function(instance, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 300, in list_extensions
    return self.get(self.extensions_path, params=_params)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1320, in get
    headers=headers, params=params)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1297, in retry_request
    headers=headers, params=params)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1240, in do_request
    content_type=self.content_type())
  File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 319, in do_request
    return self.request(url, method, **kwargs)
  File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 63, in request
    return self ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by francois
close date 2014-12-31 09:43:37.274882

Comments

Which OpenStack version? Did you try other neutron command like neutron agent-list etc?

9lives gravatar image9lives ( 2014-11-27 01:08:51 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-11-27 08:27:45 -0600

Ram.Meena gravatar image

Hi,

You should verify if the neutron endpoint is created correctly. I would suggest you to delete the existing neutron user, service, endpoint and recreate them carefully following the Openstack Installation docs.

edit flag offensive delete link more

Comments

Thanks

That did it Hard to seo typos ;-)

francois gravatar imagefrancois ( 2014-11-27 15:02:05 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-11-26 22:10:11 -0600

Seen: 1,065 times

Last updated: Nov 27 '14