ssc-services / samutev Goto Github PK
View Code? Open in Web Editor NEWscript to deploy quickly local test vm's using multipass, as masterless minion test vm's or even joined to a saltstack master test vm
License: MIT License
script to deploy quickly local test vm's using multipass, as masterless minion test vm's or even joined to a saltstack master test vm
License: MIT License
When creating a new VM fails (in this case due to an invalid memory specification), the error isn't properly handled and samutev attempts to continue:
$ samutev.sh -s 'master:c1:m0.5:d3 minion:c1:m0.5:d3'
launching master (master with cpu=1 mem=0.5G disk=3G and image 'focal')
launch failed: Invalid arguments supplied
Invalid memory size value supplied: 0.5G.
exec failed: instance "master" does not exist
exec failed: instance "master" does not exist
mount failed: The following errors occurred:
instance "master" does not exist
mount failed: The following errors occurred:
instance "master" does not exist
exec failed: instance "master" does not exist
mount failed: The following errors occurred:
instance "master" does not exist
exec failed: instance "master" does not exist
mount failed: The following errors occurred:
instance "master" does not exist
exec failed: instance "master" does not exist
info failed: The following errors occurred:
instance "master" does not exist
launched master in 0 minutes and 0 seconds.
info failed: The following errors occurred:
instance "master" does not exist
launching minion (minion with cpu=1 mem=0.5G disk=3G and image 'focal')
launch failed: Invalid arguments supplied
Invalid memory size value supplied: 0.5G.
info failed: The following errors occurred:
instance "minion" does not exist
launched minion in 0 minutes and 0 seconds.
ssh: Could not resolve hostname : Name or service not known
alltogether: 00:00 min.
READY to go:
ssh root@
salt '*' test.ping
This is most likely due to multipass
being launched unconditionally in line 271:
multipass launch --cpus "${CPU}" --disk "${DISK}"G --mem "${MEM}"G --name "${VM}" --cloud-init tmp_cloudinit.$$ "${IMAGE}";
This could be prevented by chaining the abort handling to it using &&
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.