axxyhtrx / pysphere

Automatically exported from code.google.com/p/pysphere
0 stars 0 forks source link

VIVirtualMachine.get_status() causes error in ESXi "Recent Tasks" #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

    1. Do `vm.get_status()`
    2. Log into ESXi server using vSphere Client, look in Recent Tasks

What is the expected output? What do you see instead?

    I don't expect to have an error in the log, but instead I see the attached file.

    ("Create task collector" --- "The operation is not supported on the object.")

What version of the product are you using? On what operating system?

    pysphere==0.1.6
    VMware ESXi 4.1.0

Please provide any additional information below.

    Despite the error, functionally it appears to work.

Original issue reported on code.google.com by bradley....@gmail.com on 27 Sep 2012 at 10:19

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for reporting this bradley. This was already fixed in trunk in r69.

when possible, get_status, attempts to provide a more accurate status 
(emulating the behavior in vix api), by analyzing the pending running tasks 
(among other things).
E.g. if the vm is powered off but a power on task in being processed then the 
status will be "powering on"
Querying tasks history is only available in virtual center not ESXi, before r69 
the check done to tell whether the server is a VirtualCenter or not was buggy 
hence executing in some cases an not supported operation.

Original comment by argo...@gmail.com on 2 Oct 2012 at 12:22