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

BgpSessionManagerTest unit test failure: BGP route entry lookup

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.1.0
    • Component/s: None
    • Labels:
      None

      Description

      Occasionally, one of the BGP unit test fails with the following error:

      Running org.onosproject.sdnip.bgp.BgpSessionManagerTest
      Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.496 sec <<< FAILURE! - in org.onosproject.sdnip.bgp.BgpSessionManagerTest
      testBgpRoutePreference(org.onosproject.sdnip.bgp.BgpSessionManagerTest) Time elapsed: 0.099 sec <<< FAILURE!
      java.lang.AssertionError:
      Expected: BGP route entry lookup for entry "BgpRouteEntry{prefix=20.0.0.0/8, nextHop=10.20.30.41, bgpId=10.0.0.1, origin=IGP, asPath=AsPath{pathSegments=[PathSegment

      {type=AS_SEQUENCE, segmentAsNumbers=[65010, 65020, 65030]}]}, localPref=20, multiExitDisc=30}"
      but: was <[BgpRouteEntry{prefix=20.0.0.0/8, nextHop=10.20.30.41, bgpId=10.0.0.1, origin=IGP, asPath=AsPath{pathSegments=[PathSegment{type=AS_SEQUENCE, segmentAsNumbers=[65010, 65020, 65030]}

      ]}, localPref=20, multiExitDisc=30}]>
      at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
      at org.junit.Assert.assertThat(Assert.java:865)
      at org.junit.Assert.assertThat(Assert.java:832)
      at org.onosproject.sdnip.bgp.BgpSessionManagerTest.testBgpRoutePreference(BgpSessionManagerTest.java:831)

      There is no good way of reproducing it, it happens from time to time in the Jenkins runs.

        Attachments

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

          Activity

            People

            Assignee:
            pavlin Pavlin Radoslavov
            Reporter:
            pavlin Pavlin Radoslavov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: