Skip to content

sap_hana_install: Bug with use_master_password and other passwords #1123

@marcelmamula

Description

@marcelmamula

Issue

This was identified during testing of #1122 (it is not caused by this PR).

Current configfile creation does not consider hdblcm restrictions when executing with sap_hana_install_use_master_password: 'y'. This results in issue like this when all passwords are set:

          Master Password cannot be used in combination with other initial passwords
          Mandatory parameter 'password' (Password) is missing or invalid

Solution

Solution is not simple and it needs multi-step approach:

  1. Replace current task with enhanced task that will load internal __vars, because current approach is removing any possibility of us intervening with variables due to precedence.
    - name: SAP HANA Pre Install - Create a Jinja2 template from the hdblcm configfile template
  2. Add asserts into validation:
    • If sap_hana_install_use_master_password: 'y' then assert master password and load configfile only with master password.
    • if sap_hana_install_use_master_password: 'n' then assert all non-master passwords and load them into configfile, removing master password.

Important

#1122 New comments were added to visibly show which parts need to be enhanced and it is searchable with #1123.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions