Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

openstack mitaka neutron, resource could not be found after typing "neutron agent-list"

Hi, Expert,

As the title,  I didn't receive such error last week at same envrionment last week,  but today whenever I run any neutron related command  I met such error.   Appreciate if someone can have a look.

Debug message and neutron config file is attached following

-----------debug message of neutron agen-list ----- root@opencontrol225:/home/vincent# neutron agent-list 404-{u'error': {u'message': u'The resource could not be found.', u'code': 404, u'title': u'Not Found'}} Neutron server returns request_ids: ['req-a6f3d259-9745-42fd-a1ce-797390b6876d'] root@opencontrol225:/home/vincent# neutron agent-list --debug DEBUG: stevedore.extension found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token') DEBUG: stevedore.extension found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken') DEBUG: stevedore.extension found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode') DEBUG: stevedore.extension found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password') DEBUG: stevedore.extension found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password') DEBUG: stevedore.extension found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword') DEBUG: stevedore.extension found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token') DEBUG: stevedore.extension found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token') DEBUG: stevedore.extension found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password') DEBUG: os_client_config.config Deferring keystone exception: Auth plugin requires parameters which were not given: auth_url DEBUG: stevedore.extension found extension EntryPoint.parse('v2token = keystoneclient.auth.identity.v2:Token') DEBUG: stevedore.extension found extension EntryPoint.parse('admin_token = keystoneclient.auth.token_endpoint:Token') DEBUG: stevedore.extension found extension EntryPoint.parse('v2password = keystoneclient.auth.identity.v2:Password') DEBUG: stevedore.extension found extension EntryPoint.parse('v3password = keystoneclient.auth.identity.v3:Password') DEBUG: stevedore.extension found extension EntryPoint.parse('v3scopedsaml = keystoneclient.contrib.auth.v3.saml2:Saml2ScopedToken') DEBUG: stevedore.extension found extension EntryPoint.parse('v3oidcpassword = keystoneclient.contrib.auth.v3.oidc:OidcPassword') DEBUG: stevedore.extension found extension EntryPoint.parse('v3unscopedadfs = keystoneclient.contrib.auth.v3.saml2:ADFSUnscopedToken') DEBUG: stevedore.extension found extension EntryPoint.parse('token = keystoneclient.auth.identity.generic:Token') DEBUG: stevedore.extension found extension EntryPoint.parse('v3token = keystoneclient.auth.identity.v3:Token') DEBUG: stevedore.extension found extension EntryPoint.parse('password = keystoneclient.auth.identity.generic:Password') DEBUG: stevedore.extension found extension EntryPoint.parse('v3unscopedsaml = keystoneclient.contrib.auth.v3.saml2:Saml2UnscopedToken') DEBUG: stevedore.extension found extension EntryPoint.parse('osc_password = openstackclient.api.auth_plugin:OSCGenericPassword') DEBUG: stevedore.extension found extension EntryPoint.parse('token_endpoint = openstackclient.api.auth_plugin:TokenEndpoint') DEBUG: stevedore.extension found extension EntryPoint.parse('table = cliff.formatters.table:TableFormatter') DEBUG: stevedore.extension found extension EntryPoint.parse('json = cliff.formatters.json_format:JSONFormatter') DEBUG: stevedore.extension found extension EntryPoint.parse('csv = cliff.formatters.commaseparated:CSVLister') DEBUG: stevedore.extension found extension EntryPoint.parse('value = cliff.formatters.value:ValueFormatter') DEBUG: stevedore.extension found extension EntryPoint.parse('yaml = cliff.formatters.yaml_format:YAMLFormatter') DEBUG: neutronclient.neutron.v2_0.agent.ListAgent run(Namespace(columns=[], fields=[], formatter='table', max_width=0, noindent=False, quote_mode='nonnumeric', request_format='json', show_details=False, sort_dir=[], sort_key=[])) DEBUG: neutronclient.client REQ: curl -i http://opencontrol225:35357/v3/v2.0/agents.json -X GET -H "User-Agent: python-neutronclient" -H "X-Auth-Token: b449e41168a6f8f63cee" DEBUG: neutronclient.client RESP: 404 {'X-Distribution': 'Ubuntu', 'Content-Length': '93', 'Vary': 'X-Auth-Token', 'Keep-Alive': 'timeout=5, max=100', 'Server': 'Apache/2.4.7 (Ubuntu)', 'Connection': 'Keep-Alive', 'Date': 'Sun, 10 Jul 2016 12:21:22 GMT', 'Content-Type': 'application/json', 'x-openstack-request-id': 'req-7da846f5-3619-49be-9fc2-2ee2fc59dea7'} {"error": {"message": "The resource could not be found.", "code": 404, "title": "Not Found"}} DEBUG: neutronclient.v2_0.client Error message: {"error": {"message": "The resource could not be found.", "code": 404, "title": "Not Found"}} ERROR: neutronclient.shell 404-{u'error': {u'message': u'The resource could not be found.', u'code': 404, u'title': u'Not Found'}} Neutron server returns request_ids: ['req-7da846f5-3619-49be-9fc2-2ee2fc59dea7'] Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 879, in run_subcommand return run_command(cmd, cmd_parser, sub_argv) File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 114, in run_command return cmd.run(known_args) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 403, in run return super(NeutronCommand, 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/neutronclient/neutron/v2_0/__init__.py", line 766, in take_action data = self.retrieve_list(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 730, in retrieve_list data = self.call_server(neutron_client, search_opts, parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 703, in call_server data = obj_lister(*search_opts) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 97, in with_params ret = self.function(instance, *args, *kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1409, in list_agents return self.get(self.agents_path, params=_params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 358, in get headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 335, in retry_request headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 298, in do_request self._handle_fault_response(status_code, replybody, resp) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 273, in _handle_fault_response exception_handler_v20(status_code, error_body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 84, in exception_handler_v20 request_ids=request_ids) NotFound: 404-{u'error': {u'message': u'The resource could not be found.', u'code': 404, u'title': u'Not Found'}} Neutron server returns request_ids: ['req-7da846f5-3619-49be-9fc2-2ee2fc59dea7']

