-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_synapse_workspace_aad_admin
- fix dependency issue when removing azurerm_synapse_workspace_aad_admin
for azurerm_synapse_workspace
#27606
Conversation
Hi @katbyte since I have received ping that there is customer waiting for this fix, could you please take another look at it, thank you very much. |
Hello @katbyte This is Mars Xiang, the MSFT engineer with the related customer. The customer is waiting for this fix. So could you please kindly help check and approve this PR? thanks a lot! |
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.
We have a test failure
------- Stdout: -------
=== RUN TestAccSynapseWorkspaceAADAdmin_basic
=== PAUSE TestAccSynapseWorkspaceAADAdmin_basic
=== CONT TestAccSynapseWorkspaceAADAdmin_basic
testcase.go:173: Error running post-test destroy, there may be dangling resources: exit status 1
Error: waiting for azuread_authentication_only to finish updating for /subscriptions/*******/resourceGroups/acctestRG-synapse-241028193534126001/providers/Microsoft.Synapse/workspaces/acctestsw241028193534126001: Code="UnexpectedError" Message="Microsoft.Analytics.Common.Http.Exceptions.ErrorContractException: {\"faultType\":0,\"errorResponse\":{\"errorResponse\":{\"code\":\"UnknownWorkflowFailure\",\"message\":\"An unknown error was encountered.\",\"target\":null,\"details\":null}},\"internalErrorResponse\":{\"errorResponse\":{\"code\":\"UnknownWorkflowFailure\",\"message\":\"DurableTask.Core.Exceptions.TaskFailedException : One or many partners failed ((SQL_And_Starlight, Failed)) to process the service bus message: {\\\"SQL_And_Starlight\\\":{\\\"status\\\":\\\"Failed\\\",\\\"debugErrorMessage\\\":\\\"System.Exception : Operation status update failed with: {\\\\\\\"code\\\\\\\":\\\\\\\"PartnerApiError\\\\\\\",\\\\\\\"message\\\\\\\":\\\\\\\"Internal error happened while processing the request.\\\\\\\",\\\\\\\"target\\\\\\\":null,\\\\\\\"details\\\\\\\":null}\\\\r\\\\n at Microsoft.Analytics.SynapseMessagingConsumerSvc.PartnerNotificationHandlers.PartnerNotificationHandlerBase.<UpdateOperationStatus>d__7`1.MoveNext() in C:\\\\\\\\__w\\\\\\\\1\\\\\\\\s\\\\\\\\src\\\\\\\\services\\\\\\\\SynapseMessagingConsumer\\\\\\\\Microsoft.Analytics.SynapseMessagingConsumerSvc\\\\\\\\PartnerNotificationHandlers\\\\\\\\PartnerNotificationHandlerBase.cs:line 130\\\\r\\\\n--- End of stack trace from previous location where exception was thrown ---\\\\r\\\\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\\\r\\\\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\\\r\\\\n at Microsoft.Analytics.SynapseMessagingConsumerSvc.PartnerNotificationHandlers.PartnerNotificationHandlerBase.<NotifyAzureADOnlyAuthentication>d__6.MoveNext() in C:\\\\\\\\__w\\\\\\\\1\\\\\\\\s\\\\\\\\src\\\\\\\\services\\\\\\\\SynapseMessagingConsumer\\\\\\\\Microsoft.Analytics.SynapseMessagingConsumerSvc\\\\\\\\PartnerNotificationHandlers\\\\\\\\PartnerNotificationHandlerBase.cs:line 96\\\"}}\\r\\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n at DurableTask.Core.TaskOrchestrationContext.<ScheduleTaskInternal>d__17.MoveNext() in C:\\\\source\\\\durabletask\\\\src\\\\DurableTask.Core\\\\TaskOrchestrationContext.cs:line 102\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n at DurableTask.Core.TaskOrchestrationContext.<ScheduleTaskToWorker>d__16`1.MoveNext() in C:\\\\source\\\\durabletask\\\\src\\\\DurableTask.Core\\\\TaskOrchestrationContext.cs:line 78\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n at DurableTask.Core.TaskOrchestrationContext.<ScheduleTask>d__15`1.MoveNext() in C:\\\\source\\\\durabletask\\\\src\\\\DurableTask.Core\\\\TaskOrchestrationContext.cs:line 70\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n at DurableTask.Core.RetryInterceptor`1.<Invoke>d__4.MoveNext() in C:\\\\source\\\\durabletask\\\\src\\\\DurableTask.Core\\\\RetryInterceptor.cs:line 60\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n at DurableTask.Core.RetryInterceptor`1.<Invoke>d__4.MoveNext() in C:\\\\source\\\\durabletask\\\\src\\\\DurableTask.Core\\\\RetryInterceptor.cs:line 77\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n at Microsoft.Analytics.Common.WorkflowEngine.OrchestrationContextExtensions.<ScheduleReliableActivity>d__2`1.MoveNext() in C:\\\\__w\\\\1\\\\s\\\\src\\\\services\\\\provisioning\\\\Microsoft.Analytics.ProvisioningWorkerSvc\\\\WorkflowEngine\\\\OrchestrationContextExtensions.cs:line 65\",\"target\":null,\"details\":null},\"faultSignature\":\"UnknownWorkflowFailure\"},\"faultedComponents\":[{\"partnerAttribution\":0,\"faultedComponentName\":\"Unknown\"}]}\r\n at Microsoft.Analytics.Common.WorkflowEngine.OrchestrationContextExtensions.<ScheduleActivity>d__1`1.MoveNext() in C:\\__w\\1\\s\\src\\services\\provisioning\\Microsoft.Analytics.ProvisioningWorkerSvc\\WorkflowEngine\\OrchestrationContextExtensions.cs:line 36\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.Analytics.ProvisioningWorkerSvc.Workflows.AzureADOnlyAuthentication.Orchestration.CreateOrUpdateAzureADOnlyAuthenticationOrchestration.<WaitForExpectedPartnerStatus>d__9.MoveNext() in C:\\__w\\1\\s\\src\\services\\provisioning\\Microsoft.Analytics.ProvisioningWorkerSvc\\Workflows\\AzureADOnlyAuthentication\\Orchestration\\CreateOrUpdateAzureADOnlyAuthenticationOrchestration.cs:line 164\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.Analytics.ProvisioningWorkerSvc.Workflows.AzureADOnlyAuthentication.Orchestration.CreateOrUpdateAzureADOnlyAuthenticationOrchestration.<ExecuteProvisioningWorkflow>d__5.MoveNext() in C:\\__w\\1\\s\\src\\services\\provisioning\\Microsoft.Analytics.ProvisioningWorkerSvc\\Workflows\\AzureADOnlyAuthentication\\Orchestration\\CreateOrUpdateAzureADOnlyAuthenticationOrchestration.cs:line 56"
--- FAIL: TestAccSynapseWorkspaceAADAdmin_basic (525.55s)
Hi @katbyte the test reset passed as follows. Could you please take another look? |
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.
@sinbai it seems the test is flakey? might be something to look into to prevent PRs being delayed in the future
as it stands thou PR is passing tests and LGTM 🌵
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Community Note
Description
When deleting resource
azurerm_synapse_workspace_aad_admin
, ifazuread_authentication_only
is enabled forazurerm_synapse_workspace
, the API returns the following error.User tried to delete Azure Active Directory admin when AzureADOnlyAuthentication is set, please use azureADOnlyAuthentications API first.
Since the API requires that
azurerm_synapse_workspace_aad_admin
can be deleted only ifazuread_authentication_only
is disabled, submit this PR to disableazuread_authentication_only
(if it is enabled) before deletingazurerm_synapse_workspace_aad_admin
to fix the dependency issue.PR Checklist
For example: “
resource_name_here
- description of change e.g. adding propertynew_property_name_here
”Changes to existing Resource / Data Source
Testing
Before applying this PR, after enabling
azuread_authentication_only
in the test caseTestAccSynapseWorkspaceAADAdmin_basic
, the error occurred as follows.After applying this PR, the test case passes.
PASS: TestAccSynapseWorkspaceAADAdmin_basic (1040.62s)
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_synapse_workspace_aad_admin
- fix dependency issue when deletingazurerm_synapse_workspace_aad_admin
This is a (please select all that apply):