Skip to content
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

Merged
merged 5 commits into from
Jul 22, 2019

Conversation

bishal-pdMSFT
Copy link
Contributor

No description provided.

@bishal-pdMSFT bishal-pdMSFT requested a review from sachinma as a code owner July 20, 2019 14:18
@@ -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));
Copy link
Member

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.

Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@sachinma sachinma self-assigned this Jul 22, 2019
@@ -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",
Copy link
Member

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.

Copy link
Contributor Author

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",
Copy link
Member

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.

Copy link
Contributor Author

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'"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants