Bug 1277496 - remove oldest network api (3.0? — preceding existence of setsupnetworks) and internal usage thereof
Summary: remove oldest network api (3.0? — preceding existence of setsupnetworks) and ...
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 4.0.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ovirt-4.0.0-alpha
: 4.0.0
Assignee: Martin Mucha
QA Contact: Michael Burman
Depends On:
TreeView+ depends on / blocked
Reported: 2015-11-03 13:19 UTC by Martin Mucha
Modified: 2016-07-05 07:57 UTC (History)
6 users (show)

Fixed In Version: ovirt 4.0.0 alpha1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2016-07-05 07:57:17 UTC
oVirt Team: Network
rule-engine: ovirt-4.0.0+
ylavi: planning_ack+
danken: devel_ack+
myakove: testing_ack+

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
oVirt gerrit 54989 0 master MERGED core: mark audit log rows of deleted types as deleted 2016-03-23 12:04:35 UTC

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:

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

(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.

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