-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
salt-cloud 2015.5.0: missing azure dependency results in misleading error #24969
Comments
@bradthurber Yeah, I think we can definitely be more helpful here. Thanks for the report. |
Ok, so after thinking about this a little more, this isn't going to be as simple as I thought. The problem is that if we put something helpful in the The other problem is that if you can't get past the virtual function (which is actually what is happening when you hit that error), then you can't make sure the Python Azure SDK is installed when you call azure-specific functions. Therefore, the only place to put information like this is in the documentation. However, to be fair, that error message is completely non-helpful. I'm looking into potentially providing a more helpful message there. I have been thrown by the |
This error also is displayed if one or more of the required cloud provider parameters is missing - or heaven-forbid - it is there but spelled incorrectly! As an example, the Azure provider requires a So in the "more helpful message" it looks like we need to point out at least 3 possible problems for the user to hunt down:
|
@bradthurber So the only thing we'll be able to do here is change the error message to something a little more helpful. However, concerning your other points, we do have some other checks in place that are a little more helpful.
Note that I don't have anything specified for the parallels provider. (The original confusing error in question only happens if the provider specified has something configured in a provider file.)
Note that the original confusing error in question is still hit. However, if you read up a bit, the very first warning tells you exactly what you're missing (or have misspelled). |
@bradthurber Can you take a look at how I've changed the error in the pull request above? I think that will still cover most general cases, but provide a more realistic starting point to help trouble-shoot. |
@rallytime the new wording in #24999 is much better. |
Thanks @bradthurber! Since this is a little more clear now, I'll close this. |
When using salt-cloud with Azure, if one forgets to install the required dependency Microsoft Azure for Python utils (pip install azure), they will receive the following misleading error
This had me chasing all over the place for an azure.py file (which doesn't exist - as it is named msazure.py and aliased). Even when I found it, I was still confused as get_configured_provider() CAN be found in the source. I simply missed the dependency in the instructions.
Would it be possible to put in a more meaningful error message when it doesn't find the azure dependency?
The text was updated successfully, but these errors were encountered: