"WMWare controller:" Terminate of running Windows instance errors out: operation cannot be performed
[Version] V16.0 Fix 6 [Date] 2016/06/26
[Test category] Creative
[Description] Trying to terminate a running windows instance. Subscription is deleted but backend errors out with: "The attempted operation cannot be performed in the current state (Powered on)" The action the ESS wants to perform is delete...
[Steps to reproduce]
instantiate a Windows system
make sure its running
terminate the subscription
[Expected result]
Subscription, app controller entry and ess instance is deleted
[Observed result]

[Details]
See above;
additional: a resume or de-provisioning from the app fails as well with the same error. Loook like that on Windows a stup is required before the delete works...
[Messages and logs]
There are no differences in the handling of Linux and Window VM by termination. The process is handled by the same state machine in the VMWare controller. The error in the attached screenshot is sporadic error which happens also by other operations and the reason is still unknown. During the testing with Windows template, I found another problem with retrieving the IP address in case of DHCP setting for the network interface and this is fixed with the commit.
ok with 2016/07/22
[Build] 2016/08/19 reopen
I sometimes get this error with CentOS instance.
The subscription stays pending and the error is: The attempted operation cannot be performed in the current state (Powered on).
See screenshot of vSphere Client:
