Revision history [back]

click to hide/show revision 1
initial version

router-create 501 not implemented

I'm testing dvr of juno neutron on ubuntu 14.04.

At first, it was successful in all steps when I followed up draft doc in docs.openstack.org. But I removed demo-router to modifying something, and then I cannot make router any more.

root@controller:~/work# neutron --version 2.3.8 root@controller:~/work# source demorc root@controller:~/work# neutron --debug router-create demo-router

DEBUG: keystoneclient.session REQ: curl -i -X GET http://controller:5000/v2.0/ -H "Accept: application/json" -H "User-Agent: python-keystoneclient" DEBUG: keystoneclient.session RESP: [200] {'date': 'Thu, 30 Oct 2014 06:33:27 GMT', 'vary': 'X-Auth-Token', 'content-length': '420', 'content-type': 'application/json', 'x-distribution': 'Ubuntu'} 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:5000/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('shell = cliff.formatters.shell:ShellFormatter') DEBUG: stevedore.extension found extension EntryPoint.parse('value = cliff.formatters.value:ValueFormatter') DEBUG: neutronclient.neutron.v2_0.router.CreateRouter get_data(Namespace(admin_state=True, columns=[], formatter='table', max_width=0, name=u'demo-router', prefix='', request_format='json', tenant_id=None, variables=[])) DEBUG: keystoneclient.auth.identity.v2 Making authentication request to http://controller:5000/v2.0/tokens DEBUG: keystoneclient.session REQ: curl -i -X POST http://controllerpub:9696/v2.0/routers.json -H "User-Agent: python-neutronclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 233bf423430242a6a0a037a32bdd5809" -d '{"router": {"name": "demo-router", "admin_state_up": true}}' DEBUG: keystoneclient.session RESP: DEBUG: keystoneclient.session Request returned failure status: 501 ERROR: neutronclient.shell Not Implemented (HTTP 501) (Request-ID: req-e9d26462-694c-4bcd-9a9b-f58915bda0a4) Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 691, in run_subcommand return run_command(cmd, cmd_parser, sub_argv) File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 90, in run_command return cmd.run(known_args) File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 29, in run return super(OpenStackCommand, self).run(parsed_args) File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 91, in run column_names, data = self.take_action(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 35, in take_action return self.get_data(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 467, in get_data data = obj_creator(body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 99, in with_params ret = self.function(instance, args, *kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 403, in create_router return self.post(self.routers_path, body=body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1326, in post headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1241, in do_request content_type=self.content_type()) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 319, in do_request return self.request(url, method, *kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 63, in request return self._request(url, method, body=body, headers=headers, *kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 314, in _request **kwargs)

I cannot find any errors from keystone-all.log, server.log and l3-agent.log at all. I don't know what I missed something now.

and this is my configuration of neutron:

root@controller:~/work# grep -v ^# /etc/neutron/neutron.conf | grep -v ^$ [DEFAULT] verbose = True router_distributed = True debug = True lock_path = $state_path/lock bind_host = 0.0.0.0 bind_port = 9696 core_plugin = ml2 service_plugins = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin api_paste_config = api-paste.ini auth_strategy = keystone l3_ha = True l3_agents_per_router = 2 min_l3_agents_per_router = 2 nova_url = http://controller:8774/v2 nova_admin_username = nova nova_admin_tenant_id = 37914a51643147829892437b5dea4555 nova_admin_password = openstack nova_admin_auth_url = http://controller:35357/v2.0 rabbit_hosts=controller rabbit_port=5672 rabbit_userid=guest rabbit_password = openstack backend = neutron.openstack.common.rpc.impl_kombu [matchmaker_redis] [matchmaker_ring] [quotas] [agent] root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf [keystone_authtoken] auth_uri = http://controller:5000/v2.0 auth_port = 35357 auth_protocol = http admin_tenant_name = service admin_user = neutron admin_password = openstack [database] connection = mysql://neutron:openstack@controller/neutron [service_providers] service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default service_provider=VPN:openswan:neutron.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default

Please help me to correct this problem . Thanks.

router-create 501 not implemented

I'm testing dvr of juno neutron on ubuntu 14.04.

At first, it was successful in all steps when I followed up draft doc in docs.openstack.org. But I removed demo-router to modifying something, and then I cannot make router any more.

root@controller:~/work# neutron --version 2.3.8 root@controller:~/work# source demorc root@controller:~/work# neutron --debug router-create demo-router

DEBUG: keystoneclient.session REQ: curl -i -X GET http://controller:5000/v2.0/ -H "Accept: application/json" -H "User-Agent: python-keystoneclient" python-keystoneclient"

DEBUG: keystoneclient.session RESP: [200] {'date': 'Thu, 30 Oct 2014 06:33:27 GMT', 'vary': 'X-Auth-Token', 'content-length': '420', 'content-type': 'application/json', 'x-distribution': 'Ubuntu'}

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:5000/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') cliff.formatters.table:TableFormatter')

DEBUG: stevedore.extension found extension EntryPoint.parse('shell = cliff.formatters.shell:ShellFormatter') cliff.formatters.shell:ShellFormatter')

DEBUG: stevedore.extension found extension EntryPoint.parse('value = cliff.formatters.value:ValueFormatter') cliff.formatters.value:ValueFormatter')

DEBUG: neutronclient.neutron.v2_0.router.CreateRouter get_data(Namespace(admin_state=True, columns=[], formatter='table', max_width=0, name=u'demo-router', prefix='', request_format='json', tenant_id=None, variables=[])) variables=[]))

DEBUG: keystoneclient.auth.identity.v2 Making authentication request to http://controller:5000/v2.0/tokens http://controller:5000/v2.0/tokens

DEBUG: keystoneclient.session REQ: curl -i -X POST http://controllerpub:9696/v2.0/routers.json -H "User-Agent: python-neutronclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 233bf423430242a6a0a037a32bdd5809" -d '{"router": {"name": "demo-router", "admin_state_up": true}}' true}}'

DEBUG: keystoneclient.session RESP: RESP:

DEBUG: keystoneclient.session Request returned failure status: 501 ERROR: neutronclient.shell Not Implemented (HTTP 501) (Request-ID: req-e9d26462-694c-4bcd-9a9b-f58915bda0a4) req-e9d26462-694c-4bcd-9a9b-f58915bda0a4)

Traceback (most recent call last): last):

File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 691, in run_subcommand return run_command(cmd, cmd_parser, sub_argv) sub_argv)

File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 90, in run_command return cmd.run(known_args) cmd.run(known_args)

File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 29, in run return super(OpenStackCommand, self).run(parsed_args) self).run(parsed_args)

File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 91, in run column_names, data = self.take_action(parsed_args) self.take_action(parsed_args)

File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 35, in take_action return self.get_data(parsed_args) self.get_data(parsed_args)

File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 467, in get_data data = obj_creator(body) obj_creator(body)

File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 99, in with_params ret = self.function(instance, args, *kwargs) kwargs)

File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 403, in create_router return self.post(self.routers_path, body=body) body=body)

File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1326, in post headers=headers, params=params) params=params)

File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1241, in do_request content_type=self.content_type()) content_type=self.content_type())

File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 319, in do_request return self.request(url, method, *kwargs) **kwargs)

File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 63, in request return self._request(url, method, body=body, headers=headers, *kwargs) **kwargs)

File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 314, in _request **kwargs)


I cannot find any errors from keystone-all.log, server.log and l3-agent.log at all. I don't know what I missed something now.

and this is my configuration of neutron:

root@controller:~/work# grep -v ^# /etc/neutron/neutron.conf | grep -v ^$ [DEFAULT] ^$

[DEFAULT]

verbose = True True

router_distributed = True True

debug = True True

lock_path = $state_path/lock $state_path/lock

bind_host = 0.0.0.0 0.0.0.0

bind_port = 9696 9696

core_plugin = ml2 ml2

service_plugins = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin neutron.services.l3_router.l3_router_plugin.L3RouterPlugin

api_paste_config = api-paste.ini api-paste.ini

auth_strategy = keystone keystone

l3_ha = True True

l3_agents_per_router = 2 2

min_l3_agents_per_router = 2 2

nova_url = http://controller:8774/v2 http://controller:8774/v2

nova_admin_username = nova nova

nova_admin_tenant_id = 37914a51643147829892437b5dea4555 37914a51643147829892437b5dea4555

nova_admin_password = openstack openstack

nova_admin_auth_url = http://controller:35357/v2.0 rabbit_hosts=controller rabbit_port=5672 rabbit_userid=guest http://controller:35357/v2.0

rabbit_hosts=controller

rabbit_port=5672

rabbit_userid=guest

rabbit_password = openstack openstack

backend = neutron.openstack.common.rpc.impl_kombu [matchmaker_redis] [matchmaker_ring] [quotas] [agent] neutron.openstack.common.rpc.impl_kombu

[matchmaker_redis]

[matchmaker_ring]

[quotas]

[agent]

root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf [keystone_authtoken] /etc/neutron/rootwrap.conf

[keystone_authtoken]

auth_uri = http://controller:5000/v2.0 http://controller:5000/v2.0

auth_port = 35357 35357

auth_protocol = http http

admin_tenant_name = service service

admin_user = neutron neutron

admin_password = openstack [database] openstack

[database]

connection = mysql://neutron:openstack@controller/neutron [service_providers] service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default mysql://neutron:openstack@controller/neutron

[service_providers]

service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPl uginDriver:default

service_provider=VPN:openswan:neutron.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default


Please help me to correct this problem . Thanks.

router-create 501 not implemented

I'm testing dvr of juno neutron on ubuntu 14.04.

At first, it was successful in all steps when I followed up draft doc in docs.openstack.org. But I removed demo-router to modifying something, and then I cannot make router any more.

root@controller:~/work# neutron --version 2.3.8 root@controller:~/work# source demorc root@controller:~/work# neutron --debug router-create demo-router

DEBUG: keystoneclient.session REQ: curl -i -X GET http://controller:5000/v2.0/ -H "Accept: application/json" -H "User-Agent: python-keystoneclient"

DEBUG: keystoneclient.session RESP: [200] {'date': 'Thu, 30 Oct 2014 06:33:27 GMT', 'vary': 'X-Auth-Token', 'content-length': '420', 'content-type': 'application/json', 'x-distribution': 'Ubuntu'}

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:5000/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('shell = cliff.formatters.shell:ShellFormatter')

DEBUG: stevedore.extension found extension EntryPoint.parse('value = cliff.formatters.value:ValueFormatter')

DEBUG: neutronclient.neutron.v2_0.router.CreateRouter get_data(Namespace(admin_state=True, columns=[], formatter='table', max_width=0, name=u'demo-router', prefix='', request_format='json', tenant_id=None, variables=[]))

DEBUG: keystoneclient.auth.identity.v2 Making authentication request to http://controller:5000/v2.0/tokens

DEBUG: keystoneclient.session REQ: curl -i -X POST http://controllerpub:9696/v2.0/routers.json -H "User-Agent: python-neutronclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 233bf423430242a6a0a037a32bdd5809" -d '{"router": {"name": "demo-router", "admin_state_up": true}}'

DEBUG: keystoneclient.session RESP:

DEBUG: keystoneclient.session Request returned failure status: 501 ERROR: neutronclient.shell Not Implemented (HTTP 501) (Request-ID: req-e9d26462-694c-4bcd-9a9b-f58915bda0a4)

Traceback (most recent call last):

File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 691, in run_subcommand return run_command(cmd, cmd_parser, sub_argv)

File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 90, in run_command return cmd.run(known_args)

File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 29, in run return super(OpenStackCommand, self).run(parsed_args)

File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 91, in run column_names, data = self.take_action(parsed_args)

File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 35, in take_action return self.get_data(parsed_args)

File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 467, in get_data data = obj_creator(body)

File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 99, in with_params ret = self.function(instance, args, *kwargs)

File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 403, in create_router return self.post(self.routers_path, body=body)

File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1326, in post headers=headers, params=params)

File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1241, in do_request content_type=self.content_type())

File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 319, in do_request return self.request(url, method, **kwargs)

File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 63, in request return self._request(url, method, body=body, headers=headers, **kwargs)

File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 314, in _request **kwargs)


I cannot find any errors from keystone-all.log, server.log and l3-agent.log at all. I don't know what I missed something now.

and this is my configuration of neutron:

root@controller:~/work# grep -v ^# /etc/neutron/neutron.conf | grep -v ^$

[DEFAULT]

verbose = True

router_distributed = True

debug = True

lock_path = $state_path/lock

bind_host = 0.0.0.0

bind_port = 9696

