Support for storage_snapshots - RHEVM providers
-------------------------------------------------
Key: DTACLOUD-134
URL: https://issues.apache.org/jira/browse/DTACLOUD-134
Project: DeltaCloud
Issue Type: Bug
Components: Server
Environment: deltacloud-core-0.5.0-4.rc1.el6.noarch
RHEL 6.2
Reporter: Ronelle Landy
Assignee: David Lutterkort
The Deltacloud API for RHEVM lists storage_snapshots as as available collection
but throws an error when the user accesses storage_snapshots.
API entry output for a RHEVM provider:
curl -X GET --user 'uname:pswd' "http://server:3001/api?format=xml"<api
driver='rhevm' version='0.5.0'>
<link href='http://server:3001/api/realms' rel='realms'>
</link>
<link href='http://server:3001/api/drivers' rel='drivers'>
</link>
<link href='http://server:3001/api/storage_snapshots' rel='storage_snapshots'>
</link>
<link href='http://server:3001/api/images' rel='images'>
</link>
<link href='http://server:3001/api/instances' rel='instances'>
<feature name='user_name'>
<constraint name='max_length' value='50'></constraint>
</feature>
<feature name='user_data'>
</feature>
<feature name='hardware_profiles'>
</feature>
</link>
<link href='http://server:3001/api/storage_volumes' rel='storage_volumes'>
</link>
<link href='http:/server:3001/api/hardware_profiles' rel='hardware_profiles'>
</link>
<link href='http://server:3001/api/instance_states' rel='instance_states'>
</link>
</api>
Accessing storage_snapshots gives an error:
curl -X GET --user 'uname:pswd'
"http:server:3001/api/storage_snapshots?format=xml"
<error status='500' url='/api/storage_snapshots?format=xml'>
<kind>backend_error</kind>
<backend driver='rhevm'>
<code>500</code>
</backend>
<message><![CDATA[storage_snapshots capability not supported by backend
Deltacloud::Drivers::RHEVM::RHEVMDriver]]></message>
</error>
If storage_snapshots are not supported, they should be removed from the API
Entry output.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira