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

Bug 1481200

Summary: Cannot update DC name through REST API with MAC pool issue
Product: [oVirt] ovirt-engine Reporter: Petr Matyáš <pmatyas>
Component: GeneralAssignee: Martin Mucha <mmucha>
Status: CLOSED DUPLICATE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 4.2.0CC: bugs, danken, mmucha, mperina
Target Milestone: ovirt-4.2.0Flags: rule-engine: ovirt-4.2+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-15 16:04:24 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:
Attachments:
Description Flags
engine logs none

Description Petr Matyáš 2017-08-14 11:02:14 UTC
Created attachment 1313044 [details]
engine logs

Description of problem:
When trying to update DC name (and description) through REST API there is an error about MAC pool, but there is no need for MACs to change or migrate or anything, so this error should not be shown.

Also there are some variables that are not extended with values.

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

How reproducible:
always

Steps to Reproduce:
1.2017-08-13 15:18:48,562 - MainThread - datacenters - DEBUG - PUT request content is --  url:/ovirt-engine/api/datacenters/$dc_id body:<data_center>
    <name>golden_env_mixedupdated</name>
    <description>Data Center Description</description>
</data_center>

Actual results:
2017-08-13 15:18:48,633 - MainThread - api_utils - ERROR - Failed to update element NOT as expected:
	Status: 409
	Reason: Conflict
	Detail: [Cannot migrate MACs to another MAC pool, because that action would create duplicates in target MAC pool, which are not allowed. Problematic MACs are ${ACTION_TYPE_FAILED_CANNOT_MIGRATE_MACS_DUE_TO_DUPLICATES_LIST}, $action type failed cannot migrate macs due to duplicates list 	00:1a:4a:16:88:ca,
	00:1a:4a:16:88:cb,
	00:1a:4a:16:88:c9,
	00:1a:4a:16:88:cc,
	00:1a:4a:16:88:cd,
	...]

Expected results:
updated dc name (and description)

Additional info:

Comment 1 Dan Kenigsberg 2017-08-14 13:23:40 UTC
Martin, is that a dup of bug 1480238 ?
If so, please close it.

Comment 2 Martin Mucha 2017-08-15 16:04:24 UTC

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