Skip to content

Commit

Permalink
Rename ensa modules, remove connector form ERS
Browse files Browse the repository at this point in the history
Rename ensa modules, remove connector form ERS node, and check the lsn
output contains all the nodes
TEAM-9633 - Rename ensa modules "netweaver_ensa2_cluster_connector" and "sap_suse_cluster_connector"
  • Loading branch information
lilyeyes committed Sep 13, 2024
1 parent 79e8620 commit 39fb706
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
12 changes: 8 additions & 4 deletions schedule/sles4sap/ensa/ensa_nodes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ schedule:
- sles4sap/netweaver_nfs_setup
- sles4sap/ensa/ensa_filesystems
- sles4sap/ensa/netweaver_swpm_installation
- sles4sap/ensa/netweaver_ensa2_cluster
- sles4sap/ensa/netweaver_ensa2_cluster_connector
- sles4sap/ensa/netweaver_ensa2_web_methods
- sles4sap/sap_suse_cluster_connector
- sles4sap/ensa/ensa2_cluster_setup
- sles4sap/ensa/ensa2_cluster_connector_setup
- sles4sap/ensa/ensa2_web_methods_checks
- '{{sap_suse_cluster_connector}}'
- ha/check_logs
conditional_schedule:
cluster_setup:
Expand All @@ -58,3 +58,7 @@ conditional_schedule:
- ha/ha_cluster_init
no:
- ha/ha_cluster_join
sap_suse_cluster_connector:
INSTANCE_TYPE:
ASCS:
- sles4sap/sap_suse_cluster_connector
File renamed without changes.
9 changes: 8 additions & 1 deletion tests/sles4sap/sap_suse_cluster_connector.pm
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,14 @@ sub run {
my $rsc = "rsc_${rsc_type}_${instance_sid}_$instance_type$instance_id";
wait_for_idle_cluster;
exec_conn_cmd(binary => $binary, cmd => "lsn --res $rsc", log_file => $log_file);
validate_script_output("cat $log_file 2>&1", sub { m/$rsc/ });
# Check the "node list" contains localhost
my $hostname = get_required_var('HOSTNAME');
validate_script_output("cat $log_file | cut -d : -f 4", sub { m/$hostname/ });
record_info("Found $hostname in lsn output");
# Check the "node list" contains remote node
my $remote_node = script_output("crm status bynode | grep 'Node.*online' | cut -d : -f 1 | grep -v $hostname | rev | cut -d ' ' -f 1 | rev");
validate_script_output("cat $log_file | cut -d : -f 4", sub { m/$remote_node/ });
record_info("Found $remote_node in lsn output");
}

# Test Stop/Start of SAP resource
Expand Down

0 comments on commit 39fb706

Please sign in to comment.