-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[ARG task] Log detailed error for extension failure on VMs #10958
Conversation
@@ -30,9 +29,15 @@ export class DeploymentGroupExtensionHelper { | |||
var listOfVms: az.VM[] = await this.azureUtils.getVMDetails(); | |||
var extensionAddedOnVMsPromises: Promise<any>[] = []; | |||
for (var vm of listOfVms) { | |||
extensionAddedOnVMsPromises.push(this.addExtensionOnSingleVM(vm)); | |||
extensionAddedOnVMsPromises.push(this.addExtensionOnSingleVM(vm).catch(err => err)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding VM name before the error message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see the message will come correctly from below. Should you rather add the VM name prefix here so that it covers all cases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Tasks/AzureResourceGroupDeploymentV2/operations/DeploymentGroupExtensionHelper.ts
Show resolved
Hide resolved
@@ -479,6 +479,8 @@ | |||
"MoreInformationOnAzurePortal": "More information on Azure Portal", | |||
"ResponseNotValid": "Response is not in a valid format", | |||
"LogDeploymentName": "Deployment name is %s", | |||
"ExpiredServicePrincipal": "Could not fetch access token for Azure. Verify if the Service Principal used is valid and not expired." | |||
"ExpiredServicePrincipal": "Could not fetch access token for Azure. Verify if the Service Principal used is valid and not expired.", | |||
"DeploymentGroupConfigurationNotSucceeded": "Deployment group configuration did not succeed on all Virtual Machines: %s", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we can reword the message to say ... did not succeed on one or more virtual machines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -432,7 +432,7 @@ | |||
"AdditionFailed": "Addition of %s on vm %s failed. Error : %s", | |||
"DeletionFailed": "Deletion of %s on vm %s failed. Error : %s", | |||
"DeleteAgentManually": "After the task execution completes, if the deployment group agent corresponding to the virtual machine %s is present but not active in the deployment group %s, then please delete it manually from the deployment group.", | |||
"DGAgentOperationOnAllVMsFailed": "Deployment group agent %s did not succeed on all VMs. %s", | |||
"DGAgentOperationOnVMFailed": "Deployment group agent %s did not succeed on VM. Error: %s", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this message really useful? Should we directly put the error string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, can be done as VM extension error starts with "VM has reported a failure when processing extension 'TeamServicesAgent'"
No description provided.