Skip to content

Service Dependency Map (SDM) Issues

Troubleshoot SDM problems such as stale data, address conflicts, and blank Heat Map pages.

6 min read Updated SS RS

Below are the troubleshooting of SDM issues:

  • Incorrect SDM Data Due to Application Architecture Change
  • SDM Creation via UI - Host Instance Address Conflict
  • Heat Map Page Displaying Blank
  • Issue with Editing Component Instance in UI
  • SDM Creation for Non-Monitored Host Components
  • Mapping Multiple Applications to a Single Host in Example FO
  • Issue Editing Instance Attributes in CC UI for Example

For reference:
The following section contains basic Linux commands: Basic Commands

Incorrect SDM Data Due to Application Architecture Change#

SDM was created with outdated data. With the application architecture having changed, the existing SDM needs modification.

Solution Steps:

1. Agent Verification: Verify agents by executing the below command.

select * from the agent where host_address in ('192.0.2.151',
'192.0.2.152', '192.0.2.153');

2. Identify and delete relevant component agents from component_agent where id in (6,7,8); .

3. Agent Account Mapping Removal: Delete affected IDs from the agent_account_mapping table: where agent_id in (6,7,8);.

4. Physical Agent Checks and Deletion:

a. Check physical agents:

select * from physical_agent where id in (6,7,8);

b. Remove the relevant IDs:

delete from physical_agent where id in (6,7,8);

5. Agent Commands and Instance Mapping Cleanup:

a. Delete entries from agent_commands_triggered where physical_agent_id in (6,7);.

b. Delete from agent_comp_instance_mapping where agent_id in (6,7,8);.

6. Supervisor Details Verification and Deletion:

a. Verify supervisor details:

select * from supervisor_details where host_address in
('192.0.2.151', '192.0.2.152', '192.0.2.153');

b. Delete relevant IDs:

delete from supervisor_details where id in (3);

c. Component Instance and KPI Details Removal: Check component instances and delete associated KPI details.

select * from comp_instance where host_address in ('192.0.2.151',
'192.0.2.152', '192.0.2.153');
delete from comp_instance_kpi_details where comp_instance_id in
(8,9,10,11,12,13,14);

7. Group Details and Cluster Mapping Cleanup: Remove entries from comp_instance_kpi_group_details and component_cluster_mapping .

delete from comp_instance_kpi_group_details where comp_instance_id
in (8,9,10,11,12,13,14);
delete from component_cluster_mapping where comp_instance_id in
(8,9,10,11,12,13,14);

8. Tag Mapping and Service Configuration Adjustment: Check and delete relevant tag mappings.

select * from tag_mapping where tag_value in ('BH-APP-WAS', 'APP-
DB-ZONE1', 'GLOBAL-APP-IHS', 'NP-APP-WAS', 'End-User-APP');
delete from tag_mapping where tag_value in ('BH-APP-WAS', 'APP-DB-
ZONE1', 'GLOBAL-APP-IHS', 'NP-APP-WAS', 'End-User-APP');

9. Controller and Service KPI Thresholds Management: Check and delete from service_configurations and service_kpi_thresholds .

select id, identifier, name from controller where name in ('BH-APP-
WAS', 'APP-DB-ZONE1', 'GLOBAL-APP-IHS', 'NP-APP-WAS', 'End-User-
APP');
delete from service_configurations where service_id in (select id
from controller);
delete from service_kpi_thresholds where service_id in (select id
from controller);

10. Final Cleanup Steps:

a. Delete from controller where name in ('BH-APP-WAS', 'APP-DB-ZONE1', 'GLOBAL-APP-IHS', 'NP-APP-WAS', 'End-User-APP');.

b. Delete supervisor details ID from comp_instance_attribute_values and agent_comp_instance_mapping .

c. Delete supervisor details ID from comp_instance .

Ensure all SDM related to the affected services are completely removed following above steps.

SDM Creation via UI - Host Instance Address Conflict#

Error Message:

SDM creation via UI — Host Instance address conflict error
com.appnomic.appsone.controlcenter.businesslogic.ComponentInstanceBL:243
Host Instance's host address already exists in account with id 2.

The error occurred because Component Instances were added prior to the Host, resulting in the Host instances already existing in the account.

Solution:

1. Rollback Percona Database: Initiate a rollback of the Percona database to a state before the erroneous SDM creation.

2. Sequential SDM Creation: Advise to create a new SDM following a step-by- step process. This approach ensures that Host instances are added in the correct sequence, preventing duplication in the account.

3. Post-Creation Validation: Once the SDM creation is successfully completed, validate the setup to ensure that all components are correctly configured and no conflicts exist.

Implementing this solution should resolve the host address conflict and enable successful SDM creation through the UI.

Heat Map Page Displaying Blank#

Users experience a blank page when clicking on a service in the Heat Map page.

Heat Map page displaying blank

The issue was traced to a misconfiguration in the system. Specifically, the service was incorrectly added under HPux instead of AIX, leading to the blank page display.

Solution:

1. Configuration Correction: Remove the erroneous service entry from the Percona database that was incorrectly categorized under HPux.

2. Correct Service Addition: Provide guidance on how to correctly add the 'CBS-Uat-DB-Service' under the AIX category.

3. Validation: Post-modification, confirm that the Heat Map page is functioning correctly with the service now appearing under AIX.

The resolution of the configuration issue and the reassignment of the service to the correct category will resolve the problem, resulting in the proper display of the Heat Map page.

Issue with Editing Component Instance in UI#

A component instance is incorrectly mapped as IHS instead of IIS, and it cannot be edited through the UI.

1. Component Instance Verification: Executed query to verify the instance.

select * from comp_instance where name='CBS-IHS-Prod-Instance-
192.0.2.154';

2. Data Cleanup: Remove the related entries from various tables to facilitate the correction.

delete from comp_instance_attribute_values where
comp_instance_id=134;
delete from comp_instance_kpi_details where comp_instance_id=134;
delete from comp_instance_kpi_group_details where
comp_instance_id=134;
delete from component_cluster_mapping where comp_instance_id=134;
delete from tag_mapping where object_ref_table='comp_instance' and
object_id='134';
delete from agent_comp_instance_mapping where comp_instance_id=134;
delete from comp_instance where id=134;

SDM Creation for Non-Monitored Host Components#

Need guidance on creating SDM for components like SWIT CH/ST ORAGE/LB , where no host monitoring is involved, and instances can't be created without a host in SDM.

Solution:

1. Create Dummy Host: Establish a dummy host to serve as a placeholder for component instances.

2. Component Instance Creation: Create Component Instances on the dummy host.

3. KPI Adjustments: Disable KPIs related to the dummy host in comp_instance_kpi_details .

4. Apply similar adjustments for cluster KPIs.

Mapping Multiple Applications to a Single Host in Example FO#

Difficulty in adding multiple components to a single host, particularly in treasury applications.

Solution:

1. UI-Based Configurations:

a. Create two services across different applications.

b. Establish two host instances under these services with dummy IPs.

c. Map the agents with these host instances.

2. Percona Database Adjustments:

a. Retrieve host instance IDs from comp_instance .

b. Update the host_address column with the correct IP.

c. Modify comp_instance_attribute_values to reflect the correct IPs, replacing dummy host IPs:

select * from comp_instance_attribute_values where comp_instance_id
in (90,91,92,89);
comp_instance_attribute_values for the mapped host instances

Issue Editing Instance Attributes in CC UI for Example

An error occurs when attempting to edit instance attributes in the CC UI. This issue is characterized by empty data in the comp_instance attribute, as indicated by the following error message in the Appsone-cc.log :

2022-02-23 14:48:20,901 - [ERROR]
com.appnomic.appsone.controlcenter.dao.mysql.ComponentDataService:30
5 Error in fetching component instance cluster details for account
[235]
2022-02-23 14:48:20,903 - [INFO ]
com.appnomic.appsone.controlcenter.util.CommonUtils:133 Instance
attributes Detail(s) Error_api

Additionally, a MySQL query error was observed:

ERROR 1055 (42000): Expression #2 of SELECT list is not in GROUP BY
clause and contains nonaggregated column 'appsone.mca.name' which is
not functionally dependent on columns in GROUP BY clause; this is
incompatible with sql_mode=only_full_group_by

1. Modify the global SQL mode settings in Percona.

SET
@@GLOBAL.sql_mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,
ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION";

2. Changed the permissions of the my.cnf file to 644 to ensure proper loading of configuration changes.

chmod 644 my.cnf

3. Verify the new global SQL mode settings:

select @@GLOBAL.sql_mode;

Confirmed that the permission change allowed for the successful loading of the new configuration, resolving the issue.