core_plugin = ml2

service_plugins = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin

api_paste_config = api-paste.ini

auth_strategy = keystone

l3_ha = True

l3_agents_per_router = 2

min_l3_agents_per_router = 2

nova_url = http://controller:8774/v2

nova_admin_username = nova

nova_admin_tenant_id = 37914a51643147829892437b5dea4555

nova_admin_password = openstack

nova_admin_auth_url = http://controller:35357/v2.0

rabbit_hosts=controller

rabbit_port=5672

rabbit_userid=guest

rabbit_password = openstack

backend = neutron.openstack.common.rpc.impl_kombu

[matchmaker_redis]

[matchmaker_ring]

[quotas]

[agent]

root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf

[keystone_authtoken]

auth_uri = http://controller:5000/v2.0

auth_port = 35357

auth_protocol = http

admin_tenant_name = service

admin_user = neutron

admin_password = openstack

[database]

connection = mysql://neutron:openstack@controller/neutron

[service_providers]

service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPl uginDriver:default

service_provider=VPN:openswan:neutron.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default


root@controller:~/work# grep -v ^# /etc/neutron/plugin.ini | grep -v ^$

[ml2]

type_drivers = gre

tenant_network_types = gre

mechanism_drivers = openvswitch,l2population

[database]

connection = mysql://neutron:openstack@controller/neutron

[ml2_type_flat]

[ml2_type_vlan]

[ml2_type_gre]

tunnel_id_ranges = 1:1000

[ml2_type_vxlan]

[securitygroup]

enable_security_group = True

firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver

[agent]

tunnel_type = gre

enable_distributed_routing = True

tunnel_types = gre

l2_population = True


Please help me to correct this problem . Thanks.

click to hide/show revision 4
No.4 Revision

router-create 501 not implemented

I'm testing dvr of juno neutron on ubuntu 14.04.

At first, it was successful in all steps when I followed up draft doc in docs.openstack.org. But I removed demo-router to modifying something, and then I cannot make router any more.

root@controller:~/work# neutron --version
2.3.8
--version2.3.8  
root@controller:~/work# source demorc
demorc  
root@controller:~/work# neutron **neutron --debug router-create demo-router

demo-router** DEBUG: keystoneclient.session REQ: curl -i -X GET http://controller:5000/v2.0/ -H "Accept: application/json" -H "User-Agent: python-keystoneclient"

python-keystoneclient" DEBUG: keystoneclient.session RESP: [200] {'date': 'Thu, 30 Oct 2014 06:33:27 GMT', 'vary': 'X-Auth-Token', 'content-length': '420', 'content-type': 'application/json', 'x-distribution': 'Ubuntu'}

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:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}

"describedby"}]}} DEBUG: stevedore.extension found extension EntryPoint.parse('table = cliff.formatters.table:TableFormatter')

cliff.formatters.table:TableFormatter') DEBUG: stevedore.extension found extension EntryPoint.parse('shell = cliff.formatters.shell:ShellFormatter')

cliff.formatters.shell:ShellFormatter') DEBUG: stevedore.extension found extension EntryPoint.parse('value = cliff.formatters.value:ValueFormatter')

cliff.formatters.value:ValueFormatter') DEBUG: neutronclient.neutron.v2_0.router.CreateRouter get_data(Namespace(admin_state=True, columns=[], formatter='table', max_width=0, name=u'demo-router', prefix='', request_format='json', tenant_id=None, variables=[]))

variables=[])) DEBUG: keystoneclient.auth.identity.v2 Making authentication request to http://controller:5000/v2.0/tokens

http://controller:5000/v2.0/tokens DEBUG: keystoneclient.session REQ: curl -i -X POST http://controllerpub:9696/v2.0/routers.json -H "User-Agent: python-neutronclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 233bf423430242a6a0a037a32bdd5809" -d '{"router": {"name": "demo-router", "admin_state_up": true}}'

true}}' DEBUG: keystoneclient.session RESP:

RESP: DEBUG: keystoneclient.session Request returned failure status: 501 ERROR: **ERROR: neutronclient.shell Not Implemented (HTTP 501) 501)** (Request-ID: req-e9d26462-694c-4bcd-9a9b-f58915bda0a4)

req-e9d26462-694c-4bcd-9a9b-f58915bda0a4)

Traceback (most recent call last):

 File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 691, in run_subcommand
    return run_command(cmd, cmd_parser, sub_argv)

sub_argv) File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 90, in run_command return cmd.run(known_args)

cmd.run(known_args) File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 29, in run return super(OpenStackCommand, self).run(parsed_args)

self).run(parsed_args) File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 91, in run column_names, data = self.take_action(parsed_args)

self.take_action(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 35, in take_action return self.get_data(parsed_args)

self.get_data(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 467, in get_data data = obj_creator(body)

obj_creator(body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 99, in with_params ret = self.function(instance, args, *kwargs)

*args, **kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 403, in create_router return self.post(self.routers_path, body=body)

body=body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1326, in post headers=headers, params=params)

params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1241, in do_request content_type=self.content_type())

content_type=self.content_type()) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 319, in do_request return self.request(url, method, **kwargs)

**kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 63, in request return self._request(url, method, body=body, headers=headers, **kwargs)

**kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 314, in _request **kwargs)

**kwargs)

I cannot find any errors from keystone-all.log, server.log and l3-agent.log at all. I don't know what I missed something now.

and this is my configuration of neutron:

root@controller:~/work#

**root@controller:~/work# grep -v ^# /etc/neutron/neutron.conf | grep -v ^$

[DEFAULT]

^$** [DEFAULT] verbose = True

True router_distributed = True

True debug = True

True lock_path = $state_path/lock

$state_path/lock bind_host = 0.0.0.0

0.0.0.0 bind_port = 9696

9696 core_plugin = ml2

ml2 service_plugins = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin

neutron.services.l3_router.l3_router_plugin.L3RouterPlugin api_paste_config = api-paste.ini

api-paste.ini auth_strategy = keystone

keystone l3_ha = True

True l3_agents_per_router = 2

2 min_l3_agents_per_router = 2

2 nova_url = http://controller:8774/v2

http://controller:8774/v2 nova_admin_username = nova

nova nova_admin_tenant_id = 37914a51643147829892437b5dea4555

37914a51643147829892437b5dea4555 nova_admin_password = openstack

openstack nova_admin_auth_url = http://controller:35357/v2.0

rabbit_hosts=controller

rabbit_port=5672

rabbit_userid=guest

http://controller:35357/v2.0 rabbit_hosts=controller rabbit_port=5672 rabbit_userid=guest rabbit_password = openstack

openstack backend = neutron.openstack.common.rpc.impl_kombu

[matchmaker_redis]

[matchmaker_ring]

[quotas]

[agent]

neutron.openstack.common.rpc.impl_kombu [matchmaker_redis] [matchmaker_ring] [quotas] [agent] root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf

[keystone_authtoken]

/etc/neutron/rootwrap.conf [keystone_authtoken] auth_uri = http://controller:5000/v2.0

http://controller:5000/v2.0 auth_port = 35357

35357 auth_protocol = http

http admin_tenant_name = service

service admin_user = neutron

neutron admin_password = openstack

[database]

openstack [database] connection = mysql://neutron:openstack@controller/neutron

[service_providers]

mysql://neutron:openstack@controller/neutron [service_providers] service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPl uginDriver:default

service_provider=VPN:openswan:neutron.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default


root@controller:~/work# grep -v ^# /etc/neutron/plugin.ini | grep -v ^$

[ml2]

type_drivers = gre

tenant_network_types = gre

mechanism_drivers = openvswitch,l2population

[database]

connection = mysql://neutron:openstack@controller/neutron

[ml2_type_flat]

[ml2_type_vlan]

[ml2_type_gre]

tunnel_id_ranges = 1:1000

[ml2_type_vxlan]

[securitygroup]

enable_security_group = True

firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver

[agent]

tunnel_type = gre

enable_distributed_routing = True

tunnel_types = gre

l2_population = True

uginDriver:default service_provider=VPN:openswan:neutron.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default

Please help me to correct this problem .
Thanks.

click to hide/show revision 5
No.5 Revision

router-create 501 not implemented

I'm testing dvr of juno neutron on ubuntu 14.04.

At first, it was successful in all steps when I followed up draft doc in docs.openstack.org. But I removed demo-router to modifying something, and then I cannot make router any more.

