Comments (3)
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 JinReply to this email directly or view it on GitHubhttps://github.com//issues/140
.
from knife-azure.
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.
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)
- Master is broken for any azurerm server create operations that involve virtual networks
- `--delete-resource-group` works, but exits as failed HOT 1
- knife-azure does not work with latest chefdk (2.3.1). gem collision error HOT 1
- Unable to execute chef cookbooks in azure RM VM HOT 7
- knife azurerm command returns "azure: not recognized as an internal or external command" HOT 10
- Azure VM not created on using knife azurerm server create command HOT 5
- IniFile::Error HOT 6
- Creating VM using custom azure images HOT 5
- unable to use existing storage account / Vnet while creating new VM HOT 3
- azure_mgmt_resources conflict HOT 3
- Validatorless boostrap fails with error for knife azurerem server create.
- Not able to create VM with Standard_F2 size
- azure_mgmt_resources and azure_mgmt_network conflict errors HOT 2
- Improper error handling, always displays "Something went wrong". HOT 1
- --bootstrap-version is not working HOT 1
- Dependabot can't parse your Gemfile
- Azure VM not created on using knife azurerm server create command HOT 4
- Update the default platform versions to supported releases
- Move to the latest azure profile instead of 2018 API release
- Remove the legacy knife azure commands
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from knife-azure.