-
Notifications
You must be signed in to change notification settings - Fork 33
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
error in Deploy SAP Workload Zone pipeline. #64
Comments
2024-03-09T15:12:56.3237314Z ##[debug]Evaluating condition for step: 'Deploy SAP Workload Zone' echo "##vso[build.updatebuildnumber]Deploying the SAP Workload zone defined in DEV-WEEU-SAP01-INFRASTRUCTURE" Check if running on deployerif [ ! -f /etc/profile.d/deploy_server.sh ]; then if [ ! -f $CONFIG_REPO_PATH/LANDSCAPE/DEV-WEEU-SAP01-INFRASTRUCTURE/DEV-WEEU-SAP01-INFRASTRUCTURE.tfvars ]; then echo -e "$green--- Checkout main ---$reset" cd $CONFIG_REPO_PATH echo -e "$green--- Validations ---$reset" if [ -z $WL_ARM_SUBSCRIPTION_ID ]; then if [ -z $WL_ARM_CLIENT_ID ]; then if [ -z $WL_ARM_CLIENT_SECRET ]; then if [ -z $WL_ARM_TENANT_ID ]; then if [ -z $CP_ARM_SUBSCRIPTION_ID ]; then if [ -z $CP_ARM_CLIENT_ID ]; then if [ -z $CP_ARM_CLIENT_SECRET ]; then if [ -z $CP_ARM_TENANT_ID ]; then echo -e "$green--- Convert config file to UX format ---$reset" ENVIRONMENT=$(grep "^environment" LANDSCAPE/DEV-WEEU-SAP01-INFRASTRUCTURE/DEV-WEEU-SAP01-INFRASTRUCTURE.tfvars | awk -F'=' '{print $2}' | xargs) ENVIRONMENT_IN_FILENAME=$(echo DEV-WEEU-SAP01-INFRASTRUCTURE | awk -F'-' '{print $1}' | xargs ) NETWORK_IN_FILENAME=$(echo DEV-WEEU-SAP01-INFRASTRUCTURE | awk -F'-' '{print $3}' | xargs ) if [ $ENVIRONMENT != $ENVIRONMENT_IN_FILENAME ]; then if [ $LOCATION != $LOCATION_IN_FILENAME ]; then if [ $NETWORK != $NETWORK_IN_FILENAME ]; then echo -e "$green--- Configure devops CLI extension ---$reset" az extension add --name azure-devops --output none az devops configure --defaults organization=https://dev.azure.com/sathakur4022/ project='SAPHANADEF' --output none export PARENT_VARIABLE_GROUP_ID=$(az pipelines variable-group list --query "[?name=='SDAF-MGMT'].id | [0]") export VARIABLE_GROUP_ID=$(az pipelines variable-group list --query "[?name=='SDAF-DEV'].id | [0]") echo "Agent Pool: " sdaf-mgmt-pool echo -e "$green--- Set CONFIG_REPO_PATH variable ---$reset" deployer_environment_file_name=$CONFIG_REPO_PATH/.sap_deployment_automation/MGMTWEEU ; echo 'Deployer Environment File' $deployer_environment_file_name if [ ! -f ${deployer_environment_file_name} ]; then echo -e "$green--- Read parameter values ---$reset" if [ "true" == true ]; then
else secrets_set=1 wget -q https://releases.hashicorp.com/terraform/1.6.2/terraform_1.6.2_linux_amd64.zip export ARM_CLIENT_ID=$WL_ARM_CLIENT_ID echo -e "$green--- az login ---$reset" else
echo -e "$green --- Set secrets ---$reset"
debug_variable='--output none' az login --service-principal --username $CP_ARM_CLIENT_ID --password=$CP_ARM_CLIENT_SECRET --tenant $CP_ARM_TENANT_ID --output none isUserAccessAdmin=$(az role assignment list --role "User Access Administrator" --subscription $STATE_SUBSCRIPTION --query "[?principalType=='ServicePrincipal'].principalId | [0] " --assignee $CP_ARM_CLIENT_ID) tfstate_resource_id=$(az resource list --name "${REMOTE_STATE_SA}" --subscription ${STATE_SUBSCRIPTION} --resource-type Microsoft.Storage/storageAccounts --query "[].id | [0]" -o tsv) if [ -n "${isUserAccessAdmin}" ]; then echo -e "$green--- Set permissions ---$reset"
if [ -n ${resource_group_name} ]; then
fi echo -e "$green--- Deploy the workload zone ---$reset"
else fi $SAP_AUTOMATION_REPO_PATH/deploy/scripts/install_workloadzone.sh --parameterfile DEV-WEEU-SAP01-INFRASTRUCTURE.tfvars echo "Return code: ${return_code}" az logout --output none az_var=$(az pipelines variable-group variable list --group-id ${VARIABLE_GROUP_ID} --query "FENCING_SPN_ID.value") echo -e "$green--- Add & update files in the DevOps Repository ---$reset" echo -e "$green--- Pull latest ---$reset" added=0 if [ -f ${workload_environment_file_name}.md ]; then
fi if [ 0 != $return_code ]; then fi exit $return_code |
error in Deploy SAP Workload Zone pipeline.
Attached the snippet., pls suggest.
2024-03-09T11:01:00.0990511Z ##[section]Starting: Deploy SAP Workload Zone
2024-03-09T11:01:00.0994445Z ==============================================================================
2024-03-09T11:01:00.0994551Z Task : Bash
2024-03-09T11:01:00.0994617Z Description : Run a Bash script on macOS, Linux, or Windows
2024-03-09T11:01:00.0994697Z Version : 3.236.1
2024-03-09T11:01:00.0994750Z Author : Microsoft Corporation
2024-03-09T11:01:00.0994812Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/bash
2024-03-09T11:01:00.0994916Z ==============================================================================
2024-03-09T11:01:02.5873816Z Generating script.
2024-03-09T11:01:02.5884831Z ========================== Starting Command Output ===========================
2024-03-09T11:01:02.5896939Z [command]/usr/bin/bash /home/azureadm/agent/_work/_temp/585314e7-2e70-438c-934c-39d894ef72fd.sh
2024-03-09T11:01:03.2096306Z azureadm account ready for use with Azure SAP Automated Deployment
2024-03-09T11:01:03.2098911Z �[1;31m--- DEV-WEEU-SAP01-INFRASTRUCTURE.tfvars was not found ---�[0m
2024-03-09T11:01:03.2142202Z ##[error]File DEV-WEEU-SAP01-INFRASTRUCTURE.tfvars was not found.
2024-03-09T11:01:03.2152889Z
2024-03-09T11:01:03.2154533Z ##[error]Bash exited with code '2'.
2024-03-09T11:01:03.2183291Z ##[section]Async Command Start: Update Build Number
2024-03-09T11:01:04.4722519Z Update build number to Deploying the SAP Workload zone defined in DEV-WEEU-SAP01-INFRASTRUCTURE for build 800
2024-03-09T11:01:04.4722738Z ##[section]Async Command End: Update Build Number
2024-03-09T11:01:04.4723717Z ##[section]Finishing: Deploy SAP Workload Zone
The text was updated successfully, but these errors were encountered: