← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1231815] Re: When chose linuxBridge as the pluggin with Quantum, service quantum-server on controller node didn't populate quantum_linux_bridge database

 

Unable to reproduce.  If this is still an issue with the Icehouse
branch, please refile.

** Changed in: neutron
       Status: New => Invalid

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

Title:
  When chose linuxBridge as the pluggin with Quantum, service quantum-
  server on controller node didn't populate quantum_linux_bridge
  database

Status in OpenStack Neutron (virtual network service):
  Invalid

Bug description:
  The controller node throw following errors after quantum-server
  started. Mysql has an DB engin named quantum_linux_bridge and the
  service account quantum can access the DB and has full rights to it.

  2013-09-27 04:49:05    ERROR [quantum.openstack.common.rpc.amqp] Exception during message handling
  Traceback (most recent call last):
    File "/usr/lib/python2.6/site-packages/quantum/openstack/common/rpc/amqp.py", line 430, in _process_data
      rval = self.proxy.dispatch(ctxt, version, method, **args)
    File "/usr/lib/python2.6/site-packages/quantum/common/rpc.py", line 43, in dispatch
      quantum_ctxt, version, method, **kwargs)
    File "/usr/lib/python2.6/site-packages/quantum/openstack/common/rpc/dispatcher.py", line 133, in dispatch
      return getattr(proxyobj, method)(ctxt, **kwargs)
    File "/usr/lib/python2.6/site-packages/quantum/db/agents_db.py", line 173, in report_state
      plugin.create_or_update_agent(context, agent_state)
    File "/usr/lib/python2.6/site-packages/quantum/db/agents_db.py", line 145, in create_or_update_agent
      context, agent['agent_type'], agent['host'])
    File "/usr/lib/python2.6/site-packages/quantum/db/agents_db.py", line 121, in _get_agent_by_type_and_host
      Agent.host == host).one()
    File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-x86_64.egg/sqlalchemy/orm/query.py", line 2184, in one
      ret = list(self)
    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__
      return self._execute_and_instances(context)
    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
      result = conn.execute(querycontext.statement, self._params)
    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
      params)
    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
      compiled_sql, distilled_params
    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
      context)
    File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-x86_64.egg/sqlalchemy/engine/base.py", line 1691, in _execute_context
      context)
    File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-x86_64.egg/sqlalchemy/engine/default.py", line 331, in do_execute
      cursor.execute(statement, parameters)
  OperationalError: (OperationalError) no such table: agents u'SELECT agents.id AS agents_id, agents.agent_type AS agents_agent_type, agents.binary AS agents_binary, agents.topic AS agents_topic, agents.host AS agents_host, agents.admin_state_up AS agents_admin_state_up, agents.created_at AS agents_created_at, agents.started_at AS agents_started_at, agents.heartbeat_timestamp AS agents_heartbeat_timestamp, agents.description AS agents_description, agents.configurations AS agents_configurations \nFROM agents \nWHERE agents.agent_type = ? AND agents.host = ?' (u'Linux bridge agent', u'wpc0051.svc.cld1.eng.pdx.wd')

  ##################### Configuration files ####################

  [root@wpc0051 etc]# cat /etc/quantum/plugins/linuxbridge/linuxbridge_conf.ini
  [vlans]
  tenant_network_type = vlan
  network_vlan_ranges = e2vm:2048:4094,e2chef:2048:4094
  [database]
  sql_connection = mysql://quantum:<password>@10.52.202.252/quantum_linux_bridge
  reconnect_interval = 2
  [linux_bridge]
  physical_interface_mappings = e2vm:br-e2vm,e2chef:br-e2chef
  [SECURITYGROUP]
  # Firewall driver for realizing quantum security group function
  firewall_driver = quantum.agent.linux.iptables_firewall.IptablesFirewallDriver

  
  -----------------------------------

  [root@wpc0051 etc]# cat /etc/quantum/dhcp_agent.ini | grep -v ^#| grep .
  [DEFAULT]
  interface_driver = quantum.agent.linux.interface.BridgeInterfaceDriver
  dhcp_driver = quantum.agent.linux.dhcp.Dnsmasq

  
  --------------------------

  [root@wpc0051 etc]# cat /etc/quantum/quantum.conf 
  [DEFAULT]
  root_helper = sudo /usr/bin/quantum-rootwrap /etc/quantum/rootwrap.conf
  debug = False
  verbose = False
  bind_host = 10.52.202.51
  bind_port = 9696
  core_plugin = quantum.plugins.linuxbridge.lb_quantum_plugin.LinuxBridgePluginV2
  QUANTUM_PLUGIN_CONFIG="/etc/quantum/plugins/linuxbridge/linuxbridge_conf.ini"
  #ovs_use_veth = True
  allow_overlapping_ips = True
  use_namespaces = True
  api_paste_config = /etc/quantum/api-paste.ini
  control_exchange = quantum
  rabbit_host = 10.52.202.250
  rabbit_ha_queues=true
  notification_driver = quantum.openstack.common.notifier.rpc_notifier

  # keystone auth - this will cascade to all agents/services
  auth_strategy = keystone
  auth_url = http://10.52.202.251:35357/v2.0
  auth_region = RegionOne
  admin_tenant_name = service
  admin_user = quantum
  admin_password = MiJ6FL5cFU1TvpK_YRvk

  # for now, these both need to be set to the same value
  dhcp_lease_time = 1440
  dhcp_lease_duration = 1440

  # Seconds elapsed until an agent is considered down
  agent_down_time = 30

  [AGENT]
  root_helper = sudo /usr/bin/quantum-rootwrap /etc/quantum/rootwrap.conf
  polling_interval = 2

  [QUOTAS]
  # resource name(s) that are supported in quota features
  quota_items = network,subnet,port
  # default number of resource allowed per tenant, minus for unlimited
  default_quota = -1
  # number of networks allowed per tenant, and minus means unlimited
  quota_network = 10
  # number of subnets allowed per tenant, and minus means unlimited
  quota_subnet = 10
  # number of ports allowed per tenant, and minus means unlimited
  quota_port = 50
  # default driver to use for quota checks
  quota_driver = quantum.db.quota_db.DbQuotaDriver

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