Description of problem: Adding rest API to support getting attached Storage Domains for attach or import Storage Domain operations Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Moving to NEW for now until a proper solution will be resolved through gerrit
Maor, please provide steps to verify
Try to import a Storage Domain which was destroyed on a previous setup to the setup without attaching it to the Data Center in REST call the following request: POST /api/storagedomains/d97c4fc5-bf5d-41a3-94c6-8fe821f98ff0/isattached HTTP/1.1 Accept: application/xml Content-type: application/xml <action> <host id="383a1e8d-d299-45d4-84d5-9bcc9fcf8823"></host> </action> The response which should returned is a Storage Domain with the flag is_attached. as so: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <storage_domain id="d97c4fc5-bf5d-41a3-94c6-8fe821f98ff0"> <is_attached>false</is_attached> </storage_domain>
This Bug was Verified on downstream by lkuchlan, I have described my rejects at https://bugzilla.redhat.com/show_bug.cgi?id=1181681#c6
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2016-0406.html