root@controller:~/work# neutron --version2.3.8  
root@controller:~/work# source demorc  
root@controller:~/work# **neutron --debug router-create demo-router**

DEBUG: keystoneclient.session REQ: curl -i -X GET http://controller:5000/v2.0/ -H "Accept: application/json" -H "User-Agent: python-keystoneclient"

DEBUG: keystoneclient.session RESP: [200] {'date': 'Thu, 30 Oct 2014 06:33:27 GMT', 'vary': 'X-Auth-Token', 'content-length': '420', 'content-type': 'application/json', 'x-distribution': 'Ubuntu'} 

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:5000/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('shell = cliff.formatters.shell:ShellFormatter')

DEBUG: stevedore.extension found extension EntryPoint.parse('value = cliff.formatters.value:ValueFormatter')

DEBUG: neutronclient.neutron.v2_0.router.CreateRouter get_data(Namespace(admin_state=True, columns=[], formatter='table', max_width=0, name=u'demo-router', prefix='', request_format='json', tenant_id=None, variables=[]))

DEBUG: keystoneclient.auth.identity.v2 Making authentication request to http://controller:5000/v2.0/tokens

DEBUG: keystoneclient.session REQ: curl -i -X POST http://controllerpub:9696/v2.0/routers.json -H "User-Agent: python-neutronclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 233bf423430242a6a0a037a32bdd5809" -d '{"router": {"name": "demo-router", "admin_state_up": true}}'

DEBUG: keystoneclient.session RESP:

DEBUG: keystoneclient.session Request returned failure status: 501
**ERROR: neutronclient.shell Not Implemented (HTTP 501)** (Request-ID: req-e9d26462-694c-4bcd-9a9b-f58915bda0a4)

Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 691, in run_subcommand
    return run_command(cmd, cmd_parser, sub_argv)

  File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 90, in run_command
    return cmd.run(known_args)

  File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 29, in run
    return super(OpenStackCommand, self).run(parsed_args)

  File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 91, in run
    column_names, data = self.take_action(parsed_args)

  File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 35, in take_action
    return self.get_data(parsed_args)

  File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 467, in get_data
    data = obj_creator(body)

  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 99, in with_params
    ret = self.function(instance, *args, **kwargs)

  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 403, in create_router
    return self.post(self.routers_path, body=body)

  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1326, in post
    headers=headers, params=params)

  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1241, in do_request
    content_type=self.content_type())

  File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 319, in do_request
    return self.request(url, method, **kwargs)

  File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 63, in request
    return self._request(url, method, body=body, headers=headers, **kwargs)

  File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 314, in _request **kwargs)

I cannot find any errors from keystone-all.log, server.log and l3-agent.log at all. I don't know what I missed something now.

and this is my configuration of neutron:

**root@controller:~/work# root@controller:~/work# grep -v ^# /etc/neutron/neutron.conf | grep -v ^$**
^$

[DEFAULT]

verbose = True

router_distributed = True

debug = True

lock_path = $state_path/lock

bind_host = 0.0.0.0

bind_port = 9696

core_plugin = ml2

service_plugins = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin

api_paste_config = api-paste.ini

auth_strategy = keystone

l3_ha = True

l3_agents_per_router = 2

min_l3_agents_per_router = 2

nova_url = http://controller:8774/v2

nova_admin_username = nova

nova_admin_tenant_id = 37914a51643147829892437b5dea4555

nova_admin_password = openstack

nova_admin_auth_url = http://controller:35357/v2.0

rabbit_hosts=controller

rabbit_port=5672

rabbit_userid=guest

rabbit_password = openstack

backend = neutron.openstack.common.rpc.impl_kombu

[matchmaker_redis]

[matchmaker_ring]

[quotas]

[agent]

root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf


[keystone_authtoken]

auth_uri = http://controller:5000/v2.0

auth_port = 35357

auth_protocol = http

admin_tenant_name = service

admin_user = neutron

admin_password = openstack


[database]

connection = mysql://neutron:openstack@controller/neutron

[service_providers]

service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPl
uginDriver:default

service_provider=VPN:openswan:neutron.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default

Please help me to correct this problem .
Thanks.

click to hide/show revision 6
No.6 Revision

router-create 501 not implemented

I'm testing dvr of juno neutron on ubuntu 14.04.

At first, it was successful in all steps when I followed up draft doc in docs.openstack.org. But I removed demo-router to modifying something, and then I cannot make router any more.

root@controller:~/work# neutron --version2.3.8  
root@controller:~/work# source demorc  
root@controller:~/work# **neutron neutron --debug router-create demo-router**
demo-router

DEBUG: keystoneclient.session REQ: curl -i -X GET http://controller:5000/v2.0/ -H "Accept: application/json" -H "User-Agent: python-keystoneclient"

DEBUG: keystoneclient.session RESP: [200] {'date': 'Thu, 30 Oct 2014 06:33:27 GMT', 'vary': 'X-Auth-Token', 'content-length': '420', 'content-type': 'application/json', 'x-distribution': 'Ubuntu'} 

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:5000/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('shell = cliff.formatters.shell:ShellFormatter')

DEBUG: stevedore.extension found extension EntryPoint.parse('value = cliff.formatters.value:ValueFormatter')

DEBUG: neutronclient.neutron.v2_0.router.CreateRouter get_data(Namespace(admin_state=True, columns=[], formatter='table', max_width=0, name=u'demo-router', prefix='', request_format='json', tenant_id=None, variables=[]))

DEBUG: keystoneclient.auth.identity.v2 Making authentication request to http://controller:5000/v2.0/tokens

DEBUG: keystoneclient.session REQ: curl -i -X POST http://controllerpub:9696/v2.0/routers.json -H "User-Agent: python-neutronclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 233bf423430242a6a0a037a32bdd5809" -d '{"router": {"name": "demo-router", "admin_state_up": true}}'

DEBUG: keystoneclient.session RESP:

DEBUG: keystoneclient.session Request returned failure status: 501
**ERROR: neutronclient.shell Not Implemented (HTTP 501)** (Request-ID: req-e9d26462-694c-4bcd-9a9b-f58915bda0a4)

Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 691, in run_subcommand
    return run_command(cmd, cmd_parser, sub_argv)

  File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 90, in run_command
    return cmd.run(known_args)

  File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 29, in run
    return super(OpenStackCommand, self).run(parsed_args)

  File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 91, in run
    column_names, data = self.take_action(parsed_args)

  File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 35, in take_action
    return self.get_data(parsed_args)

  File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 467, in get_data
    data = obj_creator(body)

  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 99, in with_params
    ret = self.function(instance, *args, **kwargs)

  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 403, in create_router
    return self.post(self.routers_path, body=body)

  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1326, in post
    headers=headers, params=params)

  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1241, in do_request
    content_type=self.content_type())

  File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 319, in do_request
    return self.request(url, method, **kwargs)

  File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 63, in request
    return self._request(url, method, body=body, headers=headers, **kwargs)

  File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 314, in _request **kwargs)

I cannot find any errors from keystone-all.log, server.log and l3-agent.log at all. I don't know what I missed something now.

and this is my configuration of neutron:

root@controller:~/work# grep -v ^# /etc/neutron/neutron.conf | grep -v ^$

[DEFAULT]

verbose = True

router_distributed = True

debug = True

lock_path = $state_path/lock

bind_host = 0.0.0.0

bind_port = 9696

core_plugin = ml2

service_plugins = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin

api_paste_config = api-paste.ini

auth_strategy = keystone

l3_ha = True

l3_agents_per_router = 2

min_l3_agents_per_router = 2

nova_url = http://controller:8774/v2

nova_admin_username = nova

nova_admin_tenant_id = 37914a51643147829892437b5dea4555

nova_admin_password = openstack

nova_admin_auth_url = http://controller:35357/v2.0

rabbit_hosts=controller

rabbit_port=5672

rabbit_userid=guest

rabbit_password = openstack

backend = neutron.openstack.common.rpc.impl_kombu

[matchmaker_redis]

[matchmaker_ring]

[quotas]

[agent]

root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf


[keystone_authtoken]

auth_uri = http://controller:5000/v2.0

auth_port = 35357

auth_protocol = http

admin_tenant_name = service

admin_user = neutron

admin_password = openstack


[database]

connection = mysql://neutron:openstack@controller/neutron

[service_providers]

service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPl
uginDriver:default

service_provider=VPN:openswan:neutron.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default

Please help me to correct this problem .
Thanks.

router-create 501 not implemented

