VMware

This Question is Not Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
2 Replies Last post: Nov 10, 2009 1:12 AM by johndemic  

The operation is not allowed in the current state posted: Nov 5, 2009 6:44 AM

Click to view johndemic's profile Novice 13 posts since
Mar 23, 2009
Hey All,

I'm executing the following SOAP request to determine the amount of tasks running on VirtualCenter:

<CreateCollectorForTasks xmlns="urn:vim2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<_this type="TaskManager">TaskManager</_this>
<filter>
<state>running</state>
</filter>
</CreateCollectorForTasks>

This works well, but under some circumstances (which appear load related) I occasionally get a response as follows:

"The operation is not allowed in the current state"

I've previously only seen this error when performing invalid operations on a VM, like trying to stop an already stopped server.

Does anyone have any ideas?

Thanls,
-jd
Click to view AngelaS's profile Enthusiast 43 posts since
Sep 28, 2009

Hi,

Can you please elaborate more on "This works well, but under some circumstances which appear load related..."?

Are you performing any other tasks on the server parallely apart from retrieving the current running tasks?

Developer Social Media

Communities