← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1264482] [NEW] can't create network after enable ml2

 

Public bug reported:

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 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/engine/base.py", line 1449, in execute
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource     params)
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/engine/base.py", line 1584, in _execute_clauseelement
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource     compiled_sql, distilled_params
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/engine/base.py", line 1698, in _execute_context
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource     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/engine/base.py", line 1851, in _handle_dbapi_exception
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource     None, sys.exc_info()[2]
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource ProgrammingError: (ProgrammingError) (1146, "Table 'ovs_ml2.networkdhcpagentbindings' doesn't exist") 'SELECT networkdhcpagentbindings.network_id AS networkdhcpagentbindings_network_id, networkdhcpagentbindings.dhcp_agent_id AS networkdhcpagentbindings_dhcp_agent_id, agents_1.id AS agents_1_id, agents_1.agent_type AS agents_1_agent_type, agents_1.`binary` AS agents_1_binary, agents_1.topic AS agents_1_topic, agents_1.host AS agents_1_host, agents_1.admin_state_up AS agents_1_admin_state_up, agents_1.created_at AS agents_1_created_at, agents_1.started_at AS agents_1_started_at, agents_1.heartbeat_timestamp AS agents_1_heartbeat_timestamp, agents_1.description AS agents_1_description, agents_1.configurations AS agents_1_configurations \nFROM agents, networkdhcpagentbindings LEFT OUTER JOIN agents AS agents_1 ON agents_1.id = networkdhcpagentbindings.dhcp_agent_id \nWHERE networkdhcpagentbindings.network_id = %s AND agents.admin_state_up = %s' ('75acb2f0-0371-4a36-8b51-9532c683d241', 1)
2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource



Here is my /etc/neutron/neutron.conf:

[DEFAULT]
debug = True
core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin
service_plugins = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin
api_paste_config = /etc/neutron/api-paste.ini
auth_strategy = keystone
allow_overlapping_ips = True
rpc_backend = neutron.openstack.common.rpc.impl_qpid
qpid_hostname = 192.168.11.11
api_workers = 0

[quotas]
quota_port = -1

[agent]
root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf

[keystone_authtoken]
auth_host = 192.168.11.11
auth_port = 5000
auth_protocol = http
auth_uri = https://192.168.11.11:5000
admin_tenant_name = services
admin_user = quantum
admin_password = 123456
signing_dir = $state_path/keystone-signing

[database]
connection = mysql://neutron:neutron@192.168.11.11/ovs_ml2

[service_providers]



My /etc/neutron/plugins/ml2/ml2_conf.ini :

[ml2]
type_drivers = local,flat,vlan,gre,vxlan

tenant_network_types = local,flat,vlan,gre,vxlan

mechanism_drivers = openvswitch,linuxbridge,l2population

[ml2_type_flat]

[ml2_type_vlan]

[ml2_type_gre]
tunnel_id_ranges = 1:1000

[ml2_type_vxlan]
vni_ranges = 1:10

vxlan_group = 239.1.1.1


[securitygroup]
firewall_driver = dummy


My database:
 neutron-db-manage --config-file  /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini  current

No handlers could be found for logger "neutron.common.legacy"
INFO  [alembic.migration] Context impl MySQLImpl.
INFO  [alembic.migration] Will assume non-transactional DDL.
Current revision for mysql://neutron:XXXXX@192.168.11.11/ovs_ml2: havana -> 148a72486dd9 (head), empty message


Anyone know why this happened ????


Thanks.
-chen

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1264482

Title:
  can't create network after enable ml2

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  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 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/engine/base.py", line 1449, in execute
  2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource     params)
  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/engine/base.py", line 1584, in _execute_clauseelement
  2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource     compiled_sql, distilled_params
  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/engine/base.py", line 1698, in _execute_context
  2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource     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/engine/base.py", line 1851, in _handle_dbapi_exception
  2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource     None, sys.exc_info()[2]
  2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource ProgrammingError: (ProgrammingError) (1146, "Table 'ovs_ml2.networkdhcpagentbindings' doesn't exist") 'SELECT networkdhcpagentbindings.network_id AS networkdhcpagentbindings_network_id, networkdhcpagentbindings.dhcp_agent_id AS networkdhcpagentbindings_dhcp_agent_id, agents_1.id AS agents_1_id, agents_1.agent_type AS agents_1_agent_type, agents_1.`binary` AS agents_1_binary, agents_1.topic AS agents_1_topic, agents_1.host AS agents_1_host, agents_1.admin_state_up AS agents_1_admin_state_up, agents_1.created_at AS agents_1_created_at, agents_1.started_at AS agents_1_started_at, agents_1.heartbeat_timestamp AS agents_1_heartbeat_timestamp, agents_1.description AS agents_1_description, agents_1.configurations AS agents_1_configurations \nFROM agents, networkdhcpagentbindings LEFT OUTER JOIN agents AS agents_1 ON agents_1.id = networkdhcpagentbindings.dhcp_agent_id \nWHERE networkdhcpagentbindings.network_id = %s AND agents.admin_state_up = %s' ('75acb2f0-0371-4a36-8b51-9532c683d241', 1)
  2013-12-27 09:55:37.496 32679 TRACE neutron.api.v2.resource



  
  Here is my /etc/neutron/neutron.conf:

  [DEFAULT]
  debug = True
  core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin
  service_plugins = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin
  api_paste_config = /etc/neutron/api-paste.ini
  auth_strategy = keystone
  allow_overlapping_ips = True
  rpc_backend = neutron.openstack.common.rpc.impl_qpid
  qpid_hostname = 192.168.11.11
  api_workers = 0

  [quotas]
  quota_port = -1

  [agent]
  root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf

  [keystone_authtoken]
  auth_host = 192.168.11.11
  auth_port = 5000
  auth_protocol = http
  auth_uri = https://192.168.11.11:5000
  admin_tenant_name = services
  admin_user = quantum
  admin_password = 123456
  signing_dir = $state_path/keystone-signing

  [database]
  connection = mysql://neutron:neutron@192.168.11.11/ovs_ml2

  [service_providers]



  
  My /etc/neutron/plugins/ml2/ml2_conf.ini :

  [ml2]
  type_drivers = local,flat,vlan,gre,vxlan

  tenant_network_types = local,flat,vlan,gre,vxlan

  mechanism_drivers = openvswitch,linuxbridge,l2population

  [ml2_type_flat]

  [ml2_type_vlan]

  [ml2_type_gre]
  tunnel_id_ranges = 1:1000

  [ml2_type_vxlan]
  vni_ranges = 1:10

  vxlan_group = 239.1.1.1

  
  [securitygroup]
  firewall_driver = dummy



  My database:
   neutron-db-manage --config-file  /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini  current

  No handlers could be found for logger "neutron.common.legacy"
  INFO  [alembic.migration] Context impl MySQLImpl.
  INFO  [alembic.migration] Will assume non-transactional DDL.
  Current revision for mysql://neutron:XXXXX@192.168.11.11/ovs_ml2: havana -> 148a72486dd9 (head), empty message

  
  Anyone know why this happened ????

  
  Thanks.
  -chen

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1264482/+subscriptions


Follow ups

References