Bug 865093
Summary: | ovirt-engine-restpai : 500 error when trying to create large VM pool using RHEVM shell | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Oded Ramraz <oramraz> | ||||
Component: | ovirt-engine-restapi | Assignee: | Michael Pasternak <mpastern> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Oded Ramraz <oramraz> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 3.1.0 | CC: | bazulay, dyasny, ecohen, iheim, juan.hernandez, michal.skrivanek, mpastern, Rhev-m-bugs, sgrinber, ykaul | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | virt | ||||||
Fixed In Version: | s122 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2012-12-04 19:59:07 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Oded Ramraz
2012-10-10 19:43:03 UTC
Created attachment 625125 [details]
server log
This is not rhevm-shell bug, nor api's, this is very same issue as in [1], Itamar, i believe we should define how many vms we support creating at once. [1] https://bugzilla.redhat.com/show_bug.cgi?id=845832 https://bugzilla.redhat.com/show_bug.cgi?id=818084 https://bugzilla.redhat.com/show_bug.cgi?id=853045 The VM pool was created properly after this error , with this message : "VM Pool pool ( containing 200 VMs ) was created by admin@internal" , so I wasn't sure if it is related to Rest / Engine. And another event: "VM pool creation has been completed" (In reply to comment #3) > The VM pool was created properly after this error , with this message : "VM > Pool pool ( containing 200 VMs ) was created by admin@internal" , so I > wasn't sure if it is related to Rest / Engine. (In reply to comment #3) > The VM pool was created properly after this error , with this message : "VM > Pool pool ( containing 200 VMs ) was created by admin@internal" , so I > wasn't sure if it is related to Rest / Engine. the problem is between api & tomcat, - apache TTL expired while waiting for the engine action accomplishment. raising TTL again is only fire fighting, as i mentioned before we can easily face this again in some other scenario, we really should be pushing to "truly" async action impl. in the engine. BTW currently the maximum VM's number in pool is according to the number of free MAC addresses: [RHEVM shell (connected)]# add vmpool --name pool --template-id 3d5f82c2-8ef4-436b-a43e-c6367a126791 --size 300 --cluster-id 99408929-82cf-4dc7-a532-9d998063fa95 error: status: 400 reason: Bad Request detail: Not enough MAC addresses left in MAC Address Pool. interesting to see the results post the fix to bug 853045 einav - don't we have a limit to max number of vms in pool? either way, since this is actually working fine despite the error message, seems to me we can push it out of 3.1, Oded? The problem is that since it is a synchronous operation , if you implement a script which create a VM pool and then do something with it you will not have the indication when the pool creation is done, since the error occurs quite early ( and VM pool creation might take quite a few minutes ). (In reply to comment #9) > either way, since this is actually working fine despite the error message, > seems to me we can push it out of 3.1, Oded? by Barak: Per decision to increase timeout on BZ 853045 to 1 hour, The above phenomena should not happen. Moving to ON_QA just for verification. si24.1: managed to create 200 VM's pool using CLI. [RHEVM shell (connected)]# add vmpool --template-id d44374a8-92aa-45d7-bf28-2d9dc5cb31ba --size 200 --cluster-id 99408929-82cf-4dc7-a532-9d998063fa95 --name oded id : 775f9c82-2d03-11e2-ac3d-8b52998f4c71 name : oded cluster-id : 99408929-82cf-4dc7-a532-9d998063fa95 prestarted_vms: 0 size : 200 template-id : d44374a8-92aa-45d7-bf28-2d9dc5cb31ba |