Created attachment 777665 [details] rhevm logs Description of problem: [rhevm] - Network - Error in engine when creating new VM (MAC_POOL_NOT_INITIALIZED - code 5011) I Try to use rhevm-sdk to create VM but failed, Later on I could not create VMs via webadmin - Error in engine when creating new VM - MAC_POOL_NOT_INITIALIZED (Failed with VDSM error MAC_POOL_NOT_INITIALIZED a nd code 5011) Version-Release number of selected component (if applicable): 3.3/is6 How reproducible: always Steps to Reproduce: 1.Install rhevm+dwh+reports 2.Create new vm using rhevm-sdk script (create new vm using python) 3.Create new VM via webadmin & examine the logs Actual results: Gets Error with insufficient info, Gets error in engine.log - MAC_POOL_NOT_INITIALIZED - code 5011 - Error while executing action: aaaaa: General command validation failure. Expected results: Should allow creation of VMs Additional info: Using rhevm-sdk 4.12. Example: Creating a Virtual Machine using Python ----------------- http://documentation-devel.engineering.redhat.com/docs/en-US/Red_Hat_Enterprise_Virtualization/3.3/html/Developer_Guide/index.html My MacPoolRange is 00:1A:4A:23:A1:00-00:1A:4A:23:A1:FF
Created attachment 777668 [details] python script
Created attachment 777669 [details] engine
he engine.log contains: 2013-07-21 11:30:47,386 INFO [org.ovirt.engine.core.bll.network.MacPoolManager] (pool-4-thread-1) Start initializing MacPoolManager 2013-07-21 11:30:47,435 INFO [org.ovirt.engine.core.bll.InitBackendServicesOnStartupBean] (ServerService Thread Pool -- 40) Init VM custom properties utilities 2013-07-21 11:30:47,452 INFO [org.ovirt.engine.core.bll.network.MacPoolManager] (pool-4-thread-1) Finished initializing MacPoolManager and later on 2013-07-23 12:11:17,419 ERROR [org.ovirt.engine.core.bll.network.MacPoolManager] (ajp-/127.0.0.1:8702-9) The MAC addresses pool is not initialized 2013-07-23 12:11:17,424 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (ajp-/127.0.0.1:8702-9) Correlation ID: null, Call Stack: null, Custom Event ID: -1, Message: Mac Address Pool is not initialized. Failed to get available Macs count.
*** Bug 989403 has been marked as a duplicate of this bug. ***
*** Bug 987798 has been marked as a duplicate of this bug. ***
could this be something similar to http://gerrit.ovirt.org/#/c/18655/?
(In reply to Itamar Heim from comment #6) > could this be something similar to http://gerrit.ovirt.org/#/c/18655/? Doesn't seem so - the MacPoolManager class seems well constructed, and uses a ReentrantReadWriteLock to protect the initialize() method. The instance is initialized inline, i.e., during the classloading, where its protected by the classloader's lock.
(In reply to Allon Mureinik from comment #7) > (In reply to Itamar Heim from comment #6) > > could this be something similar to http://gerrit.ovirt.org/#/c/18655/? > Doesn't seem so - the MacPoolManager class seems well constructed, and uses > a ReentrantReadWriteLock to protect the initialize() method. > The instance is initialized inline, i.e., during the classloading, where its > protected by the classloader's lock. In addition, the log indicates that the mac address pool manager was successfully initialized prior to the request from the client. We'd might suspect that the 'create vm' flow might have use a different instance of the mac pool manager due to some classloading issue - so we'd like to add the instance id of the mac pool manager during its creation to the log and to compare it to the instance id of the mac pool manager when it fails due to this reason. I'm not convinced this issue is reproducible always, else any installation weren't capable to create a vm or to add a nic to it.
The bug doesn't reproduce for me on upstream latest version. As stated on comment #8, a patch was merged to improve the logs of the MAC pool manager mechanism. Please try to reproduce with the patch and if the issue reproduces please attach updated engine.log
Trying to reproduce on is12, 1. In order to recreate the ENV I need dwh, I Cannot install dwh (waiting on Ack from Alex L) 2. Cannot work the sdk api, need assistance, who should I ask ?
works in is14, after adding VM using attached python script, I can add another VM via GUI just fine
Closing - RHEV 3.3 Released
Reopening after GIS (GSS lab) have reported an instance of this, logs to follow.
(In reply to Lee Yarwood from comment #15) > Reopening after GIS (GSS lab) have reported an instance of this, logs to > follow. Could you also provide the output of the mac pool ranges: engine-config -g MacPoolRanges engine-config -g MaxMacsCountInPool
(In reply to Lee Yarwood from comment #15) > Reopening after GIS (GSS lab) have reported an instance of this, logs to > follow. Closing again, this was actually BZ#1056803, workaround from the solution attached to that bug applied and working. Apologies for the noise all!