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

Flows are added and hosts can ping each other even when an intent in WITHDRAWN state

    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 2 (4/6-4/17), Cardinal Sprint 3 (4/20-5/1)

      Description

      Steps:
      *****************
      1) Bring up ONOS and add a host intent between two host MAC's.
      2) Verify the intent is left in FAILED state.
      3) Now try to remove the intent and move it's state to WITHDRAWN.
      4) Bring up a simple two host, one switch Mininet topology and assign switches to ONOS.
      5) Verify intent is still in WITHDRAWN state.
      6) Try ping between hosts and notice that it goes through.

      **************************************
      onos> summary
      node=10.128.40.41, version=1.2.0.admin~2015/04/06@10:02
      nodes=5, devices=2, links=0, hosts=0, SCC(s)=0, flows=0, intents=0
      onos>
      onos> summary
      node=10.128.40.41, version=1.2.0.admin~2015/04/06@10:02
      nodes=5, devices=2, 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:02/-1
      Host to Host intent submitted:
      HostToHostIntent{id=0x100001, key=0x100001, appId=DefaultApplicationId

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

      , priority=100, resources=[00:00:00:00:00:01/-1, 00:00:00:00:00:02/-1], selector=DefaultTrafficSelector

      {criteria=[]}

      , 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:02/-1}
      onos> intents
      intents intents-events intents-events-metrics
      onos> intents
      id=0x100001, state=FAILED, key=0x100001, type=HostToHostIntent, appId=org.onosproject.cli
      resources=[00:00:00:00:00:01/-1, 00:00:00:00:00:02/-1]
      constraints=[LinkTypeConstraint{inclusive=false, types=[OPTICAL]}

      ]
      host1=00:00:00:00:00:01/-1, host2=00:00:00:00:00:02/-1
      onos> summary
      node=10.128.40.41, version=1.2.0.admin~2015/04/06@10:02
      nodes=5, devices=2, links=0, hosts=0, SCC(s)=0, flows=0, intents=1
      onos>
      onos> remove-intent org.onosproject.
      org.onosproject.bgprouter org.onosproject.cli org.onosproject.config
      org.onosproject.demo org.onosproject.election org.onosproject.fwd
      org.onosproject.intentperf org.onosproject.metrics org.onosproject.mobility
      org.onosproject.net.intent org.onosproject.null org.onosproject.openflow
      org.onosproject.optical org.onosproject.provider.host org.onosproject.provider.lldp
      org.onosproject.proxyarp org.onosproject.sdnip
      onos> remove-intent org.onosproject.cli 0x100001
      onos> summary
      node=10.128.40.41, version=1.2.0.admin~2015/04/06@10:02
      nodes=5, devices=2, links=0, hosts=0, SCC(s)=0, flows=0, intents=1
      onos> intents
      id=0x100001, state=WITHDRAWN, key=0x100001, type=HostToHostIntent, appId=org.onosproject.cli
      resources=[00:00:00:00:00:01/-1, 00:00:00:00:00:02/-1]
      constraints=[LinkTypeConstraint

      {inclusive=false, types=[OPTICAL]}]
      host1=00:00:00:00:00:01/-1, host2=00:00:00:00:00:02/-1
      onos>
      onos> intents
      id=0x100001, state=WITHDRAWN, key=0x100001, type=HostToHostIntent, appId=org.onosproject.cli
      resources=[00:00:00:00:00:01/-1, 00:00:00:00:00:02/-1]
      constraints=[LinkTypeConstraint{inclusive=false, types=[OPTICAL]}

      ]
      host1=00:00:00:00:00:01/-1, host2=00:00:00:00:00:02/-1
      onos>
      onos> summary
      node=10.128.40.41, version=1.2.0.admin~2015/04/06@10:02
      nodes=5, devices=2, links=2, hosts=0, SCC(s)=2, flows=10, intents=1
      onos> summary
      node=10.128.40.41, version=1.2.0.admin~2015/04/06@10:02
      nodes=5, devices=2, links=2, hosts=0, SCC(s)=1, flows=10, intents=1
      onos> intents
      id=0x100001, state=WITHDRAWN, key=0x100001, type=HostToHostIntent, appId=org.onosproject.cli
      resources=[00:00:00:00:00:01/-1, 00:00:00:00:00:02/-1]
      constraints=[LinkTypeConstraint

      {inclusive=false, types=[OPTICAL]}]
      host1=00:00:00:00:00:01/-1, host2=00:00:00:00:00:02/-1
      onos> intents
      id=0x100001, state=WITHDRAWN, key=0x100001, type=HostToHostIntent, appId=org.onosproject.cli
      resources=[00:00:00:00:00:01/-1, 00:00:00:00:00:02/-1]
      constraints=[LinkTypeConstraint{inclusive=false, types=[OPTICAL]}

      ]
      host1=00:00:00:00:00:01/-1, host2=00:00:00:00:00:02/-1
      onos> intents
      id=0x100001, state=WITHDRAWN, key=0x100001, type=HostToHostIntent, appId=org.onosproject.cli
      resources=[00:00:00:00:00:01/-1, 00:00:00:00:00:02/-1]
      constraints=[LinkTypeConstraint

      {inclusive=false, types=[OPTICAL]}]
      host1=00:00:00:00:00:01/-1, host2=00:00:00:00:00:02/-1
      onos> intents
      id=0x100001, state=WITHDRAWN, key=0x100001, type=HostToHostIntent, appId=org.onosproject.cli
      resources=[00:00:00:00:00:01/-1, 00:00:00:00:00:02/-1]
      constraints=[LinkTypeConstraint{inclusive=false, types=[OPTICAL]}

      ]
      host1=00:00:00:00:00:01/-1, host2=00:00:00:00:00:02/-1
      onos> intents
      id=0x100001, state=WITHDRAWN, key=0x100001, type=HostToHostIntent, appId=org.onosproject.cli
      resources=[00:00:00:00:00:01/-1, 00:00:00:00:00:02/-1]
      constraints=[LinkTypeConstraint

      {inclusive=false, types=[OPTICAL]}]
      host1=00:00:00:00:00:01/-1, host2=00:00:00:00:00:02/-1
      onos> intents
      id=0x100001, state=WITHDRAWN, key=0x100001, type=HostToHostIntent, appId=org.onosproject.cli
      resources=[00:00:00:00:00:01/-1, 00:00:00:00:00:02/-1]
      constraints=[LinkTypeConstraint{inclusive=false, types=[OPTICAL]}

      ]
      host1=00:00:00:00:00:01/-1, host2=00:00:00:00:00:02/-1
      onos> intents
      id=0x100001, state=WITHDRAWN, key=0x100001, type=HostToHostIntent, appId=org.onosproject.cli
      resources=[00:00:00:00:00:01/-1, 00:00:00:00:00:02/-1]
      constraints=[LinkTypeConstraint

      {inclusive=false, types=[OPTICAL]}]
      host1=00:00:00:00:00:01/-1, host2=00:00:00:00:00:02/-1
      onos> intents
      id=0x100001, state=WITHDRAWN, key=0x100001, type=HostToHostIntent, appId=org.onosproject.cli
      resources=[00:00:00:00:00:01/-1, 00:00:00:00:00:02/-1]
      constraints=[LinkTypeConstraint{inclusive=false, types=[OPTICAL]}

      ]
      host1=00:00:00:00:00:01/-1, host2=00:00:00:00:00:02/-1
      onos> summary
      node=10.128.40.41, version=1.2.0.admin~2015/04/06@10:02
      nodes=5, devices=2, links=2, hosts=2, SCC(s)=1, flows=10, intents=1
      onos> intents
      id=0x100001, state=WITHDRAWN, key=0x100001, type=HostToHostIntent, appId=org.onosproject.cli
      resources=[00:00:00:00:00:01/-1, 00:00:00:00:00:02/-1]
      constraints=[LinkTypeConstraint

      {inclusive=false, types=[OPTICAL]}

      ]
      host1=00:00:00:00:00:01/-1, host2=00:00:00:00:00:02/-1
      onos>
      onos> summary
      node=10.128.40.41, version=1.2.0.admin~2015/04/06@10:02
      nodes=5, devices=2, links=2, hosts=2, SCC(s)=1, flows=10, intents=1
      onos> masters
      10.128.40.41: 0 devices
      10.128.40.42: 1 devices
      of:0000000000000001
      10.128.40.43: 1 devices
      of:0000000000000002
      10.128.40.44: 0 devices
      10.128.40.45: 0 devices
      onos> flows
      deviceId=of:0000000000000001, flowRuleCount=5
      id=70000722a1acd, state=ADDED, bytes=42, packets=1, duration=141, priority=40000, tableId=DEFAULT appId=org.onosproject.proxyarp
      selector=[ETH_TYPE

      {ethType=806}]
      treatment=DefaultTrafficTreatment{immediate=[OUTPUT{port=CONTROLLER}], deferred=[], transition=None, cleared=false}
      id=f00001a7000c9, state=ADDED, bytes=2058, packets=21, duration=141, priority=123, tableId=DEFAULT appId=org.onosproject.net.intent
      selector=[ETH_DST{mac=00:00:00:00:00:01}, IN_PORT{port=2}, ETH_SRC{mac=00:00:00:00:00:02}]
      treatment=DefaultTrafficTreatment{immediate=[OUTPUT{port=1}], deferred=[], transition=None, cleared=false}
      id=f00001a707167, state=ADDED, bytes=2058, packets=21, duration=141, priority=123, tableId=DEFAULT appId=org.onosproject.net.intent
      selector=[ETH_DST{mac=00:00:00:00:00:02}, IN_PORT{port=1}, ETH_SRC{mac=00:00:00:00:00:01}]

      treatment=DefaultTrafficTreatment{immediate=[OUTPUT{port=2}]
      , deferred=[], transition=None, cleared=false}
      id=1000005f4fd73b, state=ADDED, bytes=3726, packets=46, duration=141, priority=40000, tableId=DEFAULT appId=org.onosproject.provider.lldp
      selector=[ETH_TYPE{ethType=88cc}]
      treatment=DefaultTrafficTreatment{immediate=[OUTPUT{port=CONTROLLER}]
      , deferred=[], transition=None, cleared=false}
      id=1000005f519231, state=ADDED, bytes=3726, packets=46, duration=141, priority=40000, tableId=DEFAULT appId=org.onosproject.provider.lldp
      selector=[ETH_TYPE{ethType=8942}]
      treatment=DefaultTrafficTreatment{immediate=[OUTPUT{port=CONTROLLER}], deferred=[], transition=None, cleared=false}
      deviceId=of:0000000000000002, flowRuleCount=5
      id=70000f3674267, state=ADDED, bytes=84, packets=2, duration=141, priority=40000, tableId=DEFAULT appId=org.onosproject.proxyarp
      selector=[ETH_TYPE{ethType=806}

      ]
      treatment=DefaultTrafficTreatment{immediate=[OUTPUT

      {port=CONTROLLER}], deferred=[], transition=None, cleared=false}
      id=f00001a707528, state=ADDED, bytes=2058, packets=21, duration=141, priority=123, tableId=DEFAULT appId=org.onosproject.net.intent
      selector=[ETH_DST{mac=00:00:00:00:00:02}, IN_PORT{port=2}, ETH_SRC{mac=00:00:00:00:00:01}]
      treatment=DefaultTrafficTreatment{immediate=[OUTPUT{port=1}], deferred=[], transition=None, cleared=false}
      id=f00001a70e5c6, state=ADDED, bytes=2058, packets=21, duration=141, priority=123, tableId=DEFAULT appId=org.onosproject.net.intent
      selector=[ETH_DST{mac=00:00:00:00:00:01}, IN_PORT{port=1}, ETH_SRC{mac=00:00:00:00:00:02}]

      treatment=DefaultTrafficTreatment{immediate=[OUTPUT{port=2}]
      , deferred=[], transition=None, cleared=false}
      id=1000005f520690, state=ADDED, bytes=3645, packets=45, duration=141, priority=40000, tableId=DEFAULT appId=org.onosproject.provider.lldp
      selector=[ETH_TYPE{ethType=8942}]
      treatment=DefaultTrafficTreatment{immediate=[OUTPUT{port=CONTROLLER}

      ], deferred=[], transition=None, cleared=false}
      id=100000f54aa9ad, state=ADDED, bytes=3645, packets=45, duration=141, priority=40000, tableId=DEFAULT appId=org.onosproject.provider.lldp
      selector=[ETH_TYPE

      {ethType=88cc}

      ]
      treatment=DefaultTrafficTreatment{immediate=[OUTPUT

      {port=CONTROLLER}

      ], deferred=[], transition=None, cleared=false}
      onos> apps | grep fwd
      id=12, name=org.onosproject.fwd, version=1.2.0, origin=ON.Lab, description=Reactive forwarding application using flow subsystem, features=[onos-app-fwd], featuresRepo=, permissions=[]
      onos>

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

          • Creating network
          • Adding controller
          • Adding hosts:
            h1 h2
          • Adding switches:
            s1 s2
          • Adding links:
            (h1, s1) (s1, s2) (s2, h2)
          • Configuring hosts
            h1 h2
          • Starting controller
          • Starting 2 switches
            s1 s2
          • Starting CLI:
            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> h1 ping h2
            PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
            64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=32.3 ms
            64 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=0.056 ms
            64 bytes from 10.0.0.2: icmp_seq=3 ttl=64 time=0.062 ms
            64 bytes from 10.0.0.2: icmp_seq=4 ttl=64 time=0.063 ms
            64 bytes from 10.0.0.2: icmp_seq=5 ttl=64 time=0.068 ms
            64 bytes from 10.0.0.2: icmp_seq=6 ttl=64 time=0.064 ms
            64 bytes from 10.0.0.2: icmp_seq=7 ttl=64 time=0.063 ms
            64 bytes from 10.0.0.2: icmp_seq=8 ttl=64 time=0.048 ms
            64 bytes from 10.0.0.2: icmp_seq=9 ttl=64 time=0.038 ms
            64 bytes from 10.0.0.2: icmp_seq=10 ttl=64 time=0.070 ms
            64 bytes from 10.0.0.2: icmp_seq=11 ttl=64 time=0.067 ms
            64 bytes from 10.0.0.2: icmp_seq=12 ttl=64 time=0.066 ms
            64 bytes from 10.0.0.2: icmp_seq=13 ttl=64 time=0.066 ms
            64 bytes from 10.0.0.2: icmp_seq=14 ttl=64 time=0.065 ms
            64 bytes from 10.0.0.2: icmp_seq=15 ttl=64 time=0.066 ms
            64 bytes from 10.0.0.2: icmp_seq=16 ttl=64 time=0.064 ms
            64 bytes from 10.0.0.2: icmp_seq=17 ttl=64 time=0.064 ms
            64 bytes from 10.0.0.2: icmp_seq=18 ttl=64 time=0.063 ms
            64 bytes from 10.0.0.2: icmp_seq=19 ttl=64 time=0.064 ms
            64 bytes from 10.0.0.2: icmp_seq=20 ttl=64 time=0.067 ms
            64 bytes from 10.0.0.2: icmp_seq=21 ttl=64 time=0.053 ms
            ^C
          • 10.0.0.2 ping statistics —
            21 packets transmitted, 21 received, 0% packet loss, time 20001ms
            rtt min/avg/max/mdev = 0.038/1.599/32.342/6.874 ms
            mininet> net
            h1 h1-eth0:s1-eth1
            h2 h2-eth0:s2-eth1
            s1 lo: s1-eth1:h1-eth0 s1-eth2:s2-eth2
            s2 lo: s2-eth1:h2-eth0 s2-eth2:s1-eth2
            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: