Hi,

2013/6/5 hsin han Liu <[email protected]>:
> Hi !
> some simple questions want to ask...
>
> i followed
> https://github.com/osrg/ryu/wiki/RYU-Openstack-Grizzly-environment-HOWTO
> &
> https://github.com/osrg/ryu/wiki/RYU-OpenStack-Grizzly-environment-VM-image-file-HOWTO
>
> 1.how do i know ryu is working fine (vlan or gre tunnel) ?

a) If Ryu fails in start, stack.sh will exit with an error.

example:

  $ ./stack.sh
  <snip>
  Waiting for Quantum to start...
  + timeout 60 sh -c 'while ! http_proxy= wget -q -O-
http://192.168.1.10:9696; do sleep 1; done'
  + die 375 'Quantum did not start'
  + local exitcode=0
  + set +o xtrace
  [ERROR] ./stack.sh:375 Quantum did not start
  $


b) If Ryu started successfully, it is registered as openflow
controller at br-int.

Check the following lines of output of ovs-vsctl show (IP address
depends on the configuration).

      Bridge br-int
         Controller "tcp:192.168.1.10:6633"
              is_connected: true

example:

  $ sudo ovs-vsctl show
  c1ffb5a5-ff9d-456c-8282-6453555d91c4
      Manager "ptcp:6634"
      Bridge br-ex
          Port "tape9f47aef-45"
              Interface "tape9f47aef-45"
          Port br-ex
              Interface br-ex
                  type: internal
      Bridge br-int
          Controller "tcp:192.168.1.10:6633"
              is_connected: true
          Port "tapd1840402-37"
              Interface "tapd1840402-37"
          Port br-int
              Interface br-int
                  type: internal
          Port "tap537e1629-49"
              Interface "tap537e1629-49"
      ovs_version: "1.4.0+build0"


c) Ryu sets up some flow entries into br-int.

example for gre:

$ sudo ovs-ofctl dump-flows br-int
NXST_FLOW reply (xid=0x4):
 cookie=0x0, duration=641.913s, table=0, n_packets=0, n_bytes=0,
priority=16384,in_port=1 actions=drop
 cookie=0x0, duration=636.045s, table=0, n_packets=0, n_bytes=0,
priority=16384,in_port=2 actions=drop
 cookie=0x0, duration=636.084s, table=0, n_packets=9, n_bytes=594,
in_port=2,dl_src=fa:16:3e:d6:07:a8 actions=set_tunnel:0x2,resubmit(,1)
 cookie=0x0, duration=641.951s, table=0, n_packets=5, n_bytes=378,
in_port=1,dl_src=fa:16:3e:68:ca:bc actions=set_tunnel:0x2,resubmit(,1)
 cookie=0x0, duration=641.951s, table=1, n_packets=11, n_bytes=846,
priority=8192,tun_id=0x2 actions=resubmit(,2)
 cookie=0x0, duration=641.951s, table=1, n_packets=3, n_bytes=126,
priority=16384,tun_id=0x2,dl_dst=ff:ff:ff:ff:ff:ff
actions=resubmit(,2)
 cookie=0x0, duration=641.951s, table=2, n_packets=11, n_bytes=846,
priority=8192,tun_id=0x2 actions=drop
 cookie=0x0, duration=641.951s, table=2, n_packets=3, n_bytes=126,
priority=16384,tun_id=0x2,dl_dst=ff:ff:ff:ff:ff:ff
actions=output:1,output:2
 cookie=0x0, duration=636.085s, table=2, n_packets=0, n_bytes=0,
tun_id=0x2,dl_dst=fa:16:3e:d6:07:a8 actions=output:2
 cookie=0x0, duration=641.952s, table=2, n_packets=0, n_bytes=0,
tun_id=0x2,dl_dst=fa:16:3e:68:ca:bc actions=output:1


example for vlan:

$ sudo ovs-ofctl dump-flows br-int
NXST_FLOW reply (xid=0x4):
 cookie=0x2, duration=715.422s, table=0, n_packets=6, n_bytes=468,
priority=2,in_port=3 actions=NORMAL
 cookie=0x2, duration=824.629s, table=0, n_packets=0, n_bytes=0,
priority=2,in_port=1 actions=NORMAL
 cookie=0x2, duration=816.003s, table=0, n_packets=9, n_bytes=594,
priority=2,in_port=2 actions=NORMAL
 cookie=0x1, duration=824.629s, table=0, n_packets=0, n_bytes=0,
priority=1 actions=drop


> 2.where can i check above information or print out any message?

devstack uses Screen (http://www.gnu.org/software/screen/).
You can see the output of each openstack process on it.
To re-attach to the running screen session, run rejoin-stack.sh.


Thanks,
Kaneko

>
>
>
> thanks a lot!
>
> Allen
>
> ------------------------------------------------------------------------------
> How ServiceNow helps IT people transform IT departments:
> 1. A cloud service to automate IT design, transition and operations
> 2. Dashboards that offer high-level views of enterprise services
> 3. A single system of record for all IT processes
> http://p.sf.net/sfu/servicenow-d2d-j
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to