I'm testing dvr of juno neutron on ubuntu 14.04.

At first, it was successful in all steps when I followed up draft doc in docs.openstack.org. But I removed demo-router to modifying something, and then I cannot make router any more.

root@controller:~/work# neutron --version2.3.8  
root@controller:~/work# source demorc  
root@controller:~/work# neutron --debug router-create demo-router

DEBUG: keystoneclient.session REQ: curl -i -X GET http://controller:5000/v2.0/ -H "Accept: application/json" -H "User-Agent: python-keystoneclient"

DEBUG: keystoneclient.session RESP: [200] {'date': 'Thu, 30 Oct 2014 06:33:27 GMT', 'vary': 'X-Auth-Token', 'content-length': '420', 'content-type': 'application/json', 'x-distribution': 'Ubuntu'} 

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:5000/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('shell = cliff.formatters.shell:ShellFormatter')

DEBUG: stevedore.extension found extension EntryPoint.parse('value = cliff.formatters.value:ValueFormatter')

DEBUG: neutronclient.neutron.v2_0.router.CreateRouter get_data(Namespace(admin_state=True, columns=[], formatter='table', max_width=0, name=u'demo-router', prefix='', request_format='json', tenant_id=None, variables=[]))

DEBUG: keystoneclient.auth.identity.v2 Making authentication request to http://controller:5000/v2.0/tokens

DEBUG: keystoneclient.session REQ: curl -i -X POST http://controllerpub:9696/v2.0/routers.json -H "User-Agent: python-neutronclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 233bf423430242a6a0a037a32bdd5809" -d '{"router": {"name": "demo-router", "admin_state_up": true}}'

DEBUG: keystoneclient.session RESP:

DEBUG: keystoneclient.session Request returned failure status: 501
**ERROR: neutronclient.shell Not Implemented (HTTP 501)** (Request-ID: req-e9d26462-694c-4bcd-9a9b-f58915bda0a4)

Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 691, in run_subcommand
    return run_command(cmd, cmd_parser, sub_argv)

  File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 90, in run_command
    return cmd.run(known_args)

  File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 29, in run
    return super(OpenStackCommand, self).run(parsed_args)

  File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 91, in run
    column_names, data = self.take_action(parsed_args)

  File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 35, in take_action
    return self.get_data(parsed_args)

  File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 467, in get_data
    data = obj_creator(body)

  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 99, in with_params
    ret = self.function(instance, *args, **kwargs)

  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 403, in create_router
    return self.post(self.routers_path, body=body)

  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1326, in post
    headers=headers, params=params)

  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1241, in do_request
    content_type=self.content_type())

  File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 319, in do_request
    return self.request(url, method, **kwargs)

  File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 63, in request
    return self._request(url, method, body=body, headers=headers, **kwargs)

  File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 314, in _request **kwargs)

I cannot find any errors from keystone-all.log, server.log and l3-agent.log at all. I don't know what I missed something now.

and this is my configuration of neutron:

root@controller:~/work# grep -v ^# /etc/neutron/neutron.conf | grep -v ^$

[DEFAULT]

verbose = True

router_distributed = True

debug = True

lock_path = $state_path/lock

bind_host = 0.0.0.0

bind_port = 9696

core_plugin = ml2

service_plugins = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin

api_paste_config = api-paste.ini

auth_strategy = keystone

l3_ha = True

l3_agents_per_router = 2

min_l3_agents_per_router = 2

nova_url = http://controller:8774/v2

nova_admin_username = nova

nova_admin_tenant_id = 37914a51643147829892437b5dea4555

nova_admin_password = openstack

nova_admin_auth_url = http://controller:35357/v2.0

rabbit_hosts=controller

rabbit_port=5672

rabbit_userid=guest

rabbit_password = openstack

backend = neutron.openstack.common.rpc.impl_kombu

[matchmaker_redis]

[matchmaker_ring]

[quotas]

[agent]

root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf


[keystone_authtoken]

auth_uri = http://controller:5000/v2.0

auth_port = 35357

auth_protocol = http

admin_tenant_name = service

admin_user = neutron

admin_password = openstack


[database]

connection = mysql://neutron:openstack@controller/neutron

[service_providers]

service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPl
uginDriver:default

service_provider=VPN:openswan:neutron.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default

Please help me to correct this problem .
Thanks.