Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-643

OpenDaylight "fails to fail" on mounting device which doens't provide schemas if there are other schemas in cache

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Won't Do
    • None
    • None
    • netconf
    • None
    • Operating System: Linux
      Platform: PC

    • 1408

    Description

      There's a test in NetconfDeviceSchemaProviderFactory.java which (I believe) is intended to check if a device has not provided any schemas:

      Preconditions.checkState(sourceContext.getValidSources().isEmpty() == false,
      "%s: Unable to create schema context, no sources provided by device", id);

      however this check only fails if the ~/cache/schema directory is completely empty. If there are files in the directory which were provided by another device then the check "fails to fail" and the device is mounted despite failing to provide any sources.

      Is this intentional?

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            giheron@cisco.com Giles Heron
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: