-
Notifications
You must be signed in to change notification settings - Fork 59
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: hdbuserstore default connection should use sap_swpm_db_schema_abap_password #748
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Requires regression test |
@sean-freeman I tested this on two S/4 installations. Third one will be done this week. |
@rob0d I also just tested this code and the S/4HANA installation went through, as expected. Can you think of, or do you know, an easy way to verify the success? For example, by running |
We should probably add a comment that indicates the I do not want to slow this PR down any further, as I am very confident @rob0d is correct - running a regression test was for my own sanity. I will test the @berndfinger To answer your validation question, quickly formulated the following from my own debugging notes - it might be useful and @rob0d should confirm At end of /usr/sap/{{ sap_hana_install_sid | upper }}/HDB{{ sap_hana_install_number }}/exe/hdbsql -quiet \
-i {{ sap_hana_install_number }} \
-d SYSTEMDB \ # line added for database name, aka MDC Tenant 'SYSTEMDB'
-u SYSTEM \
-p {{ sap_hana_install_db_system_password | d(sap_hana_install_master_password) }} \
-m <<EOF
SELECT * from M_DATABASES;
EOF The MDC Tenant (e.g. /usr/sap/{{ sap_hana_install_sid | upper }}/HDB{{ sap_hana_install_number }}/exe/hdbsql -quiet \
-i {{ sap_hana_install_number }} \
-d {{ sap_hana_install_sid }} \ # line added for database name, aka MDC Tenant Name
-u SYSTEM \
-p {{ sap_hana_install_db_system_password | d(sap_hana_install_master_password) }} \
-m <<EOF
SELECT * from SCHEMAS WHERE SCHEMA_NAME='{{ sap_swpm_db_schema_abap }}';
EOF At end of # hdbsql test hdbuserstore credentials
hdbsql -U DEFAULT
# SAP Transport binary to test connection to Database
R3trans -d
# ODBC Driver test should not contain "outString(0)L <no out string received from driver>"
# ODBC Driver test should not state "message(....): .... General error;10 authentication failed"
/usr/sap/{{ sap_swpm_sid | upper }}/hdbclient/odbcreg \
{{ sap_swpm_db_host }}:3{{ sap_swpm_db_instance_nr }}13 \
SYSTEMDB \
SYSTEM '{{ sap_swpm_db_systemdb_password }}'
/usr/sap/{{ sap_swpm_sid | upper }}/hdbclient/odbcreg \
{{ sap_swpm_db_host }}:3{{ sap_swpm_db_instance_nr }}13 \
{{ sap_swpm_db_sid }} \
SYSTEM '{{ sap_swpm_db_systemdb_password }}'
/usr/sap/{{ sap_swpm_sid | upper }}/hdbclient/odbcreg \
{{ sap_swpm_db_host }}:3{{ sap_swpm_db_instance_nr }}15 \
SYSTEMDB \
{{ sap_swpm_db_schema_abap }} '{{ sap_swpm_db_schema_abap_password }}'
/usr/sap/{{ sap_swpm_sid | upper }}/hdbclient/odbcreg \
{{ sap_swpm_db_host }}:3{{ sap_swpm_db_instance_nr }}15 \
{{ sap_swpm_db_sid }} \
{{ sap_swpm_db_schema_abap }} '{{ sap_swpm_db_schema_abap_password }}' |
I am going to merge this PR despite the alternative approach in #802, and continue the discussion there. |
issue #747