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

Bug 1406337

Summary: [REST-API] set 'migratable' not working
Product: [oVirt] ovirt-engine Reporter: Meni Yakove <myakove>
Component: BLL.NetworkAssignee: Martin Mucha <mmucha>
Status: CLOSED CURRENTRELEASE QA Contact: Meni Yakove <myakove>
Severity: urgent Docs Contact:
Priority: high    
Version: 4.1.0CC: bugs, gklein, mmucha
Target Milestone: ovirt-4.1.0-betaFlags: rule-engine: ovirt-4.1+
gklein: blocker+
Target Release: 4.1.0.2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
bug fix; due to error (but in new feature of 4.1) migratable flag was accepted only along with passthrough flag (which is also new in 4.1)
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-01 14:56:54 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 Meni Yakove 2016-12-20 10:06:19 UTC
Description of problem:
PUT /ovirt-engine/api/vnicprofiles/<vnic_profile_id>

<vnic_profile>
    <migratable>true</migratable>
</vnic_profile>

From engine log:
2016-12-20 11:59:09,798+02 INFO  [org.ovirt.engine.core.bll.network.vm.UpdateVnicProfileCommand] (default task-1) [4c6ac292-18f6-420c-8aa1-c917d4eb34fd] Running command: UpdateVnicProfileCommand internal: false. Entities affected :  ID: b505578a-786a-4c19-8f0f-942cc7d560ad Type: VnicProfileAction group CONFIGURE_NETWORK_VNIC_PROFILE with role type ADMIN
2016-12-20 11:59:09,825+02 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-1) [4c6ac292-18f6-420c-8aa1-c917d4eb34fd] Correlation ID: 4c6ac292-18f6-420c-8aa1-c917d4eb34fd, Call Stack: null, Custom Event ID: -1, Message: VM network interface profile C1_sriov_mig1 was updated for network C1_sriov_mig1 in Data Center: golden_env_mixed. (User: admin@internal-authz)

From DB:
-[ RECORD 4 ]-----+-------------------------------------
id                | b505578a-786a-4c19-8f0f-942cc7d560ad
name              | C1_sriov_mig1
network_id        | 0839bcf0-7774-4add-b4eb-072086b05e80
port_mirroring    | f
custom_properties | { }
description       | 
_create_date      | 2016-12-20 10:56:51.459684+02
_update_date      | 2016-12-20 11:59:09.800032+02
network_qos_id    | 
passthrough       | t
network_filter_id | 585799a8-0308-022b-024f-0000000002fd
migratable        | f

Get 200 OK from REST but nothing happened.


Version-Release number of selected component (if applicable):
ovirt-engine-4.2.0-0.0.master.20161219225535.git893d571.el7.centos.noarch


Steps to Reproduce:
Update vnic profile
PUT /ovirt-engine/api/vnicprofiles/<vnic_profile_id>

<vnic_profile>
    <migratable>true</migratable>
</vnic_profile>

Comment 1 Meni Yakove 2016-12-25 18:19:16 UTC
ovirt-engine-4.2.0-0.0.master.20161222102709.gitd19246c.el7.centos.noarch