Hi, Oguchi

Hmm, I'm suspecting that it may be problem of
a combination between packages.
Can you tell results of the following?

  $ COLUMNS=150 dpkg -l
  $ pip freeze


thanks, kakuma

On Wed, 22 Apr 2015 15:16:05 +0900
Masato Oguchi <[email protected]> wrote:

> Hi kakuma,
> 
> Thank you very much for the information.
> 
> > icehouse has the initial version of ofagent.
> > So now I recommend using the juno version.
> 
> OK, then I will version up later.
> But since it takes a little time, I'd like to use IceHouse
> just for now.
> 
> > 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.
> 
> Actually, I configured OpenStack IceHouse by installing
> each package with apt-get, based on these documents.
> 
> OpenStack Installation Guide for Ubuntu 12.04/14.04 (LTS)
> http://docs.openstack.org/icehouse/install-guide/install/apt/content/
> 
> http://enterprisecloud.jp/installguide-openstack/
> 
> According to your advice, I have uninstalled networking-ofagent
> and installed neutron-plugin-openflow-agent instead using apt-get.
> After the installation of neutron-plugin-openflow-agent, I have
> started the agent as written in the document,
> 
> > >   Configuration OpenStack OFAgent agent
> > >
> https://github.com/osrg/ryu/wiki/Configuration-OpenStack-OFAgent-agent
> 
> but it causes the following error:
> 
> ---------------------------------------------------
> # python /usr/bin/neutron-ofagent-agent --config-file
> /etc/neutron/neutron.conf
> --config-file /etc/neutron/plugins/ml2/ml2_conf.ini
> 2015-04-22 14:37:58.290 6522 ERROR ryu.lib.hub [-] hub: uncaught
> exception: Traceback (most recent call last):
>   File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 52,
> in _launch
>     func(*args, **kwargs)
>   File
> "/usr/lib/python2.7/dist-packages/neutron/plugins/ofagent/agent/ofa_neutro
> n_agent.py", line 169, in _agent_main
>     n_utils.log_opt_values(LOG)
>   File "/usr/lib/python2.7/dist-packages/neutron/common/utils.py", line
> 263, in log_opt_values
>     cfg.CONF.log_opt_values(log, std_logging.DEBUG)
>   File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1931,
> in log_opt_values
>     logger.log(lvl, "config files: %s", self.config_file)
>   File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1648,
> in __getattr__
>     raise NoSuchOptError(name)
> NoSuchOptError: no such option: config_file
> ---------------------------------------------------
> 
> Is this the correct way to start neutron-ofagent-agent,
> or may I miss something?
> I welcome some advices.
> 
> Best regards,
> Masato Oguchi
> 
> 
> > -----Original Message-----
> > From: fumihiko kakuma [mailto:[email protected]]
> > Sent: Wednesday, April 22, 2015 12:42 PM
> > To: Masato Oguchi
> > Cc: [email protected]
> > Subject: Re: [Ryu-devel] How to start the ofagent
> >
> > 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

-- 
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

Reply via email to