Coder Social home page Coder Social logo

Comments (3)

muktaa avatar muktaa commented on August 25, 2024

Hi,
Yes, all knife server create commands wait for the VM to be created. This
is so implemented to check the status of the server create. Moreover, if
the server create fails in creating the server, the azure knife plugin
deletes the components created, eg- hosted service, storage.
You can run the "knife azure server create" command in background. You can
consider writing a script to create multiple VMs.
You can also consider using Spiceweasel:
https://github.com/mattray/spiceweasel#bulk-node-creation

Thanks,
Mukta.

On Mon, Feb 24, 2014 at 8:19 PM, bluesky8640 [email protected]:

Dear all,

I use 'knife azure' to manage my azure infrastructure. But I found 'knife
azure server create' was a synchronous request, which means I must wait for
one VM's creation completed to create a next VM.

Does 'knife azure server create' support asynchronous request? I want to
send multiple 'knife azure server create' request at the same time to
create VMs simultaneously.

Thanks,
Chao Jin

Reply to this email directly or view it on GitHubhttps://github.com//issues/140
.

from knife-azure.

bluesky8640 avatar bluesky8640 commented on August 25, 2024

To muktaa,

Thanks for your reply.

I did have used spiceweasel. Spiceweasel can batch loading azure infrastructures from a JSON or YAML file, but It still needs to wait for one VM's creation to create a next VM.

I had tried the command 'parallel' for bulk-node-creation. But an error message appeared below:
" FATAL: Unable to create role:ConflictError : Windows Azure is currently performing an operation with x-ms-requestid 3b0a1e281a2e7b04b9d99edd8c6ca121 on this deployment that requires exclusive access.
ERROR: Failed to create the server -- exception being rescued: exception class/object expected "

I also tried to create one VM in background, and then tried to create another VM, but the same error message showed. I thought it may because chef-server only allows one VM to be created at the a time.

Are there any other approaches can solve this problem? I just hope to fast deploy multiple VMs.

Thanks,
Chao Jin

from knife-azure.

adamedx avatar adamedx commented on August 25, 2024

For asynchronous requests, try using the --bootstrap-protocol cloudapi option or the new knife azurerm server create available on the master branch. ARM commands will get around some limitations in the older API with concurrent requests.

from knife-azure.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.