-
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 azure provider could not be loaded #27980
Comments
Hi @rayba. Could you please post the output from |
Python requests version: 1.2.3
|
It looks like on 2015.5.x, if your provider is configured incorrectly, you should be getting:
Yours isn't doing that, so I'm thinking it's a dependency issue. Could you please post the output from Also, which OS are you running? |
OS: Amazon Linux AMI release 2015.09 I'm getting this error:
|
That sounds like the problem: the Azure SDK seems to have a problem. Where did you install it from, and what version? |
I think that's coming from the new Azure SDK. I vaguely remember another issue where the new Azure SDK doesn't have a |
Ah, here it is: #26863 |
So @rayba it sounds like |
Is there any way to use a prior version of the Azure SDK to allow us to complete our POC? By the way very impressed with the Salt community, it's a big part of why we chose Salt over other products.
|
Sorry, should be: |
|
Sorry, try this (for version 0.10.2):
|
I'm getting this error (for 0.10.2) install:
|
Did you |
just did, same error. Thanks. |
I'm getting a similar error.
|
Would it make sense to document this under e.g. https://docs.saltstack.com/en/2015.5/topics/cloud/azure.html until the driver is compatible? Workaround of using pip install azure==0.10.2 is easy enough, but it is not obvious that it is just a versioning issue. |
@mfussenegger Of course! Good call. I'll do that now. |
@mfussenegger I've added a note about this to the docs. Thanks again for the suggestion. Please feel free to add to it, if you'd like. |
Ok, PR #28571 was just submitted to the develop branch to address using azure 1.0.0. Are any of you in a position to give that a try? We'd love some feedback on if this is working or not. Also, since this issue is a duplicate of #27330, I am going to close this issue in favor of the previously filed issue. That way we can keep track of everything in one place. If you find any issues with the azure driver in the develop branch, please let us know on #27330. Thanks everyone! |
@rallytime I think the message in the docs about the version of the azure provider is no longer valid. in 2016.3.1 I had to install azure 1.0.2 in order to get any azure commands to work. This is the first version I have been able to use above 0.11.1. |
@ablinkinz Thanks for letting me know. The |
Awesome! Thanks:
|
I understand there was a period where pyazure 1.0 was not working with salt per saltstack#27980 and seeing as this was resolved with newer versions, the note is no longer relevant.
We have configured both an AWS and Azure provider for a salt-cloud POC.
The AWS provider works but we receive the below error for Azure when running any command such as:
we receive the error:
The cloud driver, 'azure', configured under the 'my-azure-config' cloud provider alias, could not be loaded. Please check your provider configuration files and ensure all required dependencies are installed for the 'azure' driver. In rare cases, this could indicate the 'azure.get_configured_provider()' function could not be found. Removing 'azure' from the available providers list
We are working from the instructions at: https://docs.saltstack.com/en/2015.5/topics/cloud/azure.html and have replaced the subscription_id with our own Azure subscription id. The relevant parts of salt-cloud directory structure under /etc/salt looks like this:
our azure.provider.conf is this:
our azure.profile.conf is this:
We have installed all dependencies (Azure python SDK, OpenSSL) and our python version is 2.7.10.
The text was updated successfully, but these errors were encountered: