Bug 1406337 - [REST-API] set 'migratable' not working
Summary: [REST-API] set 'migratable' not working
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Network
Version: 4.1.0
Hardware: x86_64
OS: Linux
high
urgent
Target Milestone: ovirt-4.1.0-beta
: 4.1.0.2
Assignee: Martin Mucha
QA Contact: Meni Yakove
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-20 10:06 UTC by Meni Yakove
Modified: 2017-02-01 14:56 UTC (History)
3 users (show)

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)
Clone Of:
Environment:
Last Closed: 2017-02-01 14:56:54 UTC
oVirt Team: Network
Embargoed:
rule-engine: ovirt-4.1+
gklein: blocker+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 68855 0 None None None 2016-12-20 18:22:12 UTC
oVirt gerrit 68856 0 None None None 2016-12-20 18:22:29 UTC

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


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