Skip to content

Conversation

@surajsbharadwaj
Copy link
Contributor

@surajsbharadwaj surajsbharadwaj commented Aug 29, 2023

A new Ansible Task to update the hdbuserstore to update the hostname insead of IP address correctly

Problem arises when communication between NWAS VM and HANA DB VM must happen over dedicated/different subnet (IP address) than the SAP HANA DB host's primary subnet/IP address.

For example hdbuserstore SET DEFAULT <dbhost>:30215 SAPBS4 Perf0rm where dbhost can be IP address or hostname.

Current behaviour:

  • HANA LPAR has 3 networks attached to it.
    • 10.51.0.x (management subnet),
    • 10.52.0.x (backup subnet)
    • 10.53.0.x (sap subnet)
  • Communication/traffic must flow between nw and HANA host using 10.53.0.x sap subnet
  • Even though passing 10.53.0.x IP to sap_swpm_db_ip during installation somehow the SAP SWPM installation retrieves the management IP of HANA LPAR 10.51.0.x(management subnet), and hdbuserstore list has 10.51.0.x IP making communication over this subnet instead of SAP subnet 10.53.0.x

Current swpm role:

su - s4hadm
Last login: Fri Aug 25 12:44:18 EDT 2023
s4h-nw-1:s4hadm 6> hdbuserstore list
DATA FILE       : /home/s4hadm/.hdb/s4h-nw-1/SSFS_HDB.DAT
KEY FILE        : /home/s4hadm/.hdb/s4h-nw-1/SSFS_HDB.KEY
KEY DEFAULT
  ENV : 10.51.0.91:30213
  USER: SAPHANADB
  DATABASE: HDB

ACTIVE RECORDS  : 5
DELETED RECORDS : 4
NUMBER OF COMPLETE KEY: 1

Operation succeed.

With this fix:

su - s4hadm
Last login: Fri Aug 25 12:44:18 EDT 2023
s4h-nw-1:s4hadm 6> hdbuserstore list
DATA FILE       : /home/s4hadm/.hdb/s4h-nw-1/SSFS_HDB.DAT
KEY FILE        : /home/s4hadm/.hdb/s4h-nw-1/SSFS_HDB.KEY
KEY DEFAULT
  ENV : sap-hanadb:30213
  USER: SAPHANADB
  DATABASE: HDB

ACTIVE RECORDS  : 5
DELETED RECORDS : 4
NUMBER OF COMPLETE KEY: 1

Operation succeed.

@sean-freeman sean-freeman changed the base branch from main to dev August 29, 2023 15:42
@sean-freeman sean-freeman changed the title fix: update the hdbuserstore with correct host name sap_swpm: fix post-execution update of the hdbuserstore with correct host name Aug 29, 2023
Copy link
Member

@berndfinger berndfinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants