Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 949642

Summary: RHEVM-CLI: unclear error message (error: type "%s" does not exist.) when using unsupported 2 levels attribute.
Product: Red Hat Enterprise Virtualization Manager Reporter: Barak Dagan <bdagan>
Component: ovirt-engine-cliAssignee: Ravi Nori <rnori>
Status: CLOSED CURRENTRELEASE QA Contact: Barak Dagan <bdagan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, dyasny, gcheresh, iheim, mpastern, oramraz, pstehlik, Rhev-m-bugs, sgrinber, ykaul
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: sf14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 960997, 961046, 961352    
Bug Blocks:    

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