We are using Service Fabric application deployment task. We have set the task parameter 'Unregister Unused Versions' to 'true/checked'. The deployment is successful and the cleanup of unused app versions works are expected. However we always see this warning in task logs: ##[debug]System.Fabric.FabricException: Application type and version is still in use ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80071BDB.
I checked that there is only one application type version in the cluster right now. We are confused with this warning, can we have some more logs which app type version failed to unregister so that we can check if its really being used. By any chance is the task trying to unregister the version which just got deployed ?
Task logs
[Enable debug logging and please provide the zip file containing all the logs for a speedy resolution]
2020-10-10T14:52:47.9163542Z Current Upgrade State: RollingForwardCompleted
2020-10-10T14:52:47.9195711Z Unregistering other unused versions for the application type...
2020-10-10T14:52:48.0556527Z Unregister application type started. Use Get-ServiceFabricApplicationType to query for status.
2020-10-10T14:52:48.1240492Z Getting application type...
2020-10-10T14:52:51.7162908Z ##[debug]System.Fabric.FabricException: Application type and version is still in use ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80071BDB
2020-10-10T14:52:51.7175222Z ##[debug] at System.Fabric.Interop.NativeClient.IFabricApplicationManagementClient10.EndUnprovisionApplicationType(IFabricAsyncOperationContext context)
2020-10-10T14:52:51.7189497Z ##[debug] at System.Fabric.Interop.Utility.<>c__DisplayClass22_0.b__0(IFabricAsyncOperationContext context)
2020-10-10T14:52:51.7202548Z ##[debug] at System.Fabric.Interop.AsyncCallOutAdapter2`1.Finish(IFabricAsyncOperationContext context, Boolean expectedCompletedSynchronously)
2020-10-10T14:52:51.7216124Z ##[debug] --- End of inner exception stack trace ---
2020-10-10T14:52:51.9884088Z Cluster health: ....
2020-10-10T14:52:52.2891148Z Upgrade completed successfully.
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days
Required Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Bug
Enter Task Name: Service Fabric application deployment
list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
Environment
Server - Azure Pipelines
Agent - Hosted
Issue Description
We are using Service Fabric application deployment task. We have set the task parameter 'Unregister Unused Versions' to 'true/checked'. The deployment is successful and the cleanup of unused app versions works are expected. However we always see this warning in task logs: ##[debug]System.Fabric.FabricException: Application type and version is still in use ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80071BDB.
I checked that there is only one application type version in the cluster right now. We are confused with this warning, can we have some more logs which app type version failed to unregister so that we can check if its really being used. By any chance is the task trying to unregister the version which just got deployed ?
Task logs
[Enable debug logging and please provide the zip file containing all the logs for a speedy resolution]
Troubleshooting
Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting
Error logs
2020-10-10T14:52:47.9163542Z Current Upgrade State: RollingForwardCompleted 2020-10-10T14:52:47.9195711Z Unregistering other unused versions for the application type... 2020-10-10T14:52:48.0556527Z Unregister application type started. Use Get-ServiceFabricApplicationType to query for status. 2020-10-10T14:52:48.1240492Z Getting application type... 2020-10-10T14:52:51.7162908Z ##[debug]System.Fabric.FabricException: Application type and version is still in use ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80071BDB 2020-10-10T14:52:51.7175222Z ##[debug] at System.Fabric.Interop.NativeClient.IFabricApplicationManagementClient10.EndUnprovisionApplicationType(IFabricAsyncOperationContext context) 2020-10-10T14:52:51.7189497Z ##[debug] at System.Fabric.Interop.Utility.<>c__DisplayClass22_0.b__0(IFabricAsyncOperationContext context)
2020-10-10T14:52:51.7202548Z ##[debug] at System.Fabric.Interop.AsyncCallOutAdapter2`1.Finish(IFabricAsyncOperationContext context, Boolean expectedCompletedSynchronously)
2020-10-10T14:52:51.7216124Z ##[debug] --- End of inner exception stack trace ---
2020-10-10T14:52:51.9884088Z Cluster health: ....
2020-10-10T14:52:52.2891148Z Upgrade completed successfully.