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

ObjectiveTracker.intentsByLink is not updated after ONOS node reboot

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.13.0
    • Component/s: Platform
    • Labels:
    • Environment:

      3 node ONOS cluster

      2 OVS + Openflow

      Point to Point intents between 2 OVS.

    • Story Points:
      3

      Description

      ObjectiveTracker.intentsByLink is not updated after ONOS node reboot, and Intents Path Failover fails.

      1. Initial Intent

      My title

      onos> intents -f 38:EA:A7:91:DB:99-14:02:EC:8F:6C:1D -i
      Id: 0x4
      State: INSTALLED
      Key: 38:EA:A7:91:DB:99-14:02:EC:8F:6C:1D
      Intent type: PointToPointIntent
      Application Id: org.onosproject.fabricintents
      Common ingress selector: ETH_DST:14:02:EC:8F:6C:1D, ETH_SRC:38:EA:A7:91:DB:99
      Treatment: [NOACTION]
      Constraints: [HashedPathSelection]
      Ingress connect points and individual selectors
       -> Connect Point: of:8007006500000001/LOCAL   Selector: Inherited
      Egress connect points and individual selectors
       -> Connect Point: of:8007006600000001/LOCAL   Selector: Inherited
      Installable: [FlowRuleIntent{id=0x300007, key=38:EA:A7:91:DB:99-14:02:EC:8F:6C:1D, appId=DefaultApplicationId{id=3, name=org.onosproject.net.intent}, resources=[

      DefaultLink{src=of:8007006500000001/2, dst=of:8007003e00000002/1, type=DIRECT, state=ACTIVE, expected=false},

      DefaultLink{src=of:8007003e00000002/74, dst=of:8007003500000002/98, type=DIRECT, state=ACTIVE, expected=false},

      DefaultLink{src=of:8007003500000002/101, dst=of:8007004100000002/74, type=DIRECT, state=ACTIVE, expected=false},

      DefaultLink{src=of:8007004100000002/1, dst=of:8007006600000001/1, type=DIRECT, state=ACTIVE, expected=false}

      ],

       flowRule=[
      DefaultFlowRule{id=300005dc2a2b9, deviceId=of:8007004100000002, priority=100, selector=[IN_PORT:74, ETH_DST:14:02:EC:8F:6C:1D, ETH_SRC:38:EA:A7:91:DB:99], treatment=DefaultTrafficTreatment{immediate=[OUTPUT:1], deferred=[], transition=None, meter=[], cleared=false, StatTrigger=null, metadata=null}, tableId=0, created=1521680106861, payLoad=null},
      DefaultFlowRule{id=3000079cc7ef8, deviceId=of:8007006500000001, priority=100, selector=[IN_PORT:LOCAL, ETH_DST:14:02:EC:8F:6C:1D, ETH_SRC:38:EA:A7:91:DB:99], treatment=DefaultTrafficTreatment{immediate=[OUTPUT:2], deferred=[], transition=None, meter=[], cleared=false, StatTrigger=null, metadata=null}, tableId=0, created=1521680106861, payLoad=null},
      DefaultFlowRule{id=300002204fa77, deviceId=of:8007003e00000002, priority=100, selector=[IN_PORT:1, ETH_DST:14:02:EC:8F:6C:1D, ETH_SRC:38:EA:A7:91:DB:99], treatment=DefaultTrafficTreatment{immediate=[OUTPUT:74], deferred=[], transition=None, meter=[], cleared=false, StatTrigger=null, metadata=null}, tableId=0, created=1521680106862, payLoad=null},
      DefaultFlowRule{id=30000988beb28, deviceId=of:8007006600000001, priority=100, selector=[IN_PORT:1, ETH_DST:14:02:EC:8F:6C:1D, ETH_SRC:38:EA:A7:91:DB:99], treatment=DefaultTrafficTreatment{immediate=[OUTPUT:LOCAL], deferred=[], transition=None, meter=[], cleared=false, StatTrigger=null, metadata=null}, tableId=0, created=1521680106862, payLoad=null},
      DefaultFlowRule{id=300001bf7c721, deviceId=of:8007003500000002, priority=100, selector=[IN_PORT:98, ETH_DST:14:02:EC:8F:6C:1D, ETH_SRC:38:EA:A7:91:DB:99], treatment=DefaultTrafficTreatment{immediate=[OUTPUT:101], deferred=[], transition=None, meter=[], cleared=false, StatTrigger=null, metadata=null}, tableId=0, created=1521680106862, payLoad=null}], resourceGroup=null}]

       

      2. I did ONOS node reboot

       

      3. After completion of ONOS node reboot, Port down occurred on of:8007006500000001/2.

      My title

       id=of:8007006500000001, available=true, local-status=connected 6h34m ago, role=STANDBY, type=SWITCH, mfr=Nicira, Inc., hw=Open vSwitch, sw=2.8.1, serial=None, driver=dc-vtn, channelId=128.7.0.101:55284, dataplaneIp=120.0.0.131, dcNodeType=COMPUTENODE-BRPHY, managementAddress=128.7.0.101, name=dl2, protocol=OF_13, rackId=1, rackPosition=20, serverManufacturer=HP
        port=LOCAL, state=enabled, type=copper, speed=10 , adminState=enabled, portName=br-phy, portMac=38:ea:a7:91:db:99
        port=1, state=enabled, type=copper, speed=10000 , adminState=enabled, portName=ens1f1, portMac=38:ea:a7:91:db:99
        port=2, state=disabled, type=copper, speed=0 , adminState=enabled, portName=ens2f1, portMac=8c:dc:d4:b0:be:81

       

      4. But intents path failover did not occur

      (Same Intents installables - no change)

      My title

       onos> intents -f 38:EA:A7:91:DB:99-14:02:EC:8F:6C:1D -i
      Id: 0x4
      State: INSTALLED
      Key: 38:EA:A7:91:DB:99-14:02:EC:8F:6C:1D
      Intent type: PointToPointIntent
      Application Id: org.onosproject.fabricintents
      Common ingress selector: ETH_DST:14:02:EC:8F:6C:1D, ETH_SRC:38:EA:A7:91:DB:99
      Treatment: [NOACTION]
      Constraints: [HashedPathSelection]
      Ingress connect points and individual selectors
       -> Connect Point: of:8007006500000001/LOCAL   Selector: Inherited
      Egress connect points and individual selectors
       -> Connect Point: of:8007006600000001/LOCAL   Selector: Inherited
      Installable: [FlowRuleIntent{id=0x300007, key=38:EA:A7:91:DB:99-14:02:EC:8F:6C:1D, appId=DefaultApplicationId{id=3, name=org.onosproject.net.intent}, resources=[

      DefaultLink{src=of:8007006500000001/2, dst=of:8007003e00000002/1, type=DIRECT, state=ACTIVE, expected=false},

      DefaultLink{src=of:8007003e00000002/74, dst=of:8007003500000002/98, type=DIRECT, state=ACTIVE, expected=false},

      DefaultLink{src=of:8007003500000002/101, dst=of:8007004100000002/74, type=DIRECT, state=ACTIVE, expected=false},

      DefaultLink{src=of:8007004100000002/1, dst=of:8007006600000001/1, type=DIRECT, state=ACTIVE, expected=false}

      ],

       flowRule=[
      DefaultFlowRule{id=300005dc2a2b9, deviceId=of:8007004100000002, priority=100, selector=[IN_PORT:74, ETH_DST:14:02:EC:8F:6C:1D, ETH_SRC:38:EA:A7:91:DB:99], treatment=DefaultTrafficTreatment{immediate=[OUTPUT:1], deferred=[], transition=None, meter=[], cleared=false, StatTrigger=null, metadata=null}, tableId=0, created=1521680106861, payLoad=null},
      DefaultFlowRule{id=3000079cc7ef8, deviceId=of:8007006500000001, priority=100, selector=[IN_PORT:LOCAL, ETH_DST:14:02:EC:8F:6C:1D, ETH_SRC:38:EA:A7:91:DB:99], treatment=DefaultTrafficTreatment{immediate=[OUTPUT:2], deferred=[], transition=None, meter=[], cleared=false, StatTrigger=null, metadata=null}, tableId=0, created=1521680106861, payLoad=null},
      DefaultFlowRule{id=300002204fa77, deviceId=of:8007003e00000002, priority=100, selector=[IN_PORT:1, ETH_DST:14:02:EC:8F:6C:1D, ETH_SRC:38:EA:A7:91:DB:99], treatment=DefaultTrafficTreatment{immediate=[OUTPUT:74], deferred=[], transition=None, meter=[], cleared=false, StatTrigger=null, metadata=null}, tableId=0, created=1521680106862, payLoad=null},
      DefaultFlowRule{id=30000988beb28, deviceId=of:8007006600000001, priority=100, selector=[IN_PORT:1, ETH_DST:14:02:EC:8F:6C:1D, ETH_SRC:38:EA:A7:91:DB:99], treatment=DefaultTrafficTreatment{immediate=[OUTPUT:LOCAL], deferred=[], transition=None, meter=[], cleared=false, StatTrigger=null, metadata=null}, tableId=0, created=1521680106862, payLoad=null},
      DefaultFlowRule{id=300001bf7c721, deviceId=of:8007003500000002, priority=100, selector=[IN_PORT:98, ETH_DST:14:02:EC:8F:6C:1D, ETH_SRC:38:EA:A7:91:DB:99], treatment=DefaultTrafficTreatment{immediate=[OUTPUT:101], deferred=[], transition=None, meter=[], cleared=false, StatTrigger=null, metadata=null}, tableId=0, created=1521680106862, payLoad=null}], resourceGroup=null}]

       

      5. If I enable Trace log of IntentManager & ObjectiveTracker. Then I can see the below logs. 

      My title

      2018-03-22 17:00:37,579 | INFO  | nos-topo-build-6 | TopologyManager                  | 145 - org.onosproject.onos-core-net - 1.12.0 | Topology DefaultTopology{time=25222813141353, creationTime=1521705637575, computeCost=378135, clusters=20, devices=32, links=43} changed
      2018-03-22 17:00:37,699 | DEBUG | objectivetracker | ObjectiveTracker                 | 145 - org.onosproject.onos-core-net - 1.12.0 | recompile triggered by LinkEvent LinkKey{src=of:8007003e00000002/1, dst=of:8007006500000001/2} (LINK_ADDED) for []
      2018-03-22 17:00:37,699 | TRACE | objectivetracker | IntentManager                    | 145 - org.onosproject.onos-core-net - 1.12.0 | submitting [] + all?:true for compilation
      2018-03-22 17:00:38,013 | INFO  | ispatch-default0 | AlarmsManager                    | 234 - org.onosproject.onos-apps-dcsdn-alarms - 1.12.0 |  Alarm created with AlarmId of:8007006500000001:2 and type UPDATED for device of:8007006500000001
      2018-03-22 17:00:38,024 | INFO  | nos-topo-build-7 | TopologyManager                  | 145 - org.onosproject.onos-core-net - 1.12.0 | Topology DefaultTopology{time=25223257913600, creationTime=1521705638020, computeCost=338067, clusters=20, devices=32, links=44} changed
      2018-03-22 17:00:38,043 | DEBUG | objectivetracker | ObjectiveTracker                 | 145 - org.onosproject.onos-core-net - 1.12.0 | recompile triggered by LinkEvent LinkKey{src=of:8007006500000001/2, dst=of:8007003e00000002/1} (LINK_ADDED) for []
      2018-03-22 17:00:38,043 | TRACE | objectivetracker | IntentManager                    | 145 - org.onosproject.onos-core-net - 1.12.0 | submitting [] + all?:true for compilation

       

      6. Topology Event was generated correctly by Port Down but there was no realated intents in ObjectiveTracker.intentByLink

      My title

      recompile triggered by LinkEvent LinkKey{src=of:8007003e00000002/1, dst=of:8007006500000001/2} (LINK_ADDED) for [(Empty)] <-- It should have Intents which have the link as path submitting [(Empty)]  <-- It should have Intents which have the link as path

       

       

       

       

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              jaegonkim Jaegon Kim
              Reporter:
              jaegonkim Jaegon Kim
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: