Skip to content

(UBI) Policy not deleting correctly

Reporters

  • Panagiotis Famelis (Ubitech)

Description

When deleting a policy through the PolicyService/PolicyDelete the policy is not correctly deleted in the Context component too. Additionally the Alarms in Monitoring component are not de-registered but continue to run.

This behavior means that the policy continues to run and is not deleted.

Deployment environment

  • Operating System (include version): all
  • MicroK8s (include version and add-ons): microk8s v1.24.
  • TeraFlowSDN (include release/branch-name/commit-id): develop

TFS deployment settings

  • list of components deployed: all cases
  • particular configurations you applied: N/A
  • any other particularity you might find important

Sequence of actions that resulted in the bug

  • Create a policy tied to some specific KPI_id
  • Delete the policy
  • The policy continues to exist in the context component
  • Alarms continue to raise in the monitoring component

Document the explicit error

  • Check the web-ui, or call ContextPolicyService/ListPolicyRules to see that policy is still registered in context.
  • Check the policyservice logs and you will see that alarms are still coming in

Expected behaviour

  • When PolicyService/PolicyDelete, Policy component should stop receiving alarms (cancel the gRPC stream) and delete the specific policy from its db.
  • The same should happen in Context component too.

References

N/A

Edited by Panagiotis Famelis