Created attachment 914200 [details]
Description of problem:
Listing of VMs or templates on an export domain doesn't work. Engine returns error 500 with an NPE traceback in engine.log.
It's reproducible in GUI as well as in REST API.
It's regression against ovirt-engine-3.5.0-0.0.master.20140605145557.git3ddd2de.el6.noarch (alpha2).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Have an active export domain with some VMs and templates stored there.
2. In GUI, select the storage and go to the VM Import or Template Import sub-tab.
Error dialog: "Error while executing action: A Request to the Server failed with the following Status Code: 500"
Plus an NPE traceback in engine.log (attached).
VMs and templates are listed.
REST API also doesn't work:
It looks related to the context change although the constructor in the query seems to be valid but we do get a reflection error in the log.
I will try to debug this for better insights
Yair, please have a look also, it looks like a regression by the context change in the queries
I have tried to reproduce this on muster (commit a3a2938aea2edc8312b01f071e5c9b8653839338)
It seems that REST is working, same for GUI, moving this to Modify, so it can be re-examed in the next build
Verified in ovirt-engine-3.5.0-0.0.master.20140722232058.git8e1babc.el6.noarch (beta2).
Listing VMs and templates from an export storage domain now works ok. No errors appear in engine.log also.
REST API works too. GET requests to resources `/ovirt-engine/api/storagedomains/<uuid>/vms/` and `/ovirt-engine/api/storagedomains/<uuid>/templates/` return correct data.
oVirt 3.5 has been released and should include the fix for this issue.