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

Bug 1277496

Summary: remove oldest network api (3.0? — preceding existence of setsupnetworks) and internal usage thereof
Product: [oVirt] ovirt-engine Reporter: Martin Mucha <mmucha>
Component: RestAPIAssignee: Martin Mucha <mmucha>
Status: CLOSED CURRENTRELEASE QA Contact: Michael Burman <mburman>
Severity: low Docs Contact:
Priority: medium    
Version: 4.0.0CC: amureini, bugs, danken, mburman, myakove, ylavi
Target Milestone: ovirt-4.0.0-alphaKeywords: Reopened
Target Release: 4.0.0Flags: rule-engine: ovirt-4.0.0+
ylavi: planning_ack+
danken: devel_ack+
myakove: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt 4.0.0 alpha1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-05 07:57:17 UTC 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:

Description Martin Mucha 2015-11-03 13:19:52 UTC
Description of problem:
Currently we support three ways to do certain tasks, for example detaching network, breaking bond etc. The oldest one is quite buggy and it's not worthy to have it in code base if it's not even maintained any more.

Comment 1 Martin Mucha 2015-11-03 13:36:55 UTC

*** This bug has been marked as a duplicate of bug 1277495 ***

Comment 2 Eliraz Levi 2015-11-15 14:49:32 UTC
It is still possible to use the old api for attaching network to an interface:
http://<server_address>:8080/ovirt-engine/api/hosts/<host_id>/nics/<interface_id>/attach

with body:
<action>
    <network id="<network_id>"/>
</action>

(also for detach)

(more details in the following link: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.0/html-single/REST_API_Guide/#sect-REST_API_Guide-Hosts-Network_Interfaces-Attach ).

===========================================================================

Please note that the action eventually failed as GetAllChildVlanInterfacesQuery is being called and it's missing a constructor with EngineContext as an argument.

2015-11-15 12:38:10,689 ERROR [org.ovirt.engine.core.bll.network.host.AttachNetworkToVdsInterfaceCommand] (default task-8) [5ee3b8fa] Error during CanDoActionFailure.: javax.ejb.EJBException: java.lang.RuntimeException: java.lang.RuntimeException: could not find matching constructor for Command class class org.ovirt.engine.core.bll.network.host.GetAllChildVlanInterfacesQuery

Comment 3 Red Hat Bugzilla Rules Engine 2015-11-30 22:37:35 UTC
Bug tickets must have version flags set prior to targeting them to a release. Please ask maintainer to set the correct version flags and only then set the target milestone.

Comment 4 Sandro Bonazzola 2016-07-05 07:57:17 UTC
oVirt 4.0.0 has been released, closing current release.