Hi Alona,
El 2017-11-19 08:31, Alona Kaplan escribió:
Hi Nicolas,
There was a bug in oVirt [1] that in some cases a mac pool that
doesn't support duplicate macs could get duplicates.
The bug was (hopefully) fixed.
The error that you see means that you have a mac pool that was
affected by this bug and have duplicate macs although it doesn't
support it.
The second part of the error should contain the list of the duplicate
macs ("Following MACs violates duplicity restriction, and was pushed
into MAC pool without respect to it:").
Indeed, being this message:
engine.log-20171117.gz:2017-11-16 10:34:55,373Z ERROR
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
(ServerService Thread Pool -- 52) [] EVENT_ID:
MAC_ADDRESS_VIOLATES_NO_DUPLICATES_SETTING(10,917), Following MACs
violates duplicity restriction, and was pushed into MAC pool without
respect to it:[00:1a:4a:97:5f:16, 00:1a:4a:97:5f:05, 00:1a:4a:97:5f:1d,
00:1a:4a:97:5f:07, 00:1a:4a:97:5f:0f, 00:1a:4a:4d:cc:1c,
00:1a:4a:97:5f:15, 00:1a:4a:97:5f:0d]
It is just a warning, you can ignore it.
But we advise you to go over the duplicate macs and fix them.
However, recently I made a small script to find duplicate MACs because I
was having an issue with dupe MACs (which BTW you helped me to debug in
BZ [1]). I'm attaching the script just in case something is wrong in it,
but the script shows no dupe MAC addresses currently. Maybe in the past
(before the upgrade) there was dupes with those MAC addresses, but not
now.
The output of the script shows only one machine per MAC address:
00:1a:4a:97:5f:16 ['VM1']
00:1a:4a:97:5f:05 ['VM2']
00:1a:4a:97:5f:1d ['VM3']
00:1a:4a:97:5f:07 ['VM4']
00:1a:4a:97:5f:0f ['VM5']
00:1a:4a:4d:cc:1c ['VM6']
00:1a:4a:97:5f:15 ['VM7']
00:1a:4a:97:5f:0d ['VM8']
Should I file a bug or simply ignore it?
Thanks.
[1]: https://bugzilla.redhat.com/show_bug.cgi?id=1497242
Alona.
[1] https://bugzilla.redhat.com/1485688 [2]
On Fri, Nov 17, 2017 at 4:54 PM, <nico...@devels.es> wrote:
Hi,
We just upgraded from 4.1.6 to 4.1.7 and just after the engine was
brought back the following event showed up:
Duplicate MAC addresses had to be introduced into mac pool
violating no duplicates setting.
Can someone explain why is that?
Thanks.
Nicolás
_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users [1]
Links:
------
[1] http://lists.ovirt.org/mailman/listinfo/users
[2] https://bugzilla.redhat.com/1485688
#!/usr/bin/env python
from sys import path
import os.path
from sys import exit
from ovirtsdk4 import Connection, types
from scriptsparams import URI, USERNAME, PASSWORD, CERTPATH
conn = Connection(
url=URI,
username=USERNAME,
password=PASSWORD,
ca_file=CERTPATH
)
if not conn.test(raise_exception=False):
print "ERROR: Cannot connect. Is engine up? Are credentials ok?"
exit(1)
vms_macs = {}
sys_serv = conn.system_service()
vms_serv = sys_serv.vms_service()
macs = []
for vm in vms_serv.list():
nics = conn.follow_link(vm.nics)
for nic in nics:
if nic.mac.address in vms_macs:
vms_macs[nic.mac.address].append(vm.name)
else:
vms_macs[nic.mac.address] = [vm.name]
macs.append(nic.mac.address)
print '00:1a:4a:97:5f:16', vms_macs['00:1a:4a:97:5f:16']
print '00:1a:4a:97:5f:05', vms_macs['00:1a:4a:97:5f:05']
print '00:1a:4a:97:5f:1d', vms_macs['00:1a:4a:97:5f:1d']
print '00:1a:4a:97:5f:07', vms_macs['00:1a:4a:97:5f:07']
print '00:1a:4a:97:5f:0f', vms_macs['00:1a:4a:97:5f:0f']
print '00:1a:4a:4d:cc:1c', vms_macs['00:1a:4a:4d:cc:1c']
print '00:1a:4a:97:5f:15', vms_macs['00:1a:4a:97:5f:15']
print '00:1a:4a:97:5f:0d', vms_macs['00:1a:4a:97:5f:0d']
_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users