virt - error handling bogus if machine image location is wrong #23148
Labels
Bug
broken, incorrect, or confusing behavior
fixed-pls-verify
fix is linked, bug author to confirm fix
P4
Priority 4
RIoT
Relates to integration with cloud providers, hypervisors, API-based services, etc.
Salt-Cloud
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
modules/virt.py and then runners/virt.py have the issue that if you give an invalid image location, they do not fail/complain as they should.
Assume you run a command like below, where it is [hopefully] clear that the image location is wrong:
Of course, no vm is created.
Salt version (master and minion): 2014.7.5; on openSuse.
Issue seems to come from modules/virt.py not saying anything about the error (if you use it inside a state, you'll get the state failed but without any other information), and runners/virt.py which does not look very well at the returned data.
I'll try to do a pull request for a fix soon.
The text was updated successfully, but these errors were encountered: