Ask Your Question
0

Issue on neutron net-create

asked 2014-02-21 09:23:40 -0600

prabhakar gravatar image

updated 2014-02-21 12:33:30 -0600

Jobin gravatar image

Hi Guys,

we are implementing openstack with single flat network and our setup has controller node,compute node, neutron node. we are green with controller & compute integration.

we are facing issue when we are run the command in neutron node for single flat network concepts

####root@neutron:~# neutron net-create --tenant-id e880401b18c643029da8ddf3eee3d3f2 sharednet1 --shared
     --provider:network_type flat --provider:physical_network physnet1
    Authentication required
root@neutron:~#

we are following the document "openstack-install-guide-apt-havana.pdf " release of feb 17 2014 release error was showing as Authentication required

log output of /var/log/neutron/dhcp-agent.log file

"2014-02-21 20:46:26.884 5128 TRACE neutron.agent.dhcp_agent     return _get_impl().call(CONF, context, topic, msg, timeout)
2014-02-21 20:46:26.884 5128 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/rpc/impl_kombu.py", line 796, in call
2014-02-21 20:46:26.884 5128 TRACE neutron.agent.dhcp_agent     rpc_amqp.get_connection_pool(conf, Connection))
2014-02-21 20:46:26.884 5128 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/rpc/amqp.py", line 551, in call
2014-02-21 20:46:26.884 5128 TRACE neutron.agent.dhcp_agent     rv = list(rv)
2014-02-21 20:46:26.884 5128 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/rpc/amqp.py", line 516, in __iter__
2014-02-21 20:46:26.884 5128 TRACE neutron.agent.dhcp_agent     raise result
2014-02-21 20:46:26.884 5128 TRACE neutron.agent.dhcp_agent RemoteError: Remote error: OperationalError (OperationalError) (1129, "Host '10.37.39.74' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'") None None
2014-02-21 20:46:26.884 5128 TRACE neutron.agent.dhcp_agent [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/rpc/amqp.py", line 438, in _process_data\n    **args)\n', u'  File "/usr/lib/python2.7/dist-packages/neutron/common/rpc.py", line 44, in dispatch\n    neutron_ctxt, version, method, namespace, **kwargs)\n', u'  File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/rpc/dispatcher.py", line 172, in dispatch\n    result = getattr(proxyobj, method)(ctxt, **kwargs)\n', u'  File "/usr/lib/python2.7/dist-packages/neutron/db/agents_db.py", line 186, in report_state\n    self.plugin.create_or_update_agent(context, agent_state)\n', u'  File "/usr/lib/python2.7/dist-packages/neutron/db/agents_db.py", line 149, in create_or_update_agent\n    context, agent[\'agent_type\'], agent[\'host\'])\n', u'  File "/usr/lib/python2.7/dist-packages/neutron/db/agents_db.py", line 125, in _get_agent_by_type_and_host\n    Agent.host == host).one()\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2306, in one\n    ret = list(self)\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2349, in __iter__\n    return self._execute_and_instances(context)\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2362, in _execute_and_instances\n    close_with_result=True)\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2353, in _connection_from_session\n    **kw)\n', u'  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 799 ...
(more)
edit retag flag offensive close merge delete

Comments

Debug output for neutron net-create: neutron --debug net-create --tenant-id e880401b18c643029da8ddf3eee3d3f2 sharednet1 --shared --provider:network_type flat --provider:physical_network physnet1 Authentication required Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 517, in run_subcommand return run_command(cmd, cmd_parser, sub_argv) File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 78, in run_command return cmd.run(known_args) File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 35, 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 41, in take_action return self.get_data(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 399, in get_data data = obj_creator(body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 108, in with_params ret = self ...(more)

prabhakar gravatar imageprabhakar ( 2014-02-21 09:48:16 -0600 )edit

Looks like user name and tenant name specified in the configuration files and what you are passing in command line have issue. Please check all the credentials you are passing everywhere for neutron.

dheeru gravatar imagedheeru ( 2014-02-21 09:52:28 -0600 )edit

3 answers

Sort by ยป oldest newest most voted
0

answered 2014-02-21 13:32:49 -0600

SamYaple gravatar image

In your DHCP log SQL is returning

"Host '10.37.39.74' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'"

This may be causing your issue, though I doubt it. It looks like incorrect creditials for keystone though. Can you check your neutron.conf and neutron/api-paste.ini for corrent credentials and urls?

edit flag offensive delete link more
0

answered 2014-02-21 20:54:09 -0600

Shiv gravatar image

I faced the same issue today. I resolved this by doing the fololwing

in /etc/neutron/api-paste.ini under [filter:authtoken] section I commented out all other settings and used the ones shown below

    [filter:authtoken]
    #paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
    #auth_host=necon02
    #auth_uri=http://necon02:5000/v2.0
    #admin_user=neutron
    #admin_tenant_name=service
    #admin_password=openstack
    #auth_version = v2.0
    paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
    delay_auth_decision = true
    auth_host = necon02
    admin_user = neutron
    admin_tenant_name = service
    admin_password = password

in /etc/neutron/neutron.conf under [keystone_authtoken] I commented out all other settings and used the ones shown below

[keystone_authtoken]
#auth_host = necon02
#admin_tenant_name = service
#admin_user = neutron
#admin_password = openstack
#auth_url = http://necon02:35357/v2.0
#auth_strategy = keystone
**auth_uri = http://necon02:5000**
auth_host = necon02
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = neutron
admin_password = openstack

I think the primary reason for the issue is that the neutron api is trying to initiate communiction with keystone api on a port 35357 as per auth_url = http://necon02:35357/v2.0, but the keystone api as per the documentaion is configured to receive inital requires on port 5000.

I found this by looking at the keystone_authtoken section of other services (eg;- nova &glance) and comparing them with what was configured for neutron.conf.

After making these change my horizon dashboard is also working and I can create netwroking using CLI an GUI both.

Yay yay !! Hope this helps !! :-) !!

Shiv !

edit flag offensive delete link more

Comments

btw ,, once you make the changes dont forget to restart the following services service nova-api restart service nova-scheduler restart service nova-conductor restart service neutron-server restart mainly neutron-server service

Shiv gravatar imageShiv ( 2014-02-21 20:56:07 -0600 )edit
0

answered 2014-02-24 03:29:15 -0600

prabhakar gravatar image

Thanks Shiv!!

now we are able to create "neutron net-create" after changing the configuration files(/etc/neutron/api-paste.ini, /etc/neutron/neutron.conf).

once again thanks for your help.

-Prabhakar

edit flag offensive delete link more

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

2 followers

Stats

Asked: 2014-02-21 09:23:40 -0600

Seen: 720 times

Last updated: Feb 24 '14