Ok, I solved this problem by replacing ryu_quantum in the suggested line by 
ovs_quantum, because there was already an ovs_quantum db there that has 
networks.tenant_id column.

After having done so, I was able to run the quantum server and ryu agent. But 
due to some reason I had to restart the agent and now its spitting out this 
error:

salman@malik:/opt/stack/quantum/quantum/plugins/ryu/agent$ 
./ryu_quantum_agent.py -v /etc/quantum/plugins/ryu/ryu.ini
INFO:root:Connecting to database "ovs_quantum" on 127.0.0.1
DEBUG:root:checking db
DEBUG:root:controller 127.0.0.1:6633
DEBUG:root:api 127.0.0.1:8080
DEBUG:root:going to ofp controller mode 127.0.0.1:6633 127.0.0.1:8080
Traceback (most recent call last):
  File "./ryu_quantum_agent.py", line 318, in <module>
    main()
  File "./ryu_quantum_agent.py", line 311, in main
    plugin = OVSQuantumOFPRyuAgent(integ_br, db, root_helper)
  File "./ryu_quantum_agent.py", line 202, in __init__
    self._setup_integration_br(integ_br, ofp_controller_addr)
  File "./ryu_quantum_agent.py", line 209, in _setup_integration_br
    self._port_update(self.nw_id_external, port)
  File "./ryu_quantum_agent.py", line 212, in _port_update
    self.api.update_port(network_id, port.switch.datapath_id, port.ofport)
  File 
"/usr/local/lib/python2.7/dist-packages/ryu-0.2-py2.7.egg/ryu/app/client.py", 
line 70, in update_port
    self._do_request('PUT', self.port_path % (network_id, dpid, port))
  File 
"/usr/local/lib/python2.7/dist-packages/ryu-0.2-py2.7.egg/ryu/app/client.py", 
line 47, in _do_request
    res.getheaders(), res.read())
httplib.HTTPException: (<httplib.HTTPResponse instance at 0x1c417a0>, 'code 404 
reason Not Found', [('date', 'Mon, 30 Apr 2012 05:37:45 GMT'), 
('content-length', '0'), ('content-type', 'text/html; charset=UTF-8')], '')

Note that it worked fine on the first run. 

Salman

> Date: Mon, 30 Apr 2012 08:35:22 +0900
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> Subject: Re: [Ryu-devel] Running quantum-server Error
> 
> On Sun, Apr 29, 2012 at 05:56:58PM -0500, Salman Malik wrote:
> > 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
> 
> This line seems wrong. You are using same db to nova.
> sql_connection = mysql://root:[email protected]:3306/ryu_quantum
>                                                   ^^^^^^^^^^^^
>                                                   This must be
> 
> distinct from name which other openstck components are using.
> 
> 
> 
> > #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
> 
> 
> -- 
> yamahata
> 
> ------------------------------------------------------------------------------
> 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
                                          
------------------------------------------------------------------------------
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

Reply via email to