The recent pipeline failure (e.g., twas-base CICD #31) broke at step Output installation log and copy openscap scanning reports:
Based on the error message, the initial guess is that the execution of command cat /var/lib/waagent/custom-script/download/0/stdout failed. Then per further investigation, the root cause is that directory /var/lib/waagent/custom-script/download/0 no longer exists after executing VM extension (az vm extension set --name CustomScript) for the 2nd time in step Harden the VM using OpenSCAP tool.
The PR is to fix the issue by outputting the installation log before executing step Harden the VM using OpenSCAP tool.
Testing
3 pipeline workflow runs all completed successfully in my fork with the fix:
The recent pipeline failure (e.g., twas-base CICD #31) broke at step
Output installation log and copy openscap scanning reports
:Based on the error message, the initial guess is that the execution of command
cat /var/lib/waagent/custom-script/download/0/stdout
failed. Then per further investigation, the root cause is that directory/var/lib/waagent/custom-script/download/0
no longer exists after executing VM extension (az vm extension set --name CustomScript
) for the 2nd time in stepHarden the VM using OpenSCAP tool
.The PR is to fix the issue by outputting the installation log before executing step
Harden the VM using OpenSCAP tool
.Testing
3 pipeline workflow runs all completed successfully in my fork with the fix:
Signed-off-by: Jianguo Ma jiangma@microsoft.com