Hi All,
I am trying to run Ryu plugin and get the following error when trying to run
the quantum-server:
2012-04-29 13:10:19 DEBUG [quantum.service]
********************************************************************************
2012-04-29 13:10:19 DEBUG [quantum.service] Configuration options gathered
from config file:
2012-04-29 13:10:19 DEBUG [quantum.service] /etc/quantum/quantum.conf
2012-04-29 13:10:19 DEBUG [quantum.service]
================================================
2012-04-29 13:10:19 DEBUG [quantum.service] /
quantumversions
2012-04-29 13:10:19 DEBUG [quantum.service] /v1.0
quantumapi_v1_0
2012-04-29 13:10:19 DEBUG [quantum.service] /v1.1
quantumapi_v1_1
2012-04-29 13:10:19 DEBUG [quantum.service] api_extensions_path
2012-04-29 13:10:19 DEBUG [quantum.service] bind_host
0.0.0.0
2012-04-29 13:10:19 DEBUG [quantum.service] bind_port
9696
2012-04-29 13:10:19 DEBUG [quantum.service] debug
True
2012-04-29 13:10:19 DEBUG [quantum.service] verbose
True
2012-04-29 13:10:19 DEBUG [quantum.service]
********************************************************************************
2012-04-29 13:10:19 INFO [quantum.service] Using paste.deploy config at:
/etc/quantum/quantum.conf
2012-04-29 13:10:19 DEBUG [quantum.manager] Plugin
location:quantum.plugins.ryu.ryu_quantum_plugin.RyuQuantumPlugin
2012-04-29 13:10:19 DEBUG [quantum.manager] Successfully imported Quantum
plug-in.All compatibility tests passed
2012-04-29 13:10:19 DEBUG [root] Using configuration file:
/etc/quantum/plugins/ryu/ryu.ini
2012-04-29 13:10:19 DEBUG [root] Config: <ConfigParser.ConfigParser instance
at 0x230a050>
Traceback (most recent call last):
File "/usr/local/bin/quantum-server", line 9, in <module>
load_entry_point('quantum==2012.2', 'console_scripts', 'quantum-server')()
File "/opt/stack/quantum/quantum/server/__init__.py", line 58, in main
args=args)
File "/opt/stack/quantum/quantum/service.py", line 98, in serve_wsgi
service.start()
File "/opt/stack/quantum/quantum/service.py", line 43, in start
self.wsgi_app = _run_wsgi(self.app_name, self.conf, self.conf_file)
File "/opt/stack/quantum/quantum/service.py", line 107, in _run_wsgi
None)
File "/opt/stack/python-quantumclient/quantum/common/config.py", line 319, in
load_paste_app
app = deploy.loadapp("config:%s" % conf_file, name=app_name)
File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247,
in loadapp
return loadobj(APP, uri, name=name, **kw)
File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 272,
in loadobj
return context.create()
File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710,
in create
return self.object_type.invoke(self)
File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144,
in invoke
**context.local_conf)
File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 56, in
fix_call
val = callable(*args, **kw)
File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 25, in
urlmap_factory
app = loader.get_app(app_name, global_conf=global_conf)
File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 350,
in get_app
name=name, global_conf=global_conf).create()
File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710,
in create
return self.object_type.invoke(self)
File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 203,
in invoke
app = context.app_context.create()
File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710,
in create
return self.object_type.invoke(self)
File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 146,
in invoke
return fix_call(context.object, context.global_conf, **context.local_conf)
File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 56, in
fix_call
val = callable(*args, **kw)
File "/opt/stack/quantum/quantum/wsgi.py", line 639, in factory
return cls()
File "/opt/stack/quantum/quantum/api/__init__.py", line 46, in __init__
self._setup_routes(mapper, options)
File "/opt/stack/quantum/quantum/api/__init__.py", line 53, in _setup_routes
self._setup_base_routes(mapper, options, self._version)
File "/opt/stack/quantum/quantum/api/__init__.py", line 60, in
_setup_base_routes
plugin = manager.QuantumManager.get_plugin(options)
File "/opt/stack/quantum/quantum/manager.py", line 87, in get_plugin
cls._instance = cls(options, config_file)
File "/opt/stack/quantum/quantum/manager.py", line 82, in __init__
self.plugin = plugin_klass()
File "/opt/stack/quantum/quantum/plugins/ryu/ryu_quantum_plugin.py", line 68,
in __init__
self.driver = OFPRyuDriver(self.config)
File "/opt/stack/quantum/quantum/plugins/ryu/ryu_quantum_plugin.py", line 51,
in __init__
self._create_all_tenant_network()
File "/opt/stack/quantum/quantum/plugins/ryu/ryu_quantum_plugin.py", line 54,
in _create_all_tenant_network
networks = db.network_all_tenant_list()
File "/opt/stack/quantum/quantum/db/api.py", line 125, in
network_all_tenant_list
return session.query(models.Network).all()
File
"/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.6-py2.7-linux-x86_64.egg/sqlalchemy/orm/query.py",
line 2066, in all
return list(self)
File
"/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.6-py2.7-linux-x86_64.egg/sqlalchemy/orm/query.py",
line 2176, in __iter__
return self._execute_and_instances(context)
File
"/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.6-py2.7-linux-x86_64.egg/sqlalchemy/orm/query.py",
line 2191, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File
"/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.6-py2.7-linux-x86_64.egg/sqlalchemy/engine/base.py",
line 1450, in execute
params)
File
"/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.6-py2.7-linux-x86_64.egg/sqlalchemy/engine/base.py",
line 1583, in _execute_clauseelement
compiled_sql, distilled_params
File
"/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.6-py2.7-linux-x86_64.egg/sqlalchemy/engine/base.py",
line 1697, in _execute_context
context)
File
"/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.6-py2.7-linux-x86_64.egg/sqlalchemy/engine/base.py",
line 1690, in _execute_context
context)
File
"/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.6-py2.7-linux-x86_64.egg/sqlalchemy/engine/default.py",
line 335, in do_execute
cursor.execute(statement, parameters)
File "/usr/lib/pymodules/python2.7/MySQLdb/cursors.py", line 174, in execute
self.errorhandler(self, exc, value)
File "/usr/lib/pymodules/python2.7/MySQLdb/connections.py", line 36, in
defaulterrorhandler
raise errorclass, errorvalue
sqlalchemy.exc.OperationalError: (OperationalError) (1054, "Unknown column
'networks.tenant_id' in 'field list'") 'SELECT networks.uuid AS networks_uuid,
networks.tenant_id AS networks_tenant_id, networks.name AS networks_name,
networks.op_status AS networks_op_status \nFROM networks' ()
This is how my ryu.ini file looks like:
[DATABASE]
# This line MUST be changed to actually run the plugin.
sql_connection = mysql://root:[email protected]:3306/nova
#sql_connection = mysql://<user>:<pass>@<IP>:<port>/<dbname>
#sql_connection = sqlite://root:nova@localhost/nova
[OVS]
integration-bridge = br-int
# openflow-controller = <host IP address of ofp controller>:<port: 6633>
# openflow-rest-api = <host IP address of ofp rest api service>:<port: 8080>
openflow-controller = 127.0.0.1:6633
openflow-rest-api = 127.0.0.1:8080
[AGENT]
# Change to "sudo quantum-rootwrap" to limit commands that can be run
# as root.
root_helper = sudo
and my nova.conf is as follows:
network_manager=nova.network.quantum.manager.QuantumManager
quantum_connection_host=localhost
quantum_connection_port=9696
libvirt_vif_type=ethernet
libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtOpenVswitchDriver
linuxnet_interface_driver=quantum.plugins.ryu.nova.linux_net.LinuxOVSRyuInterfaceDriver
quantum_use_dhcp=True
osapi_compute_extension=nova.api.openstack.compute.contrib.standard_extensions
my_ip=10.0.3.15
public_interface=br100
vlan_interface=eth0
flat_network_bridge=br100
flat_interface=eth1
sql_connection=mysql://root:nova@localhost/nova?charset=utf8
connection_type=libvirt
firewall_driver=quantum.plugins.ryu.nova.firewall.NopFirewallDriver
quantum_use_dhcp=True
linuxnet_ovs_ryu_api_host=127.0.0.1:8080
I know that the error is related to database but I don't know how to resolve it.
Thanks in advance for helping out.
Salman
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel