Bug 1046893
| Summary: | can't create network after enable ml2 | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | chen.li |
| Component: | openstack-neutron | Assignee: | RHOS Maint <rhos-maint> |
| Status: | CLOSED ERRATA | QA Contact: | Ofer Blaut <oblaut> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | chrisw, mlopes, nyechiel, yeylon |
| Target Milestone: | rc | ||
| Target Release: | 5.0 (RHEL 7) | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-07-08 15:33:44 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
ML2 was tested with packstack ML2 + GRE , ML2 + VLAN openstack-neutron-2014.1-20.el7ost.noarch Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2014-0848.html |
Description of problem: Failed create new network when I'm using ML2 plugin for neutron. Version-Release number of selected component (if applicable): openstack-neutron.noarch 2013.2.1-1.el6 @openstack-havana openstack-neutron-linuxbridge.noarch 2013.2.1-1.el6 @openstack-havana openstack-neutron-ml2.noarch 2013.2.1-1.el6 @openstack-havana openstack-neutron-openvswitch.noarch 2013.2.1-1.el6 @openstack-havana python-neutron.noarch 2013.2.1-1.el6 @openstack-havana python-neutronclient.noarch 2.3.1-1.el6 @openstack-havana How reproducible: Happens every time. Steps to Reproduce: 1. Configure neutron-server to use ML2 plugin. 2. Create a new database for Neutron. 3. Initiate database by command : neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head 4. start neutron-server 5 try create a new network Actual results: 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 Expected results: create network successfully. Additional info: /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.11.11/ovs_ml2 [service_providers] /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