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:
*** Bug 949884 has been marked as a duplicate of this bug. ***
is the new message should be: error: status: 500 reason: Internal Server Error detail: JBWEB000065: HTTP Status 500 - java.lang.NullPointerException ?
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.
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.
3.2 has been released