Bug 1491132
| Summary: | Engine assigning MAC addresses which are in use by VMs when creating new VM from template | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [oVirt] ovirt-engine | Reporter: | Michael Burman <mburman> | ||||
| Component: | BLL.Network | Assignee: | Martin Mucha <mmucha> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Michael Burman <mburman> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 4.2.0 | CC: | bugs, myakove | ||||
| Target Milestone: | ovirt-4.2.0 | Keywords: | Regression | ||||
| Target Release: | --- | Flags: | rule-engine:
ovirt-4.2+
rule-engine: blocker+ |
||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: |
Cause: wrong assumption during refactoring mac pools. During engine startup were incorrectly queried VmNics.
Consequence: no macs were registered in mac pool at startup, master branch contained this error for about 5 days tops, it shouldn't cause any serious issues.
Fix:
During engine startup are VmNics queried correctly now.
Result: VmNics are queried and registered in mac pool correctly now.
|
Story Points: | --- | ||||
| Clone Of: | |||||||
| : | 1494916 (view as bug list) | Environment: | |||||
| Last Closed: | 2017-12-20 11:30:44 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: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1494916 | ||||||
| Attachments: |
|
||||||
|
Description
Michael Burman
2017-09-13 07:28:48 UTC
Created attachment 1325250 [details]
engine log
This bug report has Keywords: Regression or TestBlocker. Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP. Also when creating a new VM (not from a template) add vNIC failed with MAC already in use. Thanks for finding this, code relied on vm interfaces being set after VM being obtained from DB, which is not happening. In such case, extra DB call has to be made to fetch VM nics. I overlook that and unit tests did not reveal this, because read from DB is mocked. Sorry about that. (In reply to Martin Mucha from comment #4) > Thanks for finding this, code relied on vm interfaces being set after VM > being obtained from DB, which is not happening. In such case, extra DB > call has to be made to fetch VM nics. I overlook that and unit tests did not > reveal this, because read from DB is mocked. Sorry about that. so to put it more clearly, this error means, that *no* macs are discovered and registered on startup, every used mac is thus considered as unused. Patch has already +2, so it will be merged very soon. Verified on - 4.2.0-0.0.master.20170917124606.gita804ef7.el7.centos This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017. Since the problem described in this bug report should be resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report. |