Azure / sap-automation

This is the repository supporting the SAP deployment automation framework on Azure
MIT License
125 stars 145 forks source link

ACSS - step is failing in the new version #601

Closed cdornele closed 1 month ago

cdornele commented 5 months ago

Hey there,

The new Ansible steps for ACSS registration it is not working. I am running S4HANA FP 2022 and HANA v2 77. PAS and SCS are running in the same VM.

I am getting errors during the az extensions and the validations in the lines:

TASK [roles-misc/0.5-ACSS-registration : 0.5.1 acss registration: - Set variables from Azure IMDS] *** fatal: [corps4xap1 -> localhost]: FAILED! => {"changed": false, "cmd": "'az extension add --name workloads --yes || exit 1'", "msg": "[Errno 2] No such file or directory: b'az extension add --name workloads --yes || exit 1'", "rc": 2, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

I've added manually and commented this part of code in my own repo, however, after this task, I am getting a new error in this step:

TASK [roles-misc/0.5-ACSS-registration : Create [ACSS] virtual instance] *** fatal: [corps4xap1]: FAILED! => {"msg": "The conditional check 'cluster_group_location.stdout != ansible_hostname' failed. The error was: error while evaluating conditional (cluster_group_location.stdout != ansible_hostname): 'dict object' has no attribute 'stdout'. 'dict object' has no attribute 'stdout'\n\nThe error appears to be in '/home/azureadm/agent/_work/8/s/sap-automation/deploy/ansible/roles-misc/0.5-ACSS-registration/tasks/main.yaml': line 115, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: \"Create [ACSS] virtual instance\"\n ^ here\n"}

hdamecharla commented 5 months ago

Hi @cdornele , thank you for raising the bug.

As quick reproduction, on the deployer VM are you able to run the following commands:

  1. az extension list
  2. az extension add --name workloads --yes --verbose

Please let me know if these run successfully.