Ask Your Question
2

neutron router-create demo-router results in 404

asked 2014-06-11 22:55:12 -0600

jame gravatar image

updated 2014-06-16 15:17:45 -0600

In a new installation of ICEhouse on Ubuntu 14.04 Host and VirtualBox VMs - 3 node configuration at the point where you create your router to connect external and tenant networks: I get this error:

neutron router-create route730tojOpStNet -v  # Its a descriptive router name but also fails if called demo-router

DEBUG: neutronclient.neutron.v2_0.router.CreateRouter get_data(Namespace(admin_state=True, columns=[], distributed=True, formatter='table', name=u'route730tojOpStNet', prefix='', request_format='json', tenant_id=None, variables=[]))
DEBUG: neutronclient.client 
REQ: curl -i http://controller:35357/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "plato"}}}'

DEBUG: neutronclient.client RESP:{'status': '200', 'content-length': '4579', 'vary': 'X-Auth-Token', 'date': 'Thu, 12 Jun 2014 03:21:47 GMT', 'content-type': 'application/json', 'x-distribution': 'Ubuntu'} {"access": {"token": {"issued_at": "2014-06-12T03:21:47.231595", "expires": "2014-06-12T04:21:47Z", "id": ...

DEBUG: neutronclient.client 
REQ: curl -i http://controller:9696/v2.0/routers.json -X POST -H "X-Auth-Token: ...GbAGe7bU+iox5sfgo6qnsITZAFGGgfRZ7bXbezM+fWNZAHyBtc" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -d '{"router": {"name": "route730tojOpStNet", "admin_state_up": true}}'

DEBUG: neutronclient.client RESP:{'date': 'Thu, 12 Jun 2014 03:21:47 GMT', 'status': '404', 'content-length': '52', 'content-type': 'text/plain; charset=UTF-8', 'x-openstack-request-id': 'req-4e9e3585-b3a2-4514-9f55-a213441b960e'} 404 Not Found

The resource could not be found.

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

The resource could not be found.

Note that the Keystone, Glance and nova installs as well as Neutron net-create and subnet-create seemed to be successful up to this point:

neutron net-list
+--------------------------------------+----------+------------------------------------------------------+
| id                                   | name     | subnets                                              |
+--------------------------------------+----------+------------------------------------------------------+
| 8b1df9b6-781c-4e3e-b81b-235b837256b8 | jOpStNet | 367c060c-7d7a-43a6-acd2-0dc8a50c56a4 192.168.50.0/24 |
| ad7ed8f3-9fea-44b6-b519-ff10851ee732 | 730Net   | 46745d51-1ded-46fb-b3ec-a6cac0258cc0 192.168.1.0/24  |
+--------------------------------------+----------+------------------------------------------------------+
keystone user-list
+----------------------------------+---------+---------+-------------------+
|                id                |   name  | enabled |       email       |
+----------------------------------+---------+---------+-------------------+
| 709d97386cba487885a5fb2fd83b4942 |  admin ...
(more)
edit retag flag offensive close merge delete

Comments

What reports ?
$ service --status-all | grep neutron
$ neutron agent-list
$ neutron net-list

dbaxps gravatar imagedbaxps ( 2014-06-11 23:14:52 -0600 )edit

I added the reports to the main listing above.

jame gravatar imagejame ( 2014-06-12 08:10:02 -0600 )edit

Check status rabbitmq-server :-
$ netstat -antp | grep 5672
$ iptables-save | grep 5672
Make sure rabbitmq-server is listening at port 5672.

dbaxps gravatar imagedbaxps ( 2014-06-12 09:14:54 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-06-12 08:41:05 -0600

dbaxps gravatar image

updated 2014-06-13 17:01:33 -0600

smaffulli gravatar image

First: Follow http://sayalilunkad.github.io/posts/D... to enable neutron services:

Neutron - Networking Service
ENABLED_SERVICES+=,q-svc,q-agt,q-dhcp,q-l3,q-meta,neutron

After adding the required service you will need to run stack.sh again in order to enable the service. To check if the service is enables you can check the OpenStack Dashboard admin tab -> System Info -> services.

Second, update to neutron.conf (Assaf Muller):

agent_down_time = 75
report_interval=30

Check status rabbitmq-server :

$ netstat -antp | grep 5672
$ iptables-save | grep 5672

Make sure rabbitmq-server is listening at port 5672.

edit flag offensive delete link more

Comments

No problem at the same point in a 1 node DevStack following Sayalikuds instructions, but it doesn't lead me to a solution for 3 node install. It's good to have a config. to compare, but I want to test the Traing Environment instructions which are 3 node.

jame gravatar imagejame ( 2014-06-15 18:10:22 -0600 )edit

Addin the agent_down_time and report_interval timeouts dont' change the error. If they are timeouts in seconds it doesn't seem to be a timeout issue since the error happens in a second or two.

netstat -antp | grep 5672 shows that rabbit is listening at 5672:

tcp6       0      0 :::5672                 :::*                    LISTEN      -
jame gravatar imagejame ( 2014-06-15 18:18:25 -0600 )edit

Please, post ls -l output under /etc/neutron on Neutron Server.
Samples which I have have been generated by RDO packstack on Fedora 20, view http://bderzhavets.blogspot.com/2014/...

dbaxps gravatar imagedbaxps ( 2014-06-15 21:19:20 -0600 )edit

[root@icehouse1 neutron(keystone_admin)]# ls -l

total 88
-rw-r--r--. 1 root root      193 Jun 13 05:19 api-paste.ini
-rw-r-----. 1 root neutron  3902 Jun 13 08:31 dhcp_agent.ini
-rw-r--r--. 1 root root       73 Jun 13 08:32 dnsmasq.conf
-rw-r-----. 1 root neutron   109 Apr 17 15:50 fwaas_driver.ini
-rw-r-----. 1 root neutron  3431 Jun 13 05:19 l3_agent.ini
-rw-r-----. 1 root neutron  1400 Apr 17 15:50 lbaas_agent.ini
-rw-r-----. 1 root neutron  1481 Jun 13 07:52 metadata_agent.ini
-rw-r--r--. 1 root root      324 Jun 13 05:36 metadata_agent.out
lrwxrwxrwx. 1 root root       37 Jun 13 06:42 ml2_conf.ini -> /etc/neutron/plugins/ml2/ml2_conf.ini
-rw-r-----. 1 root neutron 19089 Jun 13 06:03 neutron.conf
lrwxrwxrwx. 1 root root       55 Jun 13 08:05 plugin.ini -> /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini
drwxr-xr-x. 4 root root     4096 Jun 13 05:19 ...
(more)
dbaxps gravatar imagedbaxps ( 2014-06-16 13:20:24 -0600 )edit

On NeutronServer && Compute IceHouse ML2&OVS&GRE(VLAN) Setup requires files ml2_conf.ini , plugin.ini under /etc/neutron. Link with details was already provided to you.

dbaxps gravatar imagedbaxps ( 2014-06-16 13:25:36 -0600 )edit

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: 2014-06-11 22:55:12 -0600

Seen: 2,057 times

Last updated: Jun 16 '14