Itamar Heim has submitted this change and it was merged.
Change subject: engine: Initialize MAC pool partially
......................................................................
engine: Initialize MAC pool partially
If MAC pool exceeds the maximum then we will initialize it until its
full. An error is being written to the log in this case.
The partial initialization will prevent an OOM in case of a really big
range (not entirely though, this will be fixed in the future).
Change-Id: I0547509eb81a51599e2342503c9f108df1fa47c7
Bug-Url:
https://bugzilla.redhat.com/1065011
Signed-off-by: Mike Kolesnik <mkolesni(a)redhat.com>
(cherry picked from commit ee37b7289f9d1a6c2b803a3650995c4127876131)
---
M
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/MacPoolManager.java
M
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/MacAddressRangeUtils.java
2 files changed, 14 insertions(+), 10 deletions(-)
Approvals:
Mike Kolesnik: Verified
Moti Asayag: Looks good to me, approved
--
To view, visit
http://gerrit.ovirt.org/24531
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I0547509eb81a51599e2342503c9f108df1fa47c7
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.3
Gerrit-Owner: Mike Kolesnik <mkolesni(a)redhat.com>
Gerrit-Reviewer: Itamar Heim <iheim(a)redhat.com>
Gerrit-Reviewer: Mike Kolesnik <mkolesni(a)redhat.com>
Gerrit-Reviewer: Moti Asayag <masayag(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server