nforgeio / neonKUBE

Public NeonKUBE Kubernetes distribution related projects
https://neonkube.io
Apache License 2.0
78 stars 13 forks source link

hyper-v: neon cluster delete error #1873

Closed jefflill closed 5 months ago

jefflill commented 10 months ago

Deleting my hyper-v large (home) cluster I see this error:

λ neon cluster delete --force                                                                                                                                                                                                                                                   

Removing: large-hyperv...                                                                                                                                                                                                                                                       
*** ERROR: [Neon.HyperV.HyperVException]: Hyper-V encountered an error trying to access an object on computer 'WORK' because the object was not found. The object might have been deleted. Verify that the Virtual Machine Management service on the computer is running. [inner
:Microsoft.HyperV.PowerShell.VirtualizationException: Hyper-V encountered an error trying to access an object on computer 'WORK' because the object was not found. The object might have been deleted. Verify that the Virtual Machine Management service on the computer is run
ning.]                                                                                                                                                                                                                                                                          
   at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction`1 action, ParallelOptions options, Boolean stopOnFirstFailure)                                                                                                                                   
   at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)                                          
--- End of stack trace from previous location ---                                                                                                                                                                                                                               
   at System.Threading.Tasks.Parallel.ThrowSingleCancellationExceptionOrOtherException(ICollection exceptions, CancellationToken cancelToken, Exception otherException)                                                                                                         
   at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)                                          
   at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Act
ion`1 localFinally)                                                                                                                                                                                                                                                             
   at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body)                                                                                                                                                    
   at Neon.Kube.Hosting.HyperV.HyperVHostingManager.DeleteClusterAsync(ClusterDefinition clusterDefinition) in C:\src\neonKUBE\Lib\Neon.Kube.HyperV\HyperVHostingManager.cs:line 1365                                                                                           
   at Neon.Kube.Proxy.ClusterProxy.DeleteClusterAsync() in C:\src\neonKUBE\Lib\Neon.Kube\Proxy\ClusterProxy.cs:line 1615                                                                                                                                                        
   at NeonCli.ClusterDeleteCommand.RemoveCluster(ClusterProxy cluster, Boolean force) in C:\src\neonKUBE\Tools\neon-cli\Commands\Cluster\ClusterDeleteCommand.cs:line 231                                                                                                       
   at NeonCli.ClusterDeleteCommand.RunAsync(CommandLine commandLine) in C:\src\neonKUBE\Tools\neon-cli\Commands\Cluster\ClusterDeleteCommand.cs:line 174                                                                                                                        
   at NeonCli.Program.Main(String[] args) in C:\src\neonKUBE\Tools\neon-cli\Program.cs:line 442                                                                                                                                                                                 
jefflill commented 5 months ago

CLOSING: I've been testing delete over the past couple weeks and haven't seen this.