How can I verify that a P2V job succeeded on the given vCenter host?
Tos2k
Once the job is submitted, job MOR (managed object reference) by the create job method.
You can use this MOR as parameter to getJobInfo method of the ConversionManager, so you can acquire the current state of the task.
Other way is to use PropertyCollector service to monitor for changes in the running job (like progress, state, events.. etc.) but usage of PropertyCollector is more complicated. See the attached doc. there is explanation how PropertyCollector is used.
Thanks a lot for your help!
Point is I can not see that "job" in vCenter? What is that magic job thing?
Tos2k
Can you please post some code on how to use the conversionmanager and the job-id?!
I think that "conversionjobs" are not displayed by vCenter client... unsure also to which host (Converter server, vCenter, ESX...) to point conversionmanager to...
TIA!!
Tos2k
Here is how you can check the state of a conversion job:
ConverterServerConversionConversionJobInfo cji = _converterService.ConverterServerConversionManagerCreateJob(
_converterServerContent.conversionManager,
jobSpec,
null);
cji = _converterService.ConverterServerConversionManagerGetJobInfo(_converterServerContent.conversionManager, cji.job);
Currently I can not catch errors that occur... localizedFault is set with empty object.
Tos2k
Error handling/piping seems not ti be implemented completely in ConverterApi.
Anyway, assuming that there is no job.mostRecentError will indicate a successfull P2V job...
Tos2k