Skip to content

feat: sap_hana_install: Useless error messages if there are unrelated SAR files in the HANA software directory #1109

@berndfinger

Description

@berndfinger

Ansible Role

sap_hana_install

OS Family

All

Feature/Enhancement request

If the role sap_hana_install finds SAR files which are not used during HANA installation (e.g. SAPEXEDB_300-70007806.SAR, the error message of task SAP HANA hdblcm prepare - Move files into the correct place, default is not really helpful.
Example:

    stderr: |-
        ls: cannot access '*/': No such file or directory
        mv: missing destination file operand after 'SIGNATURE.SMF'
        Try 'mv --help' for more information.
        mv: missing destination file operand after '..'
        Try 'mv --help' for more information.

The root cause for this behavior is that the non-HANA related SAR files (typically?) do not have a subdirectory but expand directly in the current directory, which is sap_hana_install_software_extract_directory }}/tmp for HANA SAR files. So in case of non-HANA SAR files, the result of the ls command in this sequence is not what it needs to be.

Community participation

Happy to implement this feature

Optional - Attempted solutions or manual steps

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions