Giter VIP home page Giter VIP logo

samutev's People

Contributors

digitalkram avatar eliasp avatar rolszewo avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

eliasp

samutev's Issues

Unhandled error on VM creation

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 &&.

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.