Bug 830515 - Ovirt SDK - Can't update storage domain name
Summary: Ovirt SDK - Can't update storage domain name
Keywords:
Status: CLOSED DUPLICATE of bug 815736
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-sdk
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Michael Pasternak
QA Contact: Oded Ramraz
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-10 10:07 UTC by Elena
Modified: 2015-09-22 13:10 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-10 10:21:46 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Elena 2012-06-10 10:07:14 UTC
storage_domain.set_name(new_name)
storage_domain.update()

status: 400  
reason: Bad Request  
detail: [Cannot edit Storage. Only Storage Domain name is updateable.]

Comment 1 Michael Pasternak 2012-06-10 10:21:46 UTC
this is api bug, see https://bugzilla.redhat.com/show_bug.cgi?id=815736

Comment 2 Michael Pasternak 2012-06-10 10:22:12 UTC

*** This bug has been marked as a duplicate of bug 815736 ***

Comment 3 Elena 2012-06-10 10:28:17 UTC
I'm not sure it's the same. When I do it in rest (changing only name) it works.
I think Attila also specified it as:
'If I remove the type tag, operation succeeds, but I think this is not how it's supposed to work.'

Bottom line - when there is a work-around in rest, there is no in sdk

Comment 4 Michael Pasternak 2012-06-10 10:34:45 UTC
of course as in sdk you cannot remove individual elements
from the xml objects,

(i.e it get converted to xml including <type> element which cause #815736)


Note You need to log in before you can comment on or make changes to this bug.