Bug 1056501 - Updating a network on nic via 3.0 api fails
Summary: Updating a network on nic via 3.0 api fails
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-core
Version: 3.4
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 3.4.0
Assignee: Moti Asayag
QA Contact: Martin Pavlik
URL:
Whiteboard: network
: 1059222 (view as bug list)
Depends On:
Blocks: 1024889
TreeView+ depends on / blocked
 
Reported: 2014-01-22 10:32 UTC by Moti Asayag
Modified: 2014-04-01 04:54 UTC (History)
7 users (show)

Fixed In Version: ovirt-3.4.0-beta2
Clone Of:
Environment:
Last Closed: 2014-03-31 12:25:20 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)


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

Description Moti Asayag 2014-01-22 10:32:36 UTC
Description of problem:
Updating the network on nic via 3.0 api which uses the former update network on interface command fails to refresh the data with an exception to the engine log.

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


How reproducible:
always

Steps to Reproduce:
1. Send PUT request to 'api/hosts/{host:id}/nics/{nic:id}/

Actual results:
Exception appears in the log:
2014-01-22 12:25:23,677 ERROR [org.ovirt.engine.core.bll.network.host.UpdateNetworkToVdsInterfaceCommand] (http--0.0.0.0-8080-3) [6f337847] Command org.ovirt.engine.core.bll.network.host.UpdateNetworkToVdsInterfaceCommand throw exception: java.lang.NullPointerException
        at org.ovirt.engine.core.bll.VdsHandler.handleVdsResult(VdsHandler.java:115) [bll.jar:]
        at org.ovirt.engine.core.bll.VDSBrokerFrontendImpl.RunVdsCommand(VDSBrokerFrontendImpl.java:33) [bll.jar:]
        at org.ovirt.engine.core.bll.network.host.UpdateNetworkToVdsInterfaceCommand.executeCommand(UpdateNetworkToVdsInterfaceCommand.java:88) [bll.jar:]

...

The changed data doesn't preserves and the action eventually fails.


Expected results:
The update should succeed.

Additional info:

Comment 1 Moti Asayag 2014-01-29 13:37:21 UTC
*** Bug 1059222 has been marked as a duplicate of this bug. ***

Comment 2 Martin Pavlik 2014-02-17 16:15:35 UTC
verified on  oVirt Engine Version: 3.4.0-0.7.beta2.el6 

2014-02-17 17:03:42,595 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.EditNetworkVDSCommand] (ajp--127.0.0.1-8702-13) [2d7318ef] START, EditNetworkVDSCommand(HostName = dell-07, HostId = 2e7cf93e-3ccf-4b17-8476-96c5684bd3fa, networkName=NET1, oldNetworkName=NET1, hostAddr=10.34.63.100, checkConnectivity=false, connectionTimeout=120, vlanId=null, bondName=null, nics=[em2], inetAddr=10.34.67.4, networkMask=255.255.255.254, gateway=, stp=false, bondingOptions=null, bootProtocol=STATIC_IP, vmNetwork=false, network=null), log id: 6ad9f75f
2014-02-17 17:03:45,363 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.EditNetworkVDSCommand] (ajp--127.0.0.1-8702-13) [2d7318ef] FINISH, EditNetworkVDSCommand, log id: 6ad9f75f
2014-02-17 17:03:45,459 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (ajp--127.0.0.1-8702-13) [2d7318ef] Correlation ID: 2d7318ef, Job ID: 2103a9c4-1044-4726-8852-098d66e1235c, Call Stack: null, Custom Event ID: -1, Message: Attach network: NET1 to Host: dell-07 by admin.

Comment 3 Sandro Bonazzola 2014-03-31 12:25:20 UTC
this is an automated message: moving to Closed CURRENT RELEASE since oVirt 3.4.0 has been released


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