Hi,
I have an issue using Orchestrator with vCloud Director and AMQP at the moment. I would appreciate any ideas anyone has..
I am using the network objects along with blocking tasks to try and identify when External IPs are removed from an org network (and hence check them in to my IPAM database).
the workflow can be summarised thusly:
This all works (code-wise) except for the fact that the XML that is returned from the network object is always the same.
It looks as though the XML is updated as soon as the task is completed and perhaps is just commited once the task is unblocked.
The only other way I can think of to do this is to save the task definition, force the task to fail, grab the network XML and then fire a new task with the same definition.
Feels like a pretty rubbish way of doing it though.
any ideas?
I might post this in the main forum too.
Thanks
Tim
The plug-in may cache the object. Try to call the updateInternalState() method on the object and check if it changes.
Christophe,
no luck unfortunately. I called it both times that I call toXml and no difference
Unfortunately it seems the blocking tasks sometimes lock access to some of the information in the object. We noticed this was the case when deleting a vApp and trying to access the vApp VMs information such as computer name so we could remove it from AD for example.
It would be wise to open a support Request to make sure this can be fixed in a next version of vCD. In the meantime you may want to fail the task and recreate it as you mentioned (if you have all information needed to do so). Not elegant but it may be the only work around.
Another one my be to use the query service to get the information you are looking for. The query service sometimes allows to bypass the blocking tasks limitations. You may want to look into it.
Regards,
Christophe.