Ask Your Question
1

neutron/lbaas: No route matched POST [closed]

asked 2014-06-05 12:52:46 -0500

mattlesko-nih gravatar image

updated 2014-06-06 17:01:07 -0500

smaffulli gravatar image

This is similar to this question but that hasn't been answered yet, and the error is slightly different.

Versions (Icehouse), running on CentOS 6.5:

python-neutronclient-2.3.4-1.el6.noarch
openstack-neutron-2014.1-10.el6.noarch

Attempting to create a new loadbalancer pool fails:

os-network-dev11 in ~[0] $ neu lb-pool-create --debug  --lb-method ROUND_ROBIN --name testPOOL --protocol HTTP --subnet-id EXTANTSUBNET

REQ: curl -i http://os-controller-dev01:9696/v2.0/lb/pools.json -X POST -H "X-Auth-Token:MYTOKEN==" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -d '{"pool": {"subnet_id": "EXTANTSUBNET" "lb_method": "ROUND_ROBIN", "protocol": "HTTP", "name": "testPOOL", "admin_state_up": true}}'

DEBUG: neutronclient.client RESP:{'date': 'Thu, 05 Jun 2014 17:42:20 GMT', 'status': '404', 'content-length': '52', 'content-type': 'text/plain; charset=UTF-8', 'x-openstack-request-id': 'req-06eea994-eb2a-411d-a2f0-f2cd1de89176'} 404 Not Found

The resource could not be found.

DEBUG: neutronclient.v2_0.client Error message: 404 Not Found

The resource could not be found.

ERROR: neutronclient.shell 404 Not Found

The resource could not be found.

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/neutronclient/shell.py", line 526, in run_subcommand
    return run_command(cmd, cmd_parser, sub_argv)
  File "/usr/lib/python2.6/site-packages/neutronclient/shell.py", line 79, in run_command
    return cmd.run(known_args)
  File "/usr/lib/python2.6/site-packages/neutronclient/common/command.py", line 34, in run
    return super(OpenStackCommand, self).run(parsed_args)
  File "/usr/lib/python2.6/site-packages/cliff/display.py", line 84, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.6/site-packages/neutronclient/common/command.py", line 40, in take_action
    return self.get_data(parsed_args)
  File "/usr/lib/python2.6/site-packages/neutronclient/neutron/v2_0/__init__.py", line 419, in get_data
    data = obj_creator(body)
  File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 111, in with_params
    ret = self.function(instance, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 665, in create_pool
    return self.post(self.pools_path, body=body)
  File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 1241, in post
    headers=headers, params=params)
  File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 1164, in do_request
    self._handle_fault_response(status_code, replybody)
  File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 1134, in _handle_fault_response
    exception_handler_v20(status_code, des_error_body)
  File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 91, in exception_handler_v20
    message=message)
NeutronClientException: 404 Not Found

The resource could not be found.

DEBUG: neutronclient.shell clean_up CreatePool
DEBUG: neutronclient.shell Got an error: 404 Not Found

The resource could not be found.

In /var/log/neutron/server.log, this shows up:

2014-06-05 13:45:02.829 26810 DEBUG keystoneclient.middleware.auth_token [-] Removing headers from request environment: X-Identity-Status,X-D
omain-Id,X-Domain-Name,X-Project-Id,X-Project-Name,X-Project-Domain-Id,X-Project-Domain-Name,X-User-Id,X-User-Name,X-User-Domain-Id,X-User-Do
main-Name,X-Roles,X-Service-Catalog,X-User,X-Tenant-Id,X-Tenant-Name,X-Tenant,X-Role _remove_auth_headers /usr/lib/python2.6/site-packages/ke
ystoneclient/middleware/auth_token.py:628
2014-06-05 13:45:02.831 26810 DEBUG keystoneclient.middleware.auth_token [-] Returning cached token _cache_get /usr/lib/python2.6/site-packag
es/keystoneclient/middleware/auth_token.py:1034
2014-06-05 13:45:02.831 26810 DEBUG keystoneclient.middleware ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by mattlesko-nih
close date 2014-06-09 13:32:50.242655

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-06-09 13:32:13 -0500

mattlesko-nih gravatar image

For reference, this was ultimately solved by making sure /etc/neutron/neutron.conf has:

service_plugins = neutron.services.loadbalancer.plugin.LoadBalancerPlugin

listed, in addition to any others. Our setup was completed through puppetforge/openstack and it was missed.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

Follow
2 followers

Stats

Asked: 2014-06-05 12:52:46 -0500

Seen: 500 times

Last updated: Jun 09 '14