Hi, networking-ofagent is provided for kilo later. it will not work on icehouse.
I assume you are using deb packages for installing openstack because you don't use devstack. I'm not familiar about deb packages of openstack but I found neutron-plugin-openflow-agent package. I think that you can use that. icehouse has the initial version of ofagent. So now I recommend using the juno version. On Wed, 22 Apr 2015 10:28:12 +0900 Masato Oguchi <[email protected]> wrote: > Dear Sir, > > I'm trying to use ofagent on OpenStack IceHouse. > Each node uses Ubuntu 14.04 server, and controller, network, and > several compute nodes are connected. > They are working fine with the default Open vSwitch driver. > > Then, I have installed ryu and networking-ofagent using pip, > and set up /etc/neutron/plugsin/ml2/ml2_conf.ini > according to the direction written at the following site: > > Configuration OpenStack OFAgent agent > https://github.com/osrg/ryu/wiki/Configuration-OpenStack-OFAgent-agent > > I don't use devstack in this case and choose GRE tunneling on IceHouse, > so ml2_conf.ini is modified as follows on one of compute nodes. > > --------------------------------- > [ml2] > tenant_network_types = gre > type_drivers = gre > mechanism_drivers = ofagent > > [ml2_type_gre] > tunnel_id_ranges = 1:1000 > > [ovs] > enable_tunneling=True > tunnel_type = gre > local_ip=<physical-net-ip> (setup local IP address) > > [securitygroup] > firewall_driver = > neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver > enable_security_group = True > > [agent] > get_datapath_retry_times = 60 > tunnel_types = gre > --------------------------------- > > According to the last direction of the above site, I tried to > start the ofagent on this compute node as follows: > > python /usr/local/bin/neutron-ofagent-agent --config-file > /etc/neutron/neutron.conf > --config-file /etc/neutron/plugins/ml2/ml2_conf.ini > > Does this procedure include something wrong? > The above execution of neutron-ofagent-agent returns with the > following error. > > --------------------------------- > Traceback (most recent call last): > File "/usr/local/bin/neutron-ofagent-agent", line 11, in <module> > sys.exit(main()) > File > "/usr/local/lib/python2.7/dist-packages/networking_ofagent/plugins/ofagent > /agent/main.py", > line 31, in main common_config.init(sys.argv[1:]) > AttributeError: 'module' object has no attribute 'init' > --------------------------------- > > But the main.py file located at the above directory in my environment > is like this. > > --------------------------------- > def main(): > common_config.init(sys.argv[1:]) > # the following check is a transitional workaround to make this work > # with different versions of ryu. > # TODO(yamamoto) remove this later > if ryu_cfg.CONF is not cfg.CONF: > ryu_cfg.CONF(project='ryu', args=[]) > common_config.setup_logging() > AppManager.run_apps([ > 'networking_ofagent.plugins.ofagent.agent.ofa_neutron_agent' > ]) > --------------------------------- > > Is this file and/or procedure deprecated? > If so, please let me know how to start the ofagent in this environment. > Thank you very much in advance. > > Masato Oguchi > > ------------------------------------------------------------------------------ > BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT > Develop your own process in accordance with the BPMN 2 standard > Learn Process modeling best practices with Bonita BPM through live exercises > http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ > source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF > _______________________________________________ > Ryu-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ryu-devel -- fumihiko kakuma <[email protected]> ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
