Description of problem:
Though action of exporting template to Export Domain succeeds (template exists after several minutes in GUI), the Rest command is stucked
Version-Release number of selected component (if applicable):
How reproducible:
Always
Steps to Reproduce:
1. Send xml (attached below) to the API
Actual results:
API action is stucked though action succeeds
Expected results:
API action should not stuck
Additional info:
In our case we sent the follwoing "body" to https://jenkins-vm-07.scl.lab.tlv.redhat.com/ovirt-engine/api/templates/3b8f685b-a503-4974-bdf6-a46d5a9bf7df/export
<action>
<async>false</async>
<grace_period>
<expiry>10</expiry>
</grace_period>
<storage_domain>
<name>export_domain</name>
</storage_domain>
<exclusive>false</exclusive>
</action>
It is the second time that I see this problem in the last few days, see bug 1253338. Initially I thought that bug was a specific problem when restoring a snapshot, but it looks like it is a more generic issue with caching in the DAO layer. In both cases (this bug and bug 1253338) the command executed returns a job and checking the status of that job (using the GetJobByJobId query) always returns STARTED, even if the database already contains FINISHED.