Hi kakuma,

> Currently the above document doesn't include ways to set up from
packages.
> Package maintainers will add some patches to original codes
> to run on an environment of distribution(e.g. init scripts). We don't
manage them.
> Please refer documents or ask ml of each distributon about them.

OK, I got it.
It should be really difficult to cover various environments.
I'll check it.  I thank to all your efforts.

> > My ryu is version 3.20.2 in my Juno environment.
> > But there is an error in /var/log/neutron/openflow-agent.log
> > as follows, when I restart the agent with
> >   service neutron-plugin-openflow-agent restart
> >
>
> I assumued that codes for stable/juno or updated to that of
> neutron are installed on your environment.
> But package seems to install less codes than stable/juno.
> I checked it out. deb package will have the following dependency.
>
> neutron_2014.2.2 or less requires ryu 3.18 or less.
> neutron_2014.2.3 or later requires ryu 3.19 or later.
>
> Can you check whether your environment meets the above condition?

In my environment, Juno is setup as follows:
The following line is registered in
/etc/apt/sources.list.d/ubuntu-cloud-archive-juno-trusty.list

  deb http://ubuntu-cloud.archive.canonical.com/ubuntu trusty-updates/juno
main

In network node, the following packages are installed:

  apt-get install -y neutron-plugin-ml2 neutron-plugin-openvswitch-agent
  neutron-l3-agent neutron-dhcp-agent

In compute nodes, the following packages are installed:

  apt-get install -y neutron-plugin-ml2 neutron-plugin-openvswitch-agent

Neutron is installed with above setup, and its version seems to be
2014.2.2 as follows:

--------------------------------------------------------------------------
----
ii  neutron-common                      1:2014.2.2-0ubuntu1~cloud0
all          Neutron is a virtual network service for Openstack - common
ii  neutron-dhcp-agent                  1:2014.2.2-0ubuntu1~cloud0
all          Neutron is a virtual network service for Openstack - DHCP
agent
ii  neutron-l3-agent                    1:2014.2.2-0ubuntu1~cloud0
all          Neutron is a virtual network service for Openstack - l3 agent
ii  neutron-metadata-agent              1:2014.2.2-0ubuntu1~cloud0
all          Neutron is a virtual network service for Openstack - metadata
agent
ii  neutron-plugin-ml2                  1:2014.2.2-0ubuntu1~cloud0
all          Neutron is a virtual network service for Openstack - ML2
plugin
ii  neutron-plugin-openflow-agent       1:2014.2.2-0ubuntu1~cloud0
all          Neutron is a virtual network service for Openstack - Openflow
agent
ii  neutron-plugin-openvswitch-agent    1:2014.2.2-0ubuntu1~cloud0
all          Neutron is a virtual network service for Openstack - Open
vSwitch plugin agent
ii  python-neutron                      1:2014.2.2-0ubuntu1~cloud0
all          Neutron is a virutal network service for Openstack - Python
library
ii  python-neutronclient                1:2.3.8-0ubuntu1~cloud0
all          client - Neutron is a virtual network service for Openstack
--------------------------------------------------------------------------
----

But Ryu was ver.3.20, so I have downgraded Ryu to ver.3.18.

As a result, the previous error in /var/log/neutron/openflow-agent.log
seems to be disappeared as follows:

