Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sap_swpm: sap_swpm_db_schema_password must be set explicitly for AAS install due to anomaly in password_facts.yml #761

Open
rob0d opened this issue Jun 20, 2024 · 0 comments
Assignees

Comments

@rob0d
Copy link
Contributor

rob0d commented Jun 20, 2024

This issue only becomes visible when sap_swpm_master_password is different to sap_swpm_db_schema_abap_password AND sap_swpm_product_catalog_id doesn't contain the word ABAP which is e.g. during AAS installation.
The behaviour is that will attempt to install the AAS instance using sap_swpm_master_password as the schema password. This works if both passwords happen to be the same, but fails if they are different.
The culprit is the code in:
password_facts.yml
The variable sap_swpm_db_schema_password which is used in the configfile template, is set here based on whether it's java or abap system. Unfortunately when installing AAS (possibly others?) the catalog_id for AAS doesn't contain the word ABAP (NW_DI:S4HANAXXX.CORE.HDB.PD). The code then doesn't set sap_swpm_db_schema_password which means SWPM will use the master password instead.
Possible solution can be to add "or" and match the AAS catalog ID, but I am suspecting that this may be the same or similar to Java AAS which I can't test. So I didn' t feel it would be safe to change it.
As a workaround there is a pull request #760 for the sample var file which explicitly adds and sets sap_swpm_db_schema_password.

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

No branches or pull requests

1 participant