Closed ahammond closed 6 years ago
@ahammond how did you generate your certificate. Did you use the instructions here?
@jgartrel can you confirm you followed the above instructions for certificate generation?
Yes, however I set the expiration to 720 days, and the key length to 4096 I think.
openssl req -x509 -nodes -days 730 -newkey rsa:4096 -keyout ./azure.pem.key -out ./azure.pem
openssl x509 -inform pem -in ./azure.pem -outform der -out ./azure.cer
Also tried using 1024bit:
openssl req -x509 -nodes -days 730 -newkey rsa:1024 -keyout ./azure_2.pem.key -out ./azure_2.pem openssl x509 -inform pem -in ./azure_2.pem -outform der -out ./azure_2.cer
No such luck with that either
With the 1024b key:
[DEBUG ] Failed to execute 'azure.list_nodes()' while querying for running nodes: [SSL] PEM lib (_ssl.c:2584)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/cloud/__init__.py", line 2369, in run_parallel_map_providers_query
cloud.clouds[data['fun']]()
File "/usr/lib/python2.7/dist-packages/salt/cloud/clouds/msazure.py", line 222, in list_nodes
nodes = list_nodes_full(conn, call)
File "/usr/lib/python2.7/dist-packages/salt/cloud/clouds/msazure.py", line 243, in list_nodes_full
services = list_hosted_services(conn=conn, call=call)
File "/usr/lib/python2.7/dist-packages/salt/cloud/clouds/msazure.py", line 292, in list_hosted_services
services = conn.list_hosted_services()
File "/usr/local/lib/python2.7/dist-packages/azure/servicemanagement/servicemanagementservice.py", line 316, in list_hosted_services
HostedServices)
File "/usr/local/lib/python2.7/dist-packages/azure/servicemanagement/servicemanagementclient.py", line 365, in _perform_get
response = self.perform_get(path, x_ms_version)
File "/usr/local/lib/python2.7/dist-packages/azure/servicemanagement/servicemanagementclient.py", line 175, in perform_get
response = self._perform_request(request)
File "/usr/local/lib/python2.7/dist-packages/azure/servicemanagement/servicemanagementclient.py", line 337, in _perform_request
resp = self._filter(request)
File "/usr/local/lib/python2.7/dist-packages/azure/servicemanagement/_http/httpclient.py", line 183, in perform_request
self.send_request_body(connection, request.body)
File "/usr/local/lib/python2.7/dist-packages/azure/servicemanagement/_http/httpclient.py", line 142, in send_request_body
connection.send(None)
File "/usr/local/lib/python2.7/dist-packages/azure/servicemanagement/_http/requestsclient.py", line 81, in send
self.response = self.session.request(self.method, self.uri, data=request_body, headers=self.headers, timeout=self.timeout)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 468, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 576, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 447, in send
raise SSLError(e, request=request)
SSLError: [SSL] PEM lib (_ssl.c:2584)
@techhat can I get your input here? Any insight as to why they might be seeing this error?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
Description of Issue/Question
I'm having difficulty getting basic azure connectivity and interaction with salt-cloud.
Setup
/etc/salt/cloud.providers.d/azure.conf
Steps to Reproduce Issue
I've tried using both the azure.pem and the azure.pem.key in the config above since the docs suggest it's supposed to be the public key, but common sense suggests I should be using the private key. Then I run the following command:
Everything looks good until I see the following:
Versions Report
And since that doesn't show anything about the azure modules: