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

configuration JSON is not applied for big switch app

    XMLWordPrintable

    Details

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

      OSX (build machine)
      Ubuntu 14.04 (deploy target)
      3-cluster test setup, each cluster a single ONOS instance on its own VM.

    • Story Points:
      3
    • Epic Link:
    • Sprint:
      Falcon Sprint #1 (1/5 - 1/22)

      Description

      Tested with changes made in ONOS-3614.

      An NPE (stack trace attached) is thrown when the big switch application is reinstalled and activated with onos-app.

      From cfg the config file appears to be read in:

      onos> cfg get org.onosproject.ecord.co.BigSwitchDeviceProvider
      org.onosproject.ecord.co.BigSwitchDeviceProvider
      name=providerScheme, type=string, value=bigswitch1, defaultValue=bigswitch, description=Provider scheme used to register a big switch device
      name=remoteUri, type=string, value=grpc://192.168.64.82:1984, defaultValue=grpc://localhost:11984, description=URI of remote host to connect via RPC service
      name=providerId, type=string, value=org.onosproject.bigswitch, defaultValue=org.onosproject.bigswitch, description=Provider ID used to register a big switch device
      name=metroIp, type=string, value=192.168.64.82, defaultValue=localhost, description=IP address or hostname of metro ONOS instance to make REST calls

      however the changes don't seem to take place when the app's behavior is inspected (e.g. with netstat):

      sdn@test:~$ netstat --tcp -na
      Active Internet connections (servers and established)
      Proto Recv-Q Send-Q Local Address Foreign Address State
      tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
      tcp 0 0 0.0.0.0:5005 0.0.0.0:* LISTEN
      tcp 0 0 192.168.64.81:22 192.168.64.1:53892 ESTABLISHED
      tcp6 0 0 :::11984 :::* LISTEN
      tcp6 0 0 :::49840 :::* LISTEN
      tcp6 0 0 :::9876 :::* LISTEN
      tcp6 0 0 :::8181 :::* LISTEN

      Changing the defaults for the configurable parameters will change them as expected.

        Attachments

        1. component-cfg.json
          0.2 kB
        2. trace
          9 kB

          Issue Links

            Activity

              People

              Assignee:
              naoki Naoki Shiota
              Reporter:
              ayaka Ayaka Koshibe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: