Bug 949642 - RHEVM-CLI: unclear error message (error: type "%s" does not exist.) when using unsupported 2 levels attribute.
Summary: RHEVM-CLI: unclear error message (error: type "%s" does not exist.) when usin...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-cli
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.2.0
Assignee: Ravi Nori
QA Contact: Barak Dagan
URL:
Whiteboard: infra
Depends On: 960997 961046 961352
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-08 17:10 UTC by Barak Dagan
Modified: 2016-02-10 19:21 UTC (History)
10 users (show)

Fixed In Version: sf14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 13754 0 None None None Never
oVirt gerrit 14094 0 None None None Never

Description Barak Dagan 2013-04-08 17:10:38 UTC
Description of problem:
when using unsupported 2 levels attribute (both are not supported) the returned error is not user friendly, for example using --usages-usage in add network:

[RHEVM shell (connected)]# add network --cluster-identifier 'f55fee84-dd0f-4bc2-b6c8-c0a87f1a8b02'  --usages-usage 'vm' --data_center-id '02258528-324e-4292-8919-b8c15a40b902' --id '63042a67-2b7c-4e7e-b967-65b55b8e4580' --name 'testrest1' --mtu 0 --stp false


error: type "%s" does not exist.



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

How reproducible:
100%

Steps to Reproduce:
1.see above
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 2 Barak Dagan 2013-04-09 09:01:00 UTC
*** Bug 949884 has been marked as a duplicate of this bug. ***

Comment 3 Barak Dagan 2013-05-08 13:57:40 UTC
is the new message should be:

error: 
status: 500
reason: Internal Server Error
detail: JBWEB000065: HTTP Status 500 - java.lang.NullPointerException  ?

Comment 4 Ravi Nori 2013-05-08 14:40:05 UTC
This looks like a new bug in the engine/api code

I am looking at the stacktrace, looks like VdcReturnValueBase.getActionReturnValue is null. Resulting in NPE on API

VdcReturnValueBase.setActionReturnValue is not being called for AttachNetworkToVdsGroupCommand in the engine code.

Comment 5 Barak Dagan 2013-05-20 09:45:40 UTC
Verified on SF17

backend version: 3.2
sdk version    : 3.2.0.11
cli version    : 3.2.0.9
python version : 2.6.6.final.0

[RHEVM shell (connected)]# add network --data_center-id '4ff89715-2ced-4982-814a-39704e79063c' --name 'test22'

id            : 878cb294-efca-4ec4-b872-58eeb2b8685c
name          : test22
data_center-id: 4ff89715-2ced-4982-814a-39704e79063c
mtu           : 0
stp           : False
usages-usage  : vm



[RHEVM shell (connected)]# add network --cluster-identifier 'f55fee84-dd0f-4bc2-b6c8-c0a87f1a8b02' --name 'test22' --foo-bar


error: "foo" is invalid argument segment.

Comment 6 Itamar Heim 2013-06-11 08:31:10 UTC
3.2 has been released

Comment 7 Itamar Heim 2013-06-11 08:31:19 UTC
3.2 has been released

Comment 8 Itamar Heim 2013-06-11 08:32:52 UTC
3.2 has been released


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