--------------------------------------------------------------------------
----
2015-05-14 05:26:37.896 2377 INFO oslo.messaging._drivers.impl_rabbit
[req-230e54ff-8c63-49ac-bc47-42dec8573560 ] Connected to AMQP server on
controller:5672
2015-05-14 05:26:37.905 2377 INFO oslo.messaging._drivers.impl_rabbit
[req-230e54ff-8c63-49ac-bc47-42dec8573560 ] Connecting to AMQP server on
controller:5672
2015-05-14 05:26:37.913 2377 INFO oslo.messaging._drivers.impl_rabbit
[req-230e54ff-8c63-49ac-bc47-42dec8573560 ] Connected to AMQP server on
controller:5672
2015-05-14 05:26:37.926 2377 INFO oslo.messaging._drivers.impl_rabbit [-]
Connecting to AMQP server on controller:5672
2015-05-14 05:26:37.937 2377 INFO oslo.messaging._drivers.impl_rabbit [-]
Connected to AMQP server on controller:5672
2015-05-14 05:26:39.028 2377 WARNING neutron.agent.securitygroups_rpc
[req-230e54ff-8c63-49ac-bc47-42dec8573560 None] Driver configuration
doesn't match with enable_security_group
2015-05-14 05:26:39.028 2377 INFO
neutron.plugins.ofagent.agent.ofa_neutron_agent
[req-230e54ff-8c63-49ac-bc47-42dec8573560 None] Agent initialized
successfully, now running...
2015-05-14 05:26:39.028 2377 INFO
neutron.plugins.ofagent.agent.ofa_neutron_agent
[req-230e54ff-8c63-49ac-bc47-42dec8573560 None] Agent out of sync with
plugin!
2015-05-14 05:26:39.029 2377 INFO
neutron.plugins.ofagent.agent.ofa_neutron_agent
[req-230e54ff-8c63-49ac-bc47-42dec8573560 None] Agent tunnel out of sync
with plugin!
2015-05-14 05:26:39.029 2377 INFO oslo.messaging._drivers.impl_rabbit
[req-230e54ff-8c63-49ac-bc47-42dec8573560 ] Connecting to AMQP server on
controller:5672
2015-05-14 05:26:39.039 2377 INFO oslo.messaging._drivers.impl_rabbit
[req-230e54ff-8c63-49ac-bc47-42dec8573560 ] Connected to AMQP server on
controller:5672
2015-05-14 05:26:39.079 2377 INFO neutron.agent.securitygroups_rpc
[req-230e54ff-8c63-49ac-bc47-42dec8573560 None] Skipping method
prepare_devices_filter as firewall is disabled or configured as
NoopFirewallDriver.
2015-05-14 05:26:39.206 2377 INFO
neutron.plugins.ofagent.agent.ofa_neutron_agent
[req-230e54ff-8c63-49ac-bc47-42dec8573560 None] Port tape27b435b-8c
updated. Details: {u'profile': {}, u'admin_state_up': True, u'network_id':
u'72a7e904-0160-4c42-927d-a4fb21112cc3', u'segmentation_id': 2,
u'device_owner': u'compute:nova', u'physical_network': None,
u'mac_address': u'fa:16:3e:52:85:55', u'device': u'tape27b435b-8c',
u'port_id': u'e27b435b-8c', u'fixed_ips': [{u'subnet_id':
u'e41eaf4e-7d69-4cd1-bf5b-8d396422d7bb', u'ip_address': u'192.168.20.7'}],
u'network_type': u'gre'}
2015-05-14 05:26:39.206 2377 INFO
neutron.plugins.ofagent.agent.ofa_neutron_agent
[req-230e54ff-8c63-49ac-bc47-42dec8573560 None] Assigning 1 as local vlan
for net-id=72a7e904-0160-4c42-927d-a4fb21112cc3
2015-05-14 05:26:39.423 2377 INFO
neutron.plugins.ofagent.agent.ofa_neutron_agent
[req-230e54ff-8c63-49ac-bc47-42dec8573560 None] Configuration for device
tape27b435b-8c completed.
--------------------------------------------------------------------------
----

Thank you very much for your advice.
But, I still don't understand whether OFAgent is working correctly or not.
I will try to execute Ryu application on this environment and make sure
about it.

Best regards,
Masato Oguchi