---------------------neutron.conf-------------

root@opencontrol225:/home/vincent# cat /etc/neutron/neutron.conf |grep -v '^#' [database] connection = mysql+pymysql://neutron:#1Danger0us@opencontrol225/neutron

[DEFAULT] core_plugin = ml2 service_plugins = router allow_overlapping_ips = True auth_strategy = keystone rpc_backend = rabbit notify_nova_on_port_status_changes = True notify_nova_on_port_data_changes = True

[oslo_messaging_rabbit] rabbit_host = opencontrol225 rabbit_userid = openstack rabbit_password = password

[keystone_authtoken] auth_url = http://opencontrol225:35357 memcached_servers = opencontrol225:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = neutron password = #1Danger0us

[nova] auth_url = http://opencontrol225:35357 auth_type = password project_domain_name = default user_domain_name = default region_name = RegionOne project_name = service username = nova password = #1Danger0us root@opencontrol225:/home/vincent# cat /etc/neutron/neutron.conf [database] connection = mysql+pymysql://neutron:#1Danger0us@opencontrol225/neutron

[DEFAULT] core_plugin = ml2 service_plugins = router allow_overlapping_ips = True auth_strategy = keystone rpc_backend = rabbit notify_nova_on_port_status_changes = True notify_nova_on_port_data_changes = True

[oslo_messaging_rabbit] rabbit_host = opencontrol225 rabbit_userid = openstack rabbit_password = password

[keystone_authtoken] auth_url = http://opencontrol225:35357 memcached_servers = opencontrol225:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = neutron password = #1Danger0us

[nova] auth_url = http://opencontrol225:35357 auth_type = password project_domain_name = default user_domain_name = default region_name = RegionOne project_name = service username = nova password = #1Danger0us