Bug 1429021 - When trying to move a template's disk via Python SDK, error message placeholder is not resolved
Summary: When trying to move a template's disk via Python SDK, error message placehold...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Backend.Core
Version: 4.1.1
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ovirt-4.2.0
: 4.2.0
Assignee: Benny Zlotnik
QA Contact: Natalie Gavrielov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-03 20:54 UTC by nicolas
Modified: 2017-12-20 11:02 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-12-20 11:02:37 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)
script to reproduce (1.16 KB, text/plain)
2017-03-21 09:41 UTC, Benny Zlotnik
no flags Details
test script (650 bytes, text/x-python)
2017-07-31 08:36 UTC, Natalie Gavrielov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 74355 0 master MERGED core: interpolate placeholder in failed disk move validation 2017-03-21 11:55:46 UTC

Description nicolas 2017-03-03 20:54:16 UTC
Description of problem:

I mistakenly tried to move a template's disk via Python SDK v. 4.1.1, which fairly threw an exception, the problem is that the exception message seems not to have a variable interpolated and the variable name is printed instead:

[2017-03-03 20:42:03] Moving disk with ID ae6622bc-...-...-...-08df012c6bc2 to datastore XXX
Traceback (most recent call last):
[...]
ovirtsdk4.Error: Fault reason is "Operation Failed". Fault detail is "[Cannot move Virtual Disk. The following disk(s) are not attached to any VM: ${diskAliases}.]". HTTP response code is 400.

I guess ${diskAliases} should be interpolated and the real value should be shown.

Version-Release number of selected component (if applicable):

ovirt-engine-sdk-python ver. 4.1.1

How reproducible:

Always

Comment 1 Benny Zlotnik 2017-03-21 09:41:20 UTC
Created attachment 1264956 [details]
script to reproduce

Comment 2 Natalie Gavrielov 2017-07-31 08:36:19 UTC
Created attachment 1306883 [details]
test script

Verified with the attached script (pretty much the same as the script attached in comment 1).
Builds used:
ovirt-engine-4.2.0-0.0.master.20170725202023.git561151b.el7.centos.noarch
vdsm-4.20.1-218.git1b7671f.el7.centos.x86_64

Comment 3 Sandro Bonazzola 2017-12-20 11:02:37 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


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