> -----Original Message-----
> From: fumihiko kakuma [mailto:[email protected]]
> Sent: Tuesday, May 12, 2015 2:30 PM
> To: Masato Oguchi
> Cc: [email protected]
> Subject: Re: [Ryu-devel] How to start the ofagent
>
> Hi,
>
> On Mon, 11 May 2015 04:20:28 +0900
> Masato Oguchi <[email protected]> wrote:
>
> > Hi kakuma,
> >
> > Thank you for your reply and update the document.
> >
> > > > Configuration OpenStack OFAgent agent
> > > >
https://github.com/osrg/ryu/wiki/Configuration-OpenStack-OFAgent-agent
> > > >
> > >
> > > I added about a ryu version to be installed and configurations
> > > for kilo in the above document.
> > > Is there a point considered that you are old in the document
> > > other than the above?
> >
> > Sorry I should not say old; it is a matter of variation
> > for different versions and environments...
> >
> > Maybe it is better to tell deb package users to edit
> > /etc/neutron/plugins/ml2/ml2_conf_ofa.ini instead of
> > /etc/neutron/plugins/ml2/ml2_conf.ini
> > if ofagent only depends on ml2_conf_ofa.ini.
> >
> > (And it may be kind to tell they don't have to
> > "Start the agent" explicitly as written in this
> > document, or they should check it with the command
> > "service neutron-plugin-openflow-agent status")
> >
>
> Currently the above document doesn't include ways to set up from
packages.
> Package maintainers will add some patches to original codes
> to run on an environment of distribution(e.g. init scripts). We don't
manage them.
> Please refer documents or ask ml of each distributon about them.
>
> >
> > > Please use ryu of vaersion 3.19 or later for juno.
> >
> > Thank you for the advice.
> > My ryu is version 3.20.2 in my Juno environment.
> > But there is an error in /var/log/neutron/openflow-agent.log
> > as follows, when I restart the agent with
> >   service neutron-plugin-openflow-agent restart
> >
>
> I assumued that codes for stable/juno or updated to that of
> neutron are installed on your environment.
> But package seems to install less codes than stable/juno.
> I checked it out. deb package will have the following dependency.
>
> neutron_2014.2.2 or less requires ryu 3.18 or less.
> neutron_2014.2.3 or later requires ryu 3.19 or later.
>
> Can you check whether your environment meets the above condition?
>
> > --------------------------------------------------------------
> > ................
> > ................
> > 555-b0c5-4058-9556-7b8b678270c6 ] Connecting to AMQP server on
> > controller:5672
> > 2015-05-11 04:10:47.332 4015 INFO oslo.messaging._drivers.impl_rabbit
> > [req-14eb5555-b0c5-4058-9556-7b8b678270c6 ]
> > Connected to AMQP server on controller:5672
> > 2015-05-11 04:10:47.341 4015 ERROR ryu.lib.hub
> > [req-14eb5555-b0c5-4058-9556-7b8b678270c6 ] 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 161, in _agent_main
> >     agent = OFANeutronAgent(ryuapp, **agent_config)
> >   File
> >
"/usr/lib/python2.7/dist-packages/neutron/plugins/ofagent/agent/ofa_neutro
> > n_agent.py", line 250, in __init__
> >     self.setup_integration_br()
> >   File
> >
"/usr/lib/python2.7/dist-packages/neutron/plugins/ofagent/agent/ofa_neutro
> > n_agent.py", line 596, in setup_integration_br
> >     br.setup_ofp()
> >   File
> >
"/usr/lib/python2.7/dist-packages/neutron/plugins/ofagent/agent/ofa_neutro
> > n_agent.py", line 111, in setup_ofp
> >     host = cfg.CONF.ofp_listen_host
> >   File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line
1697,
> > in __getattr__
> >     raise NoSuchOptError(name)
> > NoSuchOptError: no such option: ofp_listen_host
> >
> > 2015-05-11 04:10:47.342 4015 INFO oslo.messaging._drivers.impl_rabbit
[-]
> > Connecting to AMQP server on controller:5672
> > 2015-05-11 04:10:47.349 4015 INFO oslo.messaging._drivers.impl_rabbit
[-]
> > Connected to AMQP server on controller:5672
> > --------------------------------------------------------------
> >
> > Please let me know if you recognize what the error means.
> > Thank you very much.
> >
> > Best regards,
> > Masato Oguchi
> >
> >
> > > -----Original Message-----
> > > From: fumihiko kakuma [mailto:[email protected]]
> > > Sent: Friday, May 08, 2015 7:50 PM
> > > To: Masato Oguchi
> > > Cc: [email protected]
> > > Subject: Re: [Ryu-devel] How to start the ofagent
> > >
> > > Hi Oguchi,
> > >
> > > On Sat, 2 May 2015 07:29:33 +0900
> > > Masato Oguchi <[email protected]> wrote:
> > >
> > > > Hi kakuma,
> > > >
> > > > Thank you for various information.
> > > > I only refer the following page for OFAgent, which seems
> > > > to include many old information...
> > > >
> > > > Configuration OpenStack OFAgent agent
> > > >
https://github.com/osrg/ryu/wiki/Configuration-OpenStack-OFAgent-agent
> > > >
> > >
> > > I added about a ryu version to be installed and configurations
> > > for kilo in the above document.
> > > Is there a point considered that you are old in the document
> > > other than the above?
> > >
> > > > If there is newer documents about these matters,
> > > > please let me know.
> > > >
> > >
> > > Currently there is only the above.
> > >
> > > > > > You can use --ofp-tcp-listen-port option.
> > > >
> > > > Thanks. I will use this.
> > > >
> > > > > > openvswitch-agent.log is a log file for openvswitch
> > > > > > agent.
> > > > > > You should check /var/log/neutron/openflow-agent.log to
> > > > > > see a status of ofagent agent.
> > > > > > And please run only one agent on a node.
> > > >
> > > > Is this mean, I have to stop
> > > > neutron-plugin-openvswitch-agent
> > > > if this is running, when I use
> > > > neutron-plugin-openflow-agent?
> > > >
> > > >
> > > > > The following seems to need in addition.
> > > > >
> > > > > # sudo apt-get install rabbitmq-server
> > > >
> > > > I have installed this package.
> > > >
> > > > > And ofagent installed from deb package is ran from
> > > > > Upstart using /etc/init/neutron-plugin-openflow-agent.conf
> > > > > That refers /etc/neutron/plugins/ml2/ml2_conf_ofa.ini instead of
> > > > > /etc/neutron/plugins/ml2/ml2_conf.ini.
> > > > > So you should configure
/etc/neutron/plugins/ml2/ml2_conf_ofa.ini.
> > > > >
> > > > > Procedure would be this way:
> > > > >
> > > > > # service neutron-plugin-openflow-agent stop
> > > > >
> > > > > do some modification.
> > > > >
> > > > > # service neutron-plugin-openflow-agent start
> > > >
> > > > I have configured /etc/neutron/plugins/ml2/ml2_conf_ofa.ini
> > > > and restart neutron-plugin-openflow-agent as you suggested.
> > > >
> > > > But this openflow agent seems not to work properly.
> > > > The last part of /var/log/neutron/openflow-agent.log is
> > > > as follows:
> > > >
> > >
> > > Please use ryu of vaersion 3.19 or later for juno.
> > >
> > > > ----------------------------------------------------
> > > > 2015-05-02 06:48:01.455 6961 INFO
oslo.messaging._drivers.impl_rabbit
> > > > [req-4d09d2a0-3f4c-493c-88a5-0c9213a9a54e ] Connecting to AMQP
server
> > on
> > > > controller:5672
> > > > 2015-05-02 06:48:01.464 6961 INFO
oslo.messaging._drivers.impl_rabbit
> > > > [req-4d09d2a0-3f4c-493c-88a5-0c9213a9a54e ] Connected to AMQP
server
> > on
> > > > controller:5672
> > > > 2015-05-02 06:48:01.472 6961 ERROR ryu.lib.hub
> > > > [req-4d09d2a0-3f4c-493c-88a5-0c9213a9a54e ] 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 161, in _agent_main
> > > >     agent = OFANeutronAgent(ryuapp, **agent_config)
> > > >   File
> > > >
> >
"/usr/lib/python2.7/dist-packages/neutron/plugins/ofagent/agent/ofa_neutro
> > > > n_agent.py", line 250, in __init__
> > > >     self.setup_integration_br()
> > > >   File
> > > >
> >
"/usr/lib/python2.7/dist-packages/neutron/plugins/ofagent/agent/ofa_neutro
> > > > n_agent.py", line 596, in setup_integration_br
> > > >     br.setup_ofp()
> > > >   File
> > > >
> >
"/usr/lib/python2.7/dist-packages/neutron/plugins/ofagent/agent/ofa_neutro
> > > > n_agent.py", line 111, in setup_ofp
> > > >     host = cfg.CONF.ofp_listen_host
> > > >   File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line
> > 1697,
> > > > in __getattr__
> > > >     raise NoSuchOptError(name)
> > > > NoSuchOptError: no such option: ofp_listen_host
> > > >
> > > > 2015-05-02 06:48:01.474 6961 INFO
oslo.messaging._drivers.impl_rabbit
> > [-]
> > > > Connecting to AMQP server on controller:5672
> > > > 2015-05-02 06:48:01.481 6961 INFO
oslo.messaging._drivers.impl_rabbit
> > [-]
> > > > Connected to AMQP server on controller:5672
> > > > ----------------------------------------------------
> > > >
> > > > And the Ryu application still cannot work.
> > > > /etc/neutron/plugins/ml2/ml2_conf_ofa.ini is configured
> > > > just like /etc/neutron/plugins/ml2/ml2_conf.ini.
> > > > Did I miss something?
> > > >
> > > >
> > > > Best regards,
> > > > Masato Oguchi
> > > >
> > > >
> > >
> > > Cut the following because too long.
> > >
> > > --
> > > fumihiko kakuma <[email protected]>
> > >
> >
> >
--------------------------------------------------------------------------
----
> > One dashboard for servers and applications across
Physical-Virtual-Cloud
> > Widest out-of-the-box monitoring support with 50+ applications
> > Performance metrics, stats and reports that give you Actionable
Insights
> > Deep dive visibility with transaction tracing using APM Insight.
> > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> > _______________________________________________
> > Ryu-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
> --
> fumihiko kakuma <[email protected]>
>

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to