Uploaded image for project: 'Service Orchestrator'
  1. Service Orchestrator
  2. SO-1926

Fix Missing Oof Homing Code caused by Casablanca Merge

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Highest Highest
    • Dublin Release
    • Dublin Release

      During merge of Casablanca back into master (https://gerrit.onap.org/r/c/so/+/77475/-1..1/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/OofHoming.groovy#38) it appears some imports in OOFHoming.groovy were not carried over.

      It causes an error during homing execution:

      2019-05-24T17:00:14.853Z|4ee100b7-c76b-46d4-9cc8-e5da6cb68f36| org.onap.so.bpmn.common.scripts.OofHoming - ****** homing cloudOwner: CloudOwner *****
      2019-05-24T17:00:14.854Z|4ee100b7-c76b-46d4-9cc8-e5da6cb68f36| org.onap.so.bpmn.common.scripts.OofHoming - ****** homing cloudRegionId: ONAP-POD-01-Rail-07 *****
      2019-05-24T17:00:15.618Z|4ee100b7-c76b-46d4-9cc8-e5da6cb68f36| org.onap.so.bpmn.common.scripts.OofHoming - ProcessHomingSolution Exception: groovy.lang.MissingPropertyException: No such
      property: ServerType for class: org.onap.so.bpmn.common.scripts.OofHoming
      2019-05-24T17:00:16.038Z|4ee100b7-c76b-46d4-9cc8-e5da6cb68f36| org.onap.so.bpmn.common.scripts.ExceptionUtil - Caught a Java Exception in Homing
      2019-05-24T17:00:16.039Z|4ee100b7-c76b-46d4-9cc8-e5da6cb68f36| org.onap.so.bpmn.common.scripts.ExceptionUtil - Started processJavaException Method

      The correct imports should be:
      import org.onap.so.db.catalog.beans.AuthenticationType
      import org.onap.so.db.catalog.beans.CloudIdentity
      import org.onap.so.db.catalog.beans.CloudSite
      import org.onap.so.db.catalog.beans.HomingInstance
      import org.onap.so.db.catalog.beans.ServerType

       

      Further import missing in OofUtils: ** 

      UriBuilder Import was removed in merge from Casa back into master. See:

      https://gerrit.onap.org/r/gitweb?p=so.git;a=blob;f=bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/OofUtils.groovy;hb=0808292b1ce68a2e5fe601a5e7c6d29c2803e447#l38

      vs. 

      https://gerrit.onap.org/r/gitweb?p=so.git;a=blob;f=bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/OofUtils.groovy;hb=a7160456335b2ce3710efd00658711d431eac0b4#l38

            mgkwill mgkwill
            mgkwill mgkwill
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: