[GH-ISSUE #111] ConnectTimeout: HTTPSConnectionPool #56

Closed
opened 2026-02-27 15:46:12 +03:00 by kerem · 4 comments
Owner

Originally created by @Denyreal on GitHub (Sep 18, 2022).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/111

Hi

Thank you for writing proxmoxer it will make my life easier.

As a noob with ansible and modules i don't get how to setup this module to disable ssl verification :

Then i got this kind of error :

The error was: requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='curiosity', port=8006): Max retries exceeded with url: /api2/json/access/ticket (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f21f8f679d0>, 'Connection to curiosity timed out. (connect timeout=5)'))

I see we can setup : 'verify_ssl=False' or chane the backend for openssh but as a complete novice i got no idea in which file i need to write the setting.

Can someone give me a hint please ?

Thanks you in advance.

Originally created by @Denyreal on GitHub (Sep 18, 2022). Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/111 Hi Thank you for writing proxmoxer it will make my life easier. **As a noob with ansible and modules** i don't get how to setup this module to disable ssl verification : Then i got this kind of error : ` The error was: requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='curiosity', port=8006): Max retries exceeded with url: /api2/json/access/ticket (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f21f8f679d0>, 'Connection to curiosity timed out. (connect timeout=5)'))` I see we can setup : 'verify_ssl=False' or chane the backend for openssh but **as a complete novice** i got no idea in which file i need to write the setting. Can someone give me a hint please ? Thanks you in advance.
Author
Owner

@jhollowe commented on GitHub (Sep 18, 2022):

So that error is from using the (default) HTTPS backend. If you are wanting to SSH, you will use the backend argument (see the docs). If the HTTPS backend will work for you, you just need to add verify_ssl = False to where you are creating the ProxmoxAPI object (docs).

As for as specifically how to configure Ansible, I have no idea.

<!-- gh-comment-id:1250392070 --> @jhollowe commented on GitHub (Sep 18, 2022): So that error is from using the (default) HTTPS backend. If you are wanting to SSH, you will use the `backend` argument (see [the docs](https://proxmoxer.github.io/docs/1.2/basic_usage/#switching-services-or-backends)). If the HTTPS backend will work for you, you just need to add `verify_ssl = False` to where you are creating the ProxmoxAPI object ([docs](https://proxmoxer.github.io/docs/1.2/basic_usage/#importing-and-creating-an-instance)). As for as specifically how to configure Ansible, I have no idea.
Author
Owner

@Denyreal commented on GitHub (Sep 19, 2022):

Thank you @jhollowe for your help.

The thing is i have no idea where i should put the backend or verify_ssl options.

Is it an environment variable or should i edit a .py whithin the module itself (on the ansible controller) and execute it ?

i don't understand this :

To use Proxmoxer, the library must be imported and a ProxmoxerAPI instance created. This instance takes care of all the authentication, abstraction, and de-serialization of the API calls.

I thought doing :
pip install proxmoxer requests openssh_wrapper paramiko

was ok and i just needed to add some env variables.

I need eli5 how to set this up.
i feel like a drunk monkey who want to do real simple ansible playbook to create lxc.

<!-- gh-comment-id:1251319140 --> @Denyreal commented on GitHub (Sep 19, 2022): Thank you @jhollowe for your help. The thing is i have no idea where i should put the `backend` or `verify_ssl` options. Is it an environment variable or should i edit a .py whithin the module itself (on the ansible controller) and execute it ? i don't understand this : > To use Proxmoxer, the library must be imported and a ProxmoxerAPI instance created. This instance takes care of all the authentication, abstraction, and de-serialization of the API calls. I thought doing : `pip install proxmoxer requests openssh_wrapper paramiko` was ok and i just needed to add some env variables. I need eli5 how to set this up. i feel like a drunk monkey who want to do real simple ansible playbook to create lxc.
Author
Owner

@jhollowe commented on GitHub (Sep 29, 2022):

All the instructions in the docs are for directly using proxmoxer. Since you are using Ansible, you will need to look at what parameters and configuration is supported by it.

I believe this is the Ansible documentation for the proxmox module

I thought doing :
pip install proxmoxer requests openssh_wrapper paramiko

was ok and i just needed to add some env variables.

yeah, that is all that needs to be installed with PIP. What that section is talking about (and probably could stand to be worded better) is that when you are directly using proxmoxer in Python, you have to import the proxmoxer library and then create a ProxmoxerAPI object using the credentials and configuration that you want.

<!-- gh-comment-id:1262297115 --> @jhollowe commented on GitHub (Sep 29, 2022): All the instructions in the docs are for directly using proxmoxer. Since you are using Ansible, you will need to look at what parameters and configuration is supported by it. I believe [this is the Ansible documentation for the proxmox module](https://docs.ansible.com/ansible/latest/collections/community/general/proxmox_module.html) > I thought doing : > `pip install proxmoxer requests openssh_wrapper paramiko` >was ok and i just needed to add some env variables. yeah, that is all that needs to be installed with PIP. What that section is talking about (and probably could stand to be worded better) is that when you are directly using proxmoxer in Python, you have to import the proxmoxer library and then create a ProxmoxerAPI object using the credentials and configuration that you want.
Author
Owner

@jhollowe commented on GitHub (Oct 4, 2022):

please repoen if you are still having issues with proxmoxer.

<!-- gh-comment-id:1266318258 --> @jhollowe commented on GitHub (Oct 4, 2022): please repoen if you are still having issues with proxmoxer.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmoxer#56
No description provided.