cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

Cloudstack API: concurrent virtual machine requests lead to variety of problems

Open dubauski opened this issue 7 years ago • 4 comments

ISSUE TYPE
  • Bug Report
COMPONENT NAME

API

CLOUDSTACK VERSION

4.9.2.0

CONFIGURATION

N/A

OS / ENVIRONMENT

N/A

SUMMARY

When requesting multiple virtual machines (via deployVirtualMachine REST method) using CloudStack API leads to various failures:

  • 431 server response
  • duplicate private addresses assigned (intermittently)
STEPS TO REPRODUCE
  1. Create VPC
  2. Create guest network
  3. using deployVirtualMachine REST method request a virtual machine to be created in the guest network
  4. without waiting for completion repeat step 3 for 20 other virtual machines. This step is performed in a parallel fashion: i.e. requests for new vms are issues from parallel threads (not sequentially)
EXPECTED RESULTS

All of the requested virtual machines created successfully

ACTUAL RESULTS

Error: Server returned HTTP response code: 431 for URL: http://:8080/client/api/?apikey=xxxx&command=deployVirtualMachine&name=st2e03-oooodb01&networkids=&response=json&serviceofferingid=&templateid=&zoneid=&signature=

dubauski avatar Dec 19 '18 02:12 dubauski

Can you try using 4.11.2.0?

yadvr avatar Dec 20 '18 13:12 yadvr

@rhtyd http://docs.cloudstack.apache.org/projects/cloudstack-release-notes/en/4.11.2.0/ link is broken. Did concurrency bugs specifically get addressed in this release?

Is concurrent virtual machine creation supported by CloudStack?

dubauski avatar Jan 04 '19 18:01 dubauski

Dupes: https://github.com/apache/cloudstack/issues/3025 Will try to fix towards 3025

yadvr avatar Jun 28 '19 07:06 yadvr

@dubauski release notes are here: http://docs.cloudstack.apache.org/en/4.11.2.0/releasenotes/index.html

yadvr avatar Jun 28 '19 07:06 yadvr