On Wed, 17 Jul 2013 12:32:55 +0900 Isaku Yamahata <[email protected]> wrote:
> When ryu starts up, related openstack components (keystone and neutron) > might not be running. They might be during start up process. > In that case, quantum_adapter results in exception as follows. > So in order to avoid ordering of starting up, lazily initialize neutoron > api. > >> hub: uncaught exception: Traceback (most recent call last): >> File "/ryu/lib/hub.py", line 48, in _launch >> func(*args, **kwargs) >> File "/ryu/base/app_manager.py", line 173, in _event_loop >> handler(ev) >> File "/ryu/app/quantum_adapter.py", line 398, in dp_handler >> ovs_switch = self._get_ovs_switch(dpid) >> File "/ryu/app/quantum_adapter.py", line 381, in _get_ovs_switch >> ovs_switch = OVSSwitch(dpid, self.nw, self.ifaces, self.logger) >> File "/ryu/app/quantum_adapter.py", line 167, in __init__ >> token = _get_auth_token(logger) >> File "/ryu/app/quantum_adapter.py", line 90, in _get_auth_token >> httpclient.authenticate() >> File "/neutronclient/client.py", line 211, in authenticate >> content_type="application/json") >> File "/neutronclient/client.py", line 141, in _cs_request >> raise exceptions.ConnectionFailed(reason=e) >> ConnectionFailed: Connection to neutron failed: [Errno 111] ECONNREFUSED > > Signed-off-by: Isaku Yamahata <[email protected]> > --- > ryu/app/quantum_adapter.py | 16 ++++++++++------ > 1 file changed, 10 insertions(+), 6 deletions(-) Applied, thanks. ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
