Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-1894

Ping stops after host-intent transitions to INSTALLED state, some flows are missing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: None
    • Labels:
    • Epic Link:
    • Sprint:
      Cardinal Sprint 4 (5/4-5/15), Cardinal Sprint 5 (5/18-5/22)

      Description

      Issue is reproducible with below steps:
      1) Bring up ONOS (my setup has 5-nodes) using latest master.
      2) Add a host intent between two host MAC addr and verify that it is moved to FAILED state.
      3) Start Mininet with a simple two switch and 4 hosts topology and assign switches to ONOS instances.
      4) Start ping between hosts h1 and h3 for which an intent is added. Notice that Ping succeeds until the intent state is moved to INSTALLED.
      5) At this state if the flows are verified there will be only 3 flows on switches instead of 4.
      *****************************************
      admin@chONOSbench:~$ cell choTest5
      ONOS_CELL=choTest5
      OCI=10.128.40.41
      OC1=10.128.40.41
      OC2=10.128.40.42
      OC3=10.128.40.43
      OC4=10.128.40.44
      OC5=10.128.40.45
      ONOS_APPS=openflow,drivers,proxyarp,mobility,metrics
      ONOS_NIC=10.128.40.*
      admin@chONOSbench:~$
      admin@chONOSbench:~/ONOS$ git log -1
      commit 16f857baa359445bf8dbb8e6cee6924ebd23c03c
      Author: Marc De Leenheer <marc@onlab.us>
      Date: Tue May 5 20:50:24 2015 -0700

      First round of cleanups in optical path provisioner. No more user input for packet/optical mininet script.

      Change-Id: Ibbfa6a17a97432da8dee63e9cd15fa6b1c2c1e46
      admin@chONOSbench:~/ONOS$
      ##################################
      admin@chONOS1:~$ /opt/onos/bin/onos
      Logging in as karaf
      458 [sshd-SshClient[55a1c291]-nio2-thread-2] WARN org.apache.sshd.client.keyverifier.AcceptAllServerKeyVerifier - Server at [localhost/127.0.0.1:8101, DSA, e0:ed:b6:7a:24:69:d1:35:87:4e:95:37:4f:af:5e:96] presented unverified {} key: {}
      Welcome to Open Network Operating System (ONOS)!
      ____ _ ______ ____
      / __ \/ |/ / __ \/ __/
      / // / / // /\ \
      ___//|/__/__/

      Hit '<tab>' for a list of available commands
      and '[cmd] --help' for help on a specific command.
      Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown ONOS.

      onos> summary
      node=10.128.40.41, version=1.2.0.admin~2015/05/10@21:03
      nodes=5, devices=0, links=0, hosts=0, SCC(s)=0, flows=0, intents=0
      onos> add-host-intent 00:00:00:00:00:01/-1 00:00:00:00:00:03/-1
      Host to Host intent submitted:
      HostToHostIntent{id=0x200000, key=0x200000, appId=DefaultApplicationId

      {id=3, name=org.onosproject.cli}

      , priority=100, resources=[00:00:00:00:00:01/-1, 00:00:00:00:00:03/-1], selector=DefaultTrafficSelector{criteria=[ETH_TYPE

      {ethType=800}]}, treatment=DefaultTrafficTreatment{immediate=[], deferred=[], transition=None, cleared=false}, constraints=[LinkTypeConstraint{inclusive=false, types=[OPTICAL]}], one=00:00:00:00:00:01/-1, two=00:00:00:00:00:03/-1}
      onos> summary
      node=10.128.40.41, version=1.2.0.admin~2015/05/10@21:03
      nodes=5, devices=0, links=0, hosts=0, SCC(s)=0, flows=0, intents=1
      onos> intents
      id=0x200000, state=FAILED, key=0x200000, type=HostToHostIntent, appId=org.onosproject.cli
      resources=[00:00:00:00:00:01/-1, 00:00:00:00:00:03/-1]
      selector=[ETH_TYPE{ethType=800}

      ]
      constraints=[LinkTypeConstraint

      {inclusive=false, types=[OPTICAL]}]
      host1=00:00:00:00:00:01/-1, host2=00:00:00:00:00:03/-1
      onos> summary
      node=10.128.40.41, version=1.2.0.admin~2015/05/10@21:03
      nodes=5, devices=2, links=2, hosts=0, SCC(s)=1, flows=10, intents=1
      onos> intents
      id=0x200000, state=INSTALLED, key=0x200000, type=HostToHostIntent, appId=org.onosproject.cli
      resources=[00:00:00:00:00:01/-1, 00:00:00:00:00:03/-1]
      selector=[ETH_TYPE{ethType=800}]
      constraints=[LinkTypeConstraint{inclusive=false, types=[OPTICAL]}

      ]
      host1=00:00:00:00:00:01/-1, host2=00:00:00:00:00:03/-1
      onos> intents
      id=0x200000, state=INSTALLED, key=0x200000, type=HostToHostIntent, appId=org.onosproject.cli
      resources=[00:00:00:00:00:01/-1, 00:00:00:00:00:03/-1]
      selector=[ETH_TYPE

      {ethType=800}

      ]
      constraints=[LinkTypeConstraint

      {inclusive=false, types=[OPTICAL]}

      ]
      host1=00:00:00:00:00:01/-1, host2=00:00:00:00:00:03/-1
      onos> summary
      node=10.128.40.41, version=1.2.0.admin~2015/05/10@21:03
      nodes=5, devices=2, links=2, hosts=2, SCC(s)=1, flows=13, intents=1
      onos>

      ##########################################
      admin@chONOSbench:~$ sudo mn --custom ~/mininet/custom/topo-2sw-2host.py --topo mytopo --mac --controller=none

          • Creating network
          • Adding controller
          • Adding hosts:
            h1 h2 h3 h4
          • Adding switches:
            s1 s2
          • Adding links:
            (h1, s1) (h2, s1) (s1, s2) (s2, h3) (s2, h4)
          • Configuring hosts
            h1 h2 h3 h4
          • Starting controller
          • Starting 2 switches
            s1 s2
          • Starting CLI:
            mininet>
            mininet>
            mininet>
            mininet>
            mininet>
            mininet>
            mininet>
            mininet> sh ovs-vsctl set-controller s1 tcp:10.128.40.41:6633 tcp:10.128.40.42:6633 tcp:10.128.40.43:6633 tcp:10.128.40.44:6633 tcp:10.128.40.45:6633
            mininet> sh ovs-vsctl set-controller s2 tcp:10.128.40.41:6633 tcp:10.128.40.42:6633 tcp:10.128.40.43:6633 tcp:10.128.40.44:6633 tcp:10.128.40.45:6633
            mininet>
            mininet>
            mininet> sh ovs-ofctl dump-flows s1
            NXST_FLOW reply (xid=0x4):
            cookie=0x200001331b621, duration=48.239s, table=0, n_packets=2, n_bytes=156, idle_age=21, priority=40000,icmp6,icmp_type=135 actions=CONTROLLER:65535
            cookie=0x200001331b9e2, duration=48.240s, table=0, n_packets=0, n_bytes=0, idle_age=48, priority=40000,icmp6,icmp_type=136 actions=CONTROLLER:65535
            cookie=0x20000a8753ed6, duration=48.244s, table=0, n_packets=15, n_bytes=1215, idle_age=1, priority=40000,dl_type=0x88cc actions=CONTROLLER:65535
            cookie=0x20000a876f9cc, duration=48.245s, table=0, n_packets=15, n_bytes=1215, idle_age=1, priority=40000,dl_type=0x8942 actions=CONTROLLER:65535
            cookie=0x20000a691d790, duration=48.240s, table=0, n_packets=0, n_bytes=0, idle_age=48, priority=40000,arp actions=CONTROLLER:65535
            mininet> sh ovs-ofctl dump-flows s2
            NXST_FLOW reply (xid=0x4):
            cookie=0x2000013322a80, duration=55.301s, table=0, n_packets=2, n_bytes=156, idle_age=29, priority=40000,icmp6,icmp_type=135 actions=CONTROLLER:65535
            cookie=0x2000013322e41, duration=55.301s, table=0, n_packets=0, n_bytes=0, idle_age=55, priority=40000,icmp6,icmp_type=136 actions=CONTROLLER:65535
            cookie=0x20000a875b335, duration=55.300s, table=0, n_packets=17, n_bytes=1377, idle_age=2, priority=40000,dl_type=0x88cc actions=CONTROLLER:65535
            cookie=0x20000a8776e2b, duration=55.301s, table=0, n_packets=17, n_bytes=1377, idle_age=2, priority=40000,dl_type=0x8942 actions=CONTROLLER:65535
            cookie=0x200006fe07cd9, duration=55.301s, table=0, n_packets=0, n_bytes=0, idle_age=55, priority=40000,arp actions=CONTROLLER:65535
            mininet>
            mininet> h1 ping h3
            PING 10.0.0.3 (10.0.0.3) 56(84) bytes of data.
            64 bytes from 10.0.0.3: icmp_seq=2 ttl=64 time=0.255 ms
            64 bytes from 10.0.0.3: icmp_seq=3 ttl=64 time=0.071 ms
            64 bytes from 10.0.0.3: icmp_seq=4 ttl=64 time=0.067 ms
            64 bytes from 10.0.0.3: icmp_seq=5 ttl=64 time=0.064 ms
            64 bytes from 10.0.0.3: icmp_seq=6 ttl=64 time=0.067 ms
            64 bytes from 10.0.0.3: icmp_seq=7 ttl=64 time=0.062 ms
            64 bytes from 10.0.0.3: icmp_seq=11 ttl=64 time=0.233 ms
            64 bytes from 10.0.0.3: icmp_seq=12 ttl=64 time=0.054 ms
            64 bytes from 10.0.0.3: icmp_seq=13 ttl=64 time=0.070 ms
            64 bytes from 10.0.0.3: icmp_seq=14 ttl=64 time=0.048 ms
            64 bytes from 10.0.0.3: icmp_seq=15 ttl=64 time=0.063 ms
            64 bytes from 10.0.0.3: icmp_seq=16 ttl=64 time=0.062 ms
            64 bytes from 10.0.0.3: icmp_seq=17 ttl=64 time=0.050 ms

      ^C
      — 10.0.0.3 ping statistics —
      46 packets transmitted, 13 received, 71% packet loss, time 45009ms
      rtt min/avg/max/mdev = 0.048/0.089/0.255/0.067 ms
      mininet>
      mininet> sh ovs-ofctl dump-flows s1
      NXST_FLOW reply (xid=0x4):
      cookie=0x200001331b621, duration=131.018s, table=0, n_packets=3, n_bytes=234, idle_age=59, priority=40000,icmp6,icmp_type=135 actions=CONTROLLER:65535
      cookie=0x200001331b9e2, duration=131.019s, table=0, n_packets=0, n_bytes=0, idle_age=131, priority=40000,icmp6,icmp_type=136 actions=CONTROLLER:65535
      cookie=0x1e000032a849e1, duration=56.995s, table=0, n_packets=36, n_bytes=3528, idle_age=21, priority=123,ip,in_port=1,dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:03 actions=output:3
      cookie=0x1e0000328d039d, duration=56.995s, table=0, n_packets=7, n_bytes=686, idle_age=50, priority=123,ip,in_port=3,dl_src=00:00:00:00:00:03,dl_dst=00:00:00:00:00:01 actions=output:1
      cookie=0x20000a8753ed6, duration=131.023s, table=0, n_packets=42, n_bytes=3402, idle_age=0, priority=40000,dl_type=0x88cc actions=CONTROLLER:65535
      cookie=0x20000a876f9cc, duration=131.024s, table=0, n_packets=42, n_bytes=3402, idle_age=0, priority=40000,dl_type=0x8942 actions=CONTROLLER:65535
      cookie=0x20000a691d790, duration=131.019s, table=0, n_packets=2, n_bytes=84, idle_age=18, priority=40000,arp actions=CONTROLLER:65535
      mininet> sh ovs-ofctl dump-flows s2
      NXST_FLOW reply (xid=0x4):
      cookie=0x2000013322a80, duration=139.982s, table=0, n_packets=3, n_bytes=234, idle_age=69, priority=40000,icmp6,icmp_type=135 actions=CONTROLLER:65535
      cookie=0x2000013322e41, duration=139.982s, table=0, n_packets=0, n_bytes=0, idle_age=139, priority=40000,icmp6,icmp_type=136 actions=CONTROLLER:65535
      cookie=0x1e0000329b1b1e, duration=65.970s, table=0, n_packets=36, n_bytes=3528, idle_age=30, priority=123,ip,in_port=3,dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:03 actions=output:1
      cookie=0x20000a875b335, duration=139.981s, table=0, n_packets=45, n_bytes=3645, idle_age=0, priority=40000,dl_type=0x88cc actions=CONTROLLER:65535
      cookie=0x20000a8776e2b, duration=139.982s, table=0, n_packets=45, n_bytes=3645, idle_age=0, priority=40000,dl_type=0x8942 actions=CONTROLLER:65535
      cookie=0x200006fe07cd9, duration=139.982s, table=0, n_packets=2, n_bytes=84, idle_age=69, priority=40000,arp actions=CONTROLLER:65535
      mininet>

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            hari hari
            Reporter:
            hari hari
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: