Uploaded image for project: 'Policy Framework'
  1. Policy Framework
  2. POLICY-2915

For control loop, the designed and submitted policies through CLAMP are not showing up in Policy GUI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not Done
    • Icon: Medium Medium
    • None
    • None
    • None
    • None

      We are trying to deploy vFWCL use case in master, we have been using this ONAP setup with master build (the master build was cloned & deployed ONAP on AWS before guilin branched out) for ONAP documentation improvements project.

      Currently we are working on vFWCL deployment use case.
      For doing this we followed below steps during control loop design in SDC where we created service, attached DACE TCA blueprint along with TCA policy then distributed to the CLAMP

      1. Login as DESIGNER (cs0008) and create the service, checkin and certify
      2. In the composition canvas drag and drop a resource of type VF from the abstract section in the Elements section
      3. Download the TCA MS blueprint to be attached to the service from below repo
      https://git.onap.org/dcaegen2/platform/blueprints/
      4. Upload the DCAE artifact and attach the policy model to the Service
      5. Click on check in, certify then distribute to distribute the service

      After successful distribution of the service, we login to the CLAMP GUI and created LOOP by designing the Operational policy (Drools) then submitted policies and deployed to DCAE successfully (attached the screenshots).

      We verified that TCA analytics MS got deployed and able to access the CDAP GUI. But unfortunately the policies are not showing up in Policy GUI & CLI though they have submitted successfully through CLAMP (they should be visible in Policy PAP component).

      LOOP status in the CLAMP while submit and deploy:

      POLICY SENT_AND_DEPLOYED The policies defined have been created and deployed on the policy engine
      DCAE MICROSERVICE_INSTALLED_SUCCESSFULLY Clamp has requested DCAE to install the DCAE blueprint and it has been installed successfully
      

      DCAE tca-analytics pod status after deploy:

      # kubectl get pods -n onap | grep 'analytics'
      dep-sdc2cf8cd3a9b4d0e91f0c6aede508202-dcaegen2-analytics-t67zxb   2/2     Running            0          3m9s
      
      # kubectl get svc -n onap | grep 'analytics'
      sdc2cf8cd3a9b4d0e91f0c6aede508202-dcaegen2-analytics-tca    ClusterIP      10.43.235.218   <none>                                 11011/TCP                                                4m40s
      xsdc2cf8cd3a9b4d0e91f0c6aede508202-dcaegen2-analytics-tca   NodePort       10.43.254.4     <none>                                 11011:32012/TCP                                          4m40s
      

      Below is the output of policy pap curl command, no Operational policies under pdpType "drools"

      {
        "groups": [
          {
            "name": "defaultGroup",
            "description": "The default group that registers all supported policy types and pdps.",
            "pdpGroupState": "ACTIVE",
            "properties": {},
            "pdpSubgroups": [
              {
                "pdpType": "apex",
                "supportedPolicyTypes": [
                  {
                    "name": "onap.policies.controlloop.operational.Apex",
                    "version": "1.0.0"
                  },
                  {
                    "name": "onap.policies.controlloop.operational.common.Apex",
                    "version": "1.0.0"
                  },
                  {
                    "name": "onap.policies.native.Apex",
                    "version": "1.0.0"
                  }
                ],
                "policies": [],
                "currentInstanceCount": 1,
                "desiredInstanceCount": 1,
                "properties": {},
                "pdpInstances": [
                  {
                    "instanceId": "dev-policy-apex-pdp-0",
                    "pdpState": "ACTIVE",
                    "healthy": "HEALTHY",
                    "message": "Pdp Heartbeat"
                  }
                ]
              },
              {
                "pdpType": "drools",
                "supportedPolicyTypes": [
                  {
                    "name": "onap.policies.controlloop.Operational",
                    "version": "1.0.0"
                  },
                  {
                    "name": "onap.policies.controlloop.operational.common.Drools",
                    "version": "1.0.0"
                  },
                  {
                    "name": "onap.policies.native.drools.Controller",
                    "version": "1.0.0"
                  },
                  {
                    "name": "onap.policies.native.drools.Artifact",
                    "version": "1.0.0"
                  }
                ],
                "policies": [],
                "currentInstanceCount": 1,
                "desiredInstanceCount": 1,
                "properties": {},
                "pdpInstances": [
                  {
                    "instanceId": "dev-drools-0",
                    "pdpState": "ACTIVE",
                    "healthy": "HEALTHY"
                  }
                ]
              },
              {
                "pdpType": "xacml",
                "supportedPolicyTypes": [
                  {
                    "name": "onap.policies.controlloop.guard.common.FrequencyLimiter",
                    "version": "1.0.0"
                  },
                  {
                    "name": "onap.policies.controlloop.guard.common.MinMax",
                    "version": "1.0.0"
                  },
                  {
                    "name": "onap.policies.controlloop.guard.common.Blacklist",
                    "version": "1.0.0"
                  },
                  {
                    "name": "onap.policies.controlloop.guard.coordination.FirstBlocksSecond",
                    "version": "1.0.0"
                  },
                  {
                    "name": "onap.policies.monitoring.*",
                    "version": "1.0.0"
                  },
                  {
                    "name": "onap.policies.optimization.*",
                    "version": "1.0.0"
                  },
                  {
                    "name": "onap.policies.optimization.resource.AffinityPolicy",
                    "version": "1.0.0"
                  },
                  {
                    "name": "onap.policies.optimization.resource.DistancePolicy",
                    "version": "1.0.0"
                  },
                  {
                    "name": "onap.policies.optimization.resource.HpaPolicy",
                    "version": "1.0.0"
                  },
                  {
                    "name": "onap.policies.optimization.resource.OptimizationPolicy",
                    "version": "1.0.0"
                  },
                  {
                    "name": "onap.policies.optimization.resource.PciPolicy",
                    "version": "1.0.0"
                  },
                  {
                    "name": "onap.policies.optimization.service.QueryPolicy",
                    "version": "1.0.0"
                  },
                  {
                    "name": "onap.policies.optimization.service.SubscriberPolicy",
                    "version": "1.0.0"
                  },
                  {
                    "name": "onap.policies.optimization.resource.Vim_fit",
                    "version": "1.0.0"
                  },
                  {
                    "name": "onap.policies.optimization.resource.VnfPolicy",
                    "version": "1.0.0"
                  },
                  {
                    "name": "onap.policies.native.Xacml",
                    "version": "1.0.0"
                  },
                  {
                    "name": "onap.policies.Naming",
                    "version": "1.0.0"
                  }
                ],
                "policies": [
                  {
                    "name": "SDNC_Policy.ONAP_NF_NAMING_TIMESTAMP",
                    "version": "1.0.0"
                  },
                  {
                    "name": "MICROSERVICE_dcae_service_v1_0_app_1_0_0_91n",
                    "version": "1.0.0"
                  },
                  {
                    "name": "MICROSERVICE_dcae_service_v1_0_app_1_0_0_lQP",
                    "version": "1.0.0"
                  },
                  {
                    "name": "MICROSERVICE_mydcae_srv_v1_0_app_1_0_0_xdh",
                    "version": "1.0.0"
                  },
                  {
                    "name": "MICROSERVICE_dcae_lfn_v1_0_app_1_0_0_RMe",
                    "version": "1.0.0"
                  },
                  {
                    "name": "MICROSERVICE_dcae1_v1_0_app_1_0_0_Chu",
                    "version": "1.0.0"
                  },
                  {
                    "name": "MICROSERVICE_dcae5_v1_0_app_1_0_0_PEK",
                    "version": "1.0.0"
                  },
                  {
                    "name": "MICROSERVICE_mydcae_srv_v1_0_app_1_0_0_hJu",
                    "version": "1.0.0"
                  }
                ],
                "currentInstanceCount": 1,
                "desiredInstanceCount": 1,
                "properties": {},
                "pdpInstances": [
                  {
                    "instanceId": "dev-policy-xacml-pdp-765c7d58b5-npjd8",
                    "pdpState": "ACTIVE",
                    "healthy": "HEALTHY"
                  }
                ]
              }
            ]
          }
        ]
      }
      

      We followed the below CLAMP documentation section for design and deployment of the policies and DACE microservice.
      https://docs.onap.org/projects/onap-clamp/en/latest/user-guide.html

      We are referring to the below wiki link for preparing vFWCL tutorial.
      https://wiki.onap.org/display/DW/vFWCL+instantiation%2C+testing%2C+and+debuging

      We used to follow these steps and successfully deployed vFWCL in prior releases (Dublin, Elalto). So we followed the same steps here in this master setup as well but unfortunately we are hitting this issue and not able to proceed further.

      We are not sure if something is broken in this master build or any new changes happened in the control loop flow from this release, so filing this bug. Please find the attached screenshots.

            ramagp ramagp
            ramagp ramagp
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: