Bug 1481200 - Cannot update DC name through REST API with MAC pool issue
Summary: Cannot update DC name through REST API with MAC pool issue
Keywords:
Status: CLOSED DUPLICATE of bug 1480238
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: General
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.2.0
: ---
Assignee: Martin Mucha
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-14 11:02 UTC by Petr Matyáš
Modified: 2017-08-15 16:04 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-15 16:04:24 UTC
oVirt Team: Network
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)
engine logs (7.97 MB, application/x-gzip)
2017-08-14 11:02 UTC, Petr Matyáš
no flags Details

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 ***


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