[Users] Unable to get latest resource status

Alex Jia ajia at redhat.com
Thu Apr 26 15:49:09 UTC 2012


Hi all,
I built ovirt-engine-sdk rpm based on git repo 'http://gerrit.ovirt.org/p/ovirt-engine-sdk.git',
then the ovirt-engine-sdk works well for me, I can get resource information from Ovirt/RHEVM(3.0)
on the rhel6.2.

The only question is I can't get latest resource status when I changed VM from 'suspended' to 'up'
status, the api.vms.get(vm_name).status.state is always 'suspended' status, I can get a correct
VM status unless I reconnect Ovirt/RHEVM, it's not convenient for users, I remember there are reload 
and wait_for_status method in old python binding API of RHEV(python-rhev), the wait_for_status method 
will reload resource then get current resource status, however, I haven't found similar method in 
ovirt-engine-sdk.


Regards,
Alex



More information about the Users mailing list