Bug 1110798
Summary: | SDK and REST ignore template's disk attributes | |||
---|---|---|---|---|
Product: | [Retired] oVirt | Reporter: | Raz Tamir <ratamir> | |
Component: | ovirt-engine-api | Assignee: | Amit Aviram <aaviram> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ori Gofen <ogofen> | |
Severity: | high | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 3.5 | CC: | acanan, amureini, bugs, gklein, rbalakri, yeylon | |
Target Milestone: | m1 | |||
Target Release: | 3.6.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | storage | |||
Fixed In Version: | ovirt-engine-3.6.0-0.0.master.20150412172306.git55ba764 | Doc Type: | Bug Fix | |
Doc Text: |
Cause: When adding a template via REST API and providing its new disk's alias, the action succeeded but the disk's alias was not changed.
Consequence: The user can provide an alias but cannot know that it will not actually be changed.
Fix: New template's disk alias is changeable now.
Result: The fields which are specified in the new template request's signature are available for usage. among them is the disk's alias.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1199811 1222283 (view as bug list) | Environment: | ||
Last Closed: | 2015-11-04 11:34:16 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | Storage | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1199811, 1222283 |
Description
Raz Tamir
2014-06-18 13:19:25 UTC
This is actually a wider bug than what is described- Any field which is specified in the REST XML regarding the new template's disks is ignored. The patch added now makes the REST request for a new template to be correlated with the rsdl_metadata file, which specifies what can be posted and what not. Disk's alias is now specified there and can be changed via REST. This bug has reproduced on ovirt3.6 master. steps taken: curled a Post call to engine [root@ovirt-gofen-2 Rest-Api-Qe]# cat template.xml <template> <name>temp_from_rest</name> <vm id="5e7816d7-12a0-4cb5-ad06-33fbf72077f4"> <disks> <disk id="cb8d7c33-dcc4-4670-8189-05628389f67e"> <alias>new_name</alias> </disk> </disks> </vm> </template> viewed the template object from the ui and rest, disk's original name apears instead of the new name Apparently this happens only Gluster storage and works on NFS. We will investigate further. After checking again on Gluster it seemed to work as well. Regarding the test that was made: currently the vm's disk in the tested environment is not "cb8d7c33-dcc4-4670-8189-05628389f67e", so maybe template.xml should be fixed and tested again? (The vm's disk's ID is "0b8550c3-d6a4-401c-9775-eb0541add05d") Maybe there were changes, but it is likely that the environment wasn't change since the test.. verified on oVirt3.6 master oVirt 3.6.0 has been released on November 4th, 2015 and should fix this issue. If problems still persist, please open a new BZ and reference this one. |