can't create network after enable ml2
Hi list,
When I run command : neutron net-create vxlan-1, I get error in neutron-server:
2013-12-27 09:55:37.493 32679 DEBUG qpid.messaging.io.ops [-] SENT[503df80]: SessionCommandPoint(command_id=serial(0), command_offset=0) write_op /usr/lib/python2.6/site-packages/qpid/messaging/driver.py:686
2013-12-27 09:55:37.496 32679 ERROR neutron.api.v2.resource [-] create failed
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource Traceback (most recent call last):
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource File "/usr/lib/python2.6/ site-packages/neutron/api/v2/resource.py", line 84, in resource
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource result = method(request=request, **args)
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource File "/usr/lib/python2.6/site-packages/neutron/api/v2/base.py", line 407, in create
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource obj)})
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource File "/usr/lib/python2.6/site-packages/neutron/api/v2/base.py", line 386, in notify
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource notifier_method)
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource File "/usr/lib/python2.6/site-packages/neutron/api/v2/base.py", line 268, in _send_dhcp_notification
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource self._dhcp_agent_notifier.notify(context, data, methodname)
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource File "/usr/lib/python2.6/site-packages/neutron/api/rpc/agentnotifiers/dhcp_rpc_agent_api.py", line 132, in notify
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource self._notification(context, methodname, data, network_id)
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource File "/usr/lib/python2.6/site-packages/neutron/api/rpc/agentnotifiers/dhcp_rpc_agent_api.py", line 79, in _notification
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource for (host, topic) in self._get_dhcp_agents(context, network_id):
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource File "/usr/lib/python2.6/site-packages/neutron/api/rpc/agentnotifiers/dhcp_rpc_agent_api.py", line 49, in _get_dhcp_agents
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource context, [network_id], active=True)
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource File "/usr/lib/python2.6/site-packages/neutron/db/agentschedulers_db.py", line 123, in get_dhcp_agents_hosting_networks
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource for binding in query
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-x86_64.egg/sqlalchemy/orm/query.py", line 2227, in __iter__
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource return self._execute_and_instances(context)
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-x86_64.egg/sqlalchemy/orm/query.py", line 2242, in _execute_and_instances
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource result = conn.execute(querycontext.statement, self._params)
2013-12-27 ...
Chen, can you check MySQL to see whether the database ovs_ml2.networkdhcpagentbindings exists? If it doesn't we will have to determine why the database table schema wasn't applied correctly.
This was also opened as a bug: https://bugs.launchpad.net/neutron/+bug/1264482 Please consider following up here with an answer once that bug is resolved.