Bug 1222283
Summary: | SDK and REST ignore template's disk attributes | ||
---|---|---|---|
Product: | [Retired] oVirt | Reporter: | Amit Aviram <aaviram> |
Component: | ovirt-engine-api | Assignee: | Amit Aviram <aaviram> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Aharon Canan <acanan> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.5 | CC: | aaviram, acanan, amureini, bugs, ecohen, gklein, lsurette, ogofen, ratamir, rbalakri, tnisan, yeylon, ylavi |
Target Milestone: | --- | ||
Target Release: | 3.5.4 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | storage | ||
Fixed In Version: | ovirt-engine-3.5.4 | 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: | 1110798 | Environment: | |
Last Closed: | 2015-09-03 13:53:59 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: | 1110798 | ||
Bug Blocks: | 1199811 |
Description
Amit Aviram
2015-05-17 08:58:37 UTC
doctext copied from bug 1199811. Since oVirt 3.5.4 RC1 has been released, please ensure that the fix is included in the build and move the bug to ON_QA accordingly. Issue reproduced using vt16.1 (rhevm-3.5.4-1.1.el6ev.noarch) send - <template> <name>temp_from_rest</name> <vm id="b2b269d0-7cb7-4fd1-a098-c3014d194070"> <disks> <disk id="11c1dbe3-035b-49c9-8ae6-58214f4881c7"> <alias>new_name</alias> </disk> </disks> </vm> </template> get - <disks> <disk href= "/api/templates/cf3767e1-005c-4f1c-b7b8-edc0bfe98e59/disks/cbb7d264-5204-4db1-a58e-e8e555172458" id="cbb7d264-5204-4db1-a58e-e8e555172458"> <actions> <link href= "/api/templates/cf3767e1-005c-4f1c-b7b8-edc0bfe98e59/disks/cbb7d264-5204-4db1-a58e-e8e555172458/export" rel="export"/> <link href= "/api/templates/cf3767e1-005c-4f1c-b7b8-edc0bfe98e59/disks/cbb7d264-5204-4db1-a58e-e8e555172458/copy" rel="copy"/> </actions> <name>vm_Disk1</name> <template href= "/api/templates/cf3767e1-005c-4f1c-b7b8-edc0bfe98e59" id="cf3767e1-005c-4f1c-b7b8-edc0bfe98e59"/> <alias>vm_Disk1</alias> <image_id>292813e3-f701-4864-8cc9-1128294edd99</image_id> <storage_domains> <storage_domain id="95056e58-4790-4792-8685-2289356a8535"/> </storage_domains> <size>5368709120</size> <provisioned_size>5368709120</provisioned_size> <actual_size>5368709120</actual_size> <status> <state>ok</state> </status> <interface>virtio</interface> <format>raw</format> <sparse>false</sparse> <bootable>true</bootable> <shareable>false</shareable> <wipe_after_delete>false</wipe_after_delete> <propagate_errors>false</propagate_errors> <disk_profile href= "/api/diskprofiles/f1a7deec-95c9-4a38-b1b2-a20303e3ea35" id="f1a7deec-95c9-4a38-b1b2-a20303e3ea35"/> </disk> </disks> Hey. it seems that the url that this xml was posted into was the vm's disks, and not /api/templates/ ... checked again in the same environment and it worked. also, make sure your'e posting with HTTPS protocol rather than HTTP. Verified on vt16.1 This is an automated message. oVirt 3.5.4 has been released on September 3rd 2015 and should include the fix for this BZ. Moving to closed current release. |