Page tree
Skip to end of metadata
Go to start of metadata
Description

This page handles the below problems :

  1. You are trying to add an entity (object with violation) to the action plan, you see the icon indicating "Action plan" next to the item, but if you navigate to another rule, and came back, the icon disappears. Also the object do not appear in the action plan page.
  2. You are trying to add an entity (object with violation) to the action plan, you do not see the icon indicating "Action plan" next to the item (nothing changes after clicking on action and saving the comment). Also the object do not appear in the action plan page.
Observed in CAST AIP
Release
Yes/No
8.3.x(tick)
8.2.x(tick)
8.1.x(tick)
8.0.x (tick)
7.3.x(tick)
7.2.x(tick)
7.0.x(tick)
Observed on RDBMS
RDBMS
Yes/No
Oracle Server(tick)
Microsoft SQL Server(tick)
CSS2(tick)
CSS1(tick)
Step by Step Scenario
  1. Add objects in the investigation quality model drilldown view to Action
  2. The icon beside the item marked for action is not present
  3. See that the objects are also not present in the action plan view
Action Plan

CASE 1:

you are trying to add an entity (object with violation) to the action plan, you see the icon indicating "Action plan" next to the item, but if you navigate to another rule, and came back, the icon disappears. Also the object do not appear in the action plan page.

This problem occurs due to the presence of ghost objects in the action plan. For a particular violation, we associate a baseline snapshot that is the first the snapshot from which, violation has been added. When removing this baseline snapshot, associated violations are still in the action plan (inside the corresponding table in the CB) but are no longer displayed in the dashboard since the baseline snapshot no longer exist. This generates ghost objects.

To confirm if there exists ghost objects in your CB, please run the below query on CB:

Select * from viewer_action_plans where first_snapshot_id not in (select snapshot_id from dss_snapshots);

If the above query returns rows, this confirms the existence of ghost objects. You can run the below query on CB to clean the action plan :

delete from viewer_action_plans where first_snapshot_id not in (select snapshot_id from dss_snapshots);

This issue is fixed in 7.2.3

CASE 2:

you are trying to add an entity (object with violation) to the action plan, you do not see the icon indicating "Action plan" next to the item (nothing changes after clicking on action and saving the comment). Also the object do not appear in the action plan page.

Check that the objects that you have marked for action are present in the viewer_action_plans table by running the below query on Central Base

select * from viewer_action_plans where action_def like '%<comment/part of comment that you made while adding object to action>%';

If the objects are present in the viewer_action_plans table then you need to check for corruption in central base that prevent from adding the object in the action plan. Here are the list of known corruptions and how to clean them

Corruption 1:

check in the Action Plan view of older versions of snapshot for the presence of objects. If the objects are present in the ACtion Plan view of older versions of snapshot then the actions not seen are may be due to wrong last_snapshot_date equals to the first_snapshot_date in the table viewer_action_plans (this has happened due to corruptions in CB). You can verify this by running the below query on CB

select * from viewer_action_plans where first_snapshot_date = last_snapshot_date

If the above query returns rows then this confirms that the corruption. You can run the below query to clean the table

update viewer_action_plans set last_snapshot_date = '2100-01-01 00:00:00' where first_snapshot_date = last_snapshot_date

Corruption 2:

Action has been reset for this violation in a previous snapshot, as a consequence, the violation is marked a reseted and cannot be planned for an action again. you need to run following query to check if you are in this situation:

select vap.metric_id, vap.first_snapshot_date, vap.last_snapshot_date, count(1)   from viewer_action_plans vap where vap.last_snapshot_date != '2100-01-01 00:00:00' group by vap.metric_id, vap.first_snapshot_date, vap.last_snapshot_date

If this query returns some rows, it means that you have some violations that have been either selected for action or excluded in a previous snapshot and then put to reset (reset button). As consequence, these violations cannot be selected for action again in current snapshot. This is a bug in the product as we could be able to select a reset violation for action. 

To remove this corruption you need to run the following query on your central (please perform a backup of your central before):

update viewer_action_plans  set last_snapshot_date = '2100-01-01 00:00:00'  where last_snapshot_date != '2100-01-01 00:00:00'

After running this query you should be able to mark the objects that have been reset for action again

Issue observed in 7.3.3. Fix plan has not been decided yet 

Corruption 3:

Objects have been marked for for exclusion in a previous snapshot which has been deleted.
Due to this you can see some objects in DSS_OBJECT_EXCEPTIONS table for snapshot n that has been deleted by running the below query

select FIRST_SNAPSHOT_ID, count(1)
from DSS_OBJECT_EXCEPTIONS
where FIRST_SNAPSHOT_ID not in (select SNAPSHOT_ID from DSS_SNAPSHOTS)
group by FIRST_SNAPSHOT_ID

If the above query returns rows then it confirms the same. As workaround, you can remove all exceptions for non existing snapshots by running the below query :

delete from DSS_OBJECT_EXCEPTIONS
where FIRST_SNAPSHOT_ID not in (select SNAPSHOT_ID from DSS_SNAPSHOTS)

After applying the work around you can see that the objects can be added to action plan but you would have lost all the exclusions for non-existing snapshots. If you want back the exclusions, you need to manually add them(Click on exclusion button by selecting the object). To make a note of such exclusion you can use the below query before running the delete statement:

select dos.object_name as OBJECT_NAME,
dos.object_full_name as Object_Full_Name, 
doe.metric_id as Mertic_ID,
dmd.metric_description as Quality_Rule_Name 
from DSS_OBJECT_EXCEPTIONS doe,dss_objects dos,dss_metric_descriptions dmd
where dos.object_id = doe.object_id
and doe.metric_id = dmd.metric_id
and doe.FIRST_SNAPSHOT_ID not in (select SNAPSHOT_ID from DSS_SNAPSHOTS)
and dmd.description_type_id = 0
group by dos.object_name,
dos.object_full_name , 
doe.metric_id ,
dmd.metric_description


Impact on Analysis Results and Dashboard

Analysis - N/A Dashboard - Objects are correctly marked for action and are present in Action Plan view

Notes/comments

 

Related Pages
 
  • No labels