Bug 961046
Summary: | RHEVM-ENGINE: AttachNetworkToVdsGroupCommand: Error - JBWEB000065: HTTP Status 500 - java.lang.NullPointerException | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Barak Dagan <bdagan> | |
Component: | ovirt-engine-restapi | Assignee: | lpeer <lpeer> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Elena <edolinin> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 3.2.0 | CC: | acathrow, bazulay, dyasny, hateya, iheim, lpeer, masayag, mpastern, myakove, oramraz, pstehlik, Rhev-m-bugs, rnori, sgrinber, srevivo, yeylon, ykaul | |
Target Milestone: | --- | Keywords: | Regression | |
Target Release: | 3.2.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | network | |||
Fixed In Version: | sf17 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 961352 (view as bug list) | Environment: | ||
Last Closed: | Type: | Bug | ||
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | Network | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 949642 |
Description
Barak Dagan
2013-05-08 15:40:39 UTC
Barak, please always attach logs (cli+engine) when reporting such bugs. The above bug description contains 2 different issues: 1 - AttachNetworkToVdsGroupCommand - command does not return a value which causes the exception. 2 - ImportVmCommand - has NPE when the cli does not specify the target SD. Hence dividing this bug into 2 separate bugs. This Bug will remain at network. The root cause is invalid network name. When an invalid network name is provided to the add command the server throws an internal error rather than sending a bad request response with the appropriate error message. add network --cluster-identifier '99408929-82cf-4dc7-a532-9d998063fa95' --usages-usage 'vm' --data_center-id '5849b030-626e-47cb-ad90-3ce782d831b3' --name 'invalidname' --mtu 0 --stp false --id '00000000-0000-0000-0000-000000000009' The implemented behaviour is as follow: If only the network id or only the network name are provided (but not both) and the network doesn't exists - error 404 (object not found) is returned. If both network's id and name are provided, but there is no match between the name to the id, error 400 (bad request) is returned. 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 3.2 has been released 3.2 has been released 3.2 has been released 3.2 has been released |