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

ControllerExecutionBB fails in Guilin and the solution

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • Guilin Release, Guilin Maintenance Release 1

      With the latest updated Guilin, ControllerExecutionBB fails because it cannot locate BB_NAME in the table named bbname_selection_reference. 

      I found the code here for Frankfurt and Guilin release: https://gitlab.cidev.cncf.ci/onap/so/blob/master/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/flowspecific/tasks/ControllerExecution.java

      Within the Frankfurt Release, ControllerExecutionBB, did not need the a controllerActor information. But in the Guilin, it is looking for controllerActor information.

      Left side is Frankfurt release, right side is Guilin release.

      Unable to render embedded object: File (DxSaJhSlseHEAAAAAElFTkSuQmCC) not found.

       

      With the updated Guilin release, to fix the problem, I added the ControllerExecutionBB in bbname_selection_reference table with the following command.

      INSERT INTO bbname_selection_reference (CONTROLLER_ACTOR, SCOPE, ACTION, BB_NAME) VALUES ('CDS', '*', '*', 'ControllerExecutionBB');

      Before the changes in the table:

      MariaDB [catalogdb]> select * from bbname_selection_reference;
      +----+------------------+----------+----------------+-------------------------+
      | ID | CONTROLLER_ACTOR | SCOPE | ACTION | BB_NAME |
      +----+------------------+----------+----------------+-------------------------+
      | 5 | APPC | vfModule | healthCheck | GenericVnfHealthCheckBB |
      | 8 | APPC | vfModule | configScaleOut | ConfigurationScaleOutBB |
      | 11 | APPC | vnf | healthCheck | GenericVnfHealthCheckBB |
      +----+------------------+----------+----------------+-------------------------+

      After the changes in the table:

      MariaDB [catalogdb]> select * from bbname_selection_reference;
      +----+------------------+----------+----------------+-------------------------+
      | ID | CONTROLLER_ACTOR | SCOPE | ACTION | BB_NAME |
      +----+------------------+----------+----------------+-------------------------+
      | 5 | APPC | vfModule | healthCheck | GenericVnfHealthCheckBB |
      | 8 | APPC | vfModule | configScaleOut | ConfigurationScaleOutBB |
      | 11 | APPC | vnf | healthCheck | GenericVnfHealthCheckBB |
      | 22 | CDS | * | * | ControllerExecutionBB |
      +----+------------------+----------+----------------+-------------------------+

      I have tested the instantiation of the vLB_CDS senerio with the following DB. ControllerExecutionBB  was worked great.

      Now, I am going to test Manual ScaleOut and ScaleIn. 

      MariaDB [catalogdb]> select * from orchestration_flow_reference where COMPOSITE_ACTION='Service-Macro-Create' order by seq_no;
      +-----+----------------------+--------+-----------------------------+--------------+----------------------+-------+---------------+
      | id | COMPOSITE_ACTION | SEQ_NO | FLOW_NAME | FLOW_VERSION | NB_REQ_REF_LOOKUP_ID | SCOPE | ACTION |
      +-----+----------------------+--------+-----------------------------+--------------+----------------------+-------+---------------+
      | 428 | Service-Macro-Create | 1 | AssignServiceInstanceBB | 1 | 101 | NULL | NULL |
      | 431 | Service-Macro-Create | 2 | CreateNetworkCollectionBB | 1 | 101 | NULL | NULL |
      | 434 | Service-Macro-Create | 3 | AssignNetworkBB | 1 | 101 | NULL | NULL |
      | 437 | Service-Macro-Create | 4 | AssignVnfBB | 1 | 101 | NULL | NULL |
      | 440 | Service-Macro-Create | 5 | AssignVolumeGroupBB | 1 | 101 | NULL | NULL |
      | 443 | Service-Macro-Create | 6 | AssignVfModuleBB | 1 | 101 | NULL | NULL |
      | 446 | Service-Macro-Create | 7 | ControllerExecutionBB | 1 | 101 | vnf | config-assign |
      | 449 | Service-Macro-Create | 8 | AssignPnfBB | 1 | 101 | NULL | NULL |
      | 452 | Service-Macro-Create | 9 | WaitForPnfReadyBB | 1 | 101 | NULL | NULL |
      | 905 | Service-Macro-Create | 10 | ControllerExecutionBB | 1 | 101 | pnf | config-assign |
      | 908 | Service-Macro-Create | 11 | ControllerExecutionBB | 1 | 101 | pnf | config-deploy |
      | 455 | Service-Macro-Create | 12 | ActivatePnfBB | 1 | 101 | NULL | NULL |
      | 458 | Service-Macro-Create | 15 | CreateNetworkBB | 1 | 101 | NULL | NULL |
      | 461 | Service-Macro-Create | 16 | ActivateNetworkBB | 1 | 101 | NULL | NULL |
      | 464 | Service-Macro-Create | 17 | CreateVolumeGroupBB | 1 | 101 | NULL | NULL |
      | 467 | Service-Macro-Create | 18 | ActivateVolumeGroupBB | 1 | 101 | NULL | NULL |
      | 470 | Service-Macro-Create | 19 | CreateVfModuleBB | 1 | 101 | NULL | NULL |
      | 473 | Service-Macro-Create | 20 | ActivateVfModuleBB | 1 | 101 | NULL | NULL |
      | 476 | Service-Macro-Create | 21 | ControllerExecutionBB | 1 | 101 | vnf | config-deploy |
      | 479 | Service-Macro-Create | 22 | ActivateVnfBB | 1 | 101 | NULL | NULL |
      | 482 | Service-Macro-Create | 23 | ActivateNetworkCollectionBB | 1 | 101 | NULL | NULL |
      | 485 | Service-Macro-Create | 24 | ActivateServiceInstanceBB | 1 | 101 | NULL | NULL |
      +-----+----------------------+--------+-----------------------------+--------------+----------------------+-------+---------------+

       

      MariaDB [catalogdb]> select * from orchestration_flow_reference where COMPOSITE_ACTION='VFModule-ScaleOut' order by seq_no;
      +-----+-------------------+--------+-----------------------+--------------+----------------------+----------+-------------------------+
      | id | COMPOSITE_ACTION | SEQ_NO | FLOW_NAME | FLOW_VERSION | NB_REQ_REF_LOOKUP_ID | SCOPE | ACTION |
      +-----+-------------------+--------+-----------------------+--------------+----------------------+----------+-------------------------+
      | 701 | VFModule-ScaleOut | 1 | ControllerExecutionBB | 1 | 149 | vnf | HealthCheck |
      | 704 | VFModule-ScaleOut | 2 | AssignVfModuleBB | 1 | 149 | NULL | NULL |
      | 707 | VFModule-ScaleOut | 3 | CreateVfModuleBB | 1 | 149 | NULL | NULL |
      | 710 | VFModule-ScaleOut | 4 | ActivateVfModuleBB | 1 | 149 | NULL | NULL |
      | 713 | VFModule-ScaleOut | 5 | ControllerExecutionBB | 1 | 149 | vfmodule | ScaleOutReconfiguration |
      | 716 | VFModule-ScaleOut | 6 | ControllerExecutionBB | 1 | 149 | vnf | HealthCheck |
      +-----+-------------------+--------+-----------------------+--------------+----------------------+----------+-------------------------+

       

      MariaDB [catalogdb]> select * from orchestration_flow_reference where COMPOSITE_ACTION='VFModule-Delete' order by seq_no;
      +-----+------------------+--------+-----------------------+--------------+----------------------+----------+------------------------+
      | id | COMPOSITE_ACTION | SEQ_NO | FLOW_NAME | FLOW_VERSION | NB_REQ_REF_LOOKUP_ID | SCOPE | ACTION |
      +-----+------------------+--------+-----------------------+--------------+----------------------+----------+------------------------+
      | 925 | VFModule-Delete | 1 | ControllerExecutionBB | 1 | 134 | vnf | HealthCheck |
      | 937 | VFModule-Delete | 2 | ControllerExecutionBB | 1 | 134 | vfmodule | ScaleInReconfiguration |
      | 662 | VFModule-Delete | 3 | DeactivateVfModuleBB | 1 | 134 | NULL | NULL |
      | 665 | VFModule-Delete | 4 | DeleteVfModuleBB | 1 | 134 | NULL | NULL |
      | 668 | VFModule-Delete | 5 | UnassignVfModuleBB | 1 | 134 | NULL | NULL |
      | 940 | VFModule-Delete | 6 | ControllerExecutionBB | 1 | 134 | vnf | HealthCheck |
      +-----+------------------+--------+-----------------------+--------------+----------------------+----------+------------------------+

       

            seshukm seshukm
            eminaktas eminaktas
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: