mirror of
https://github.com/proxmoxer/proxmoxer.git
synced 2026-04-25 07:06:00 +03:00
[GH-ISSUE #111] ConnectTimeout: HTTPSConnectionPool #56
Labels
No labels
backend:https
backend:local
backend:openssh
backend:ssh_paramiko
pull-request
status:ansible-issue
status:help-wanted
status:info-needed
status:proxmox-issue
status:review-needed
type:bug 🐞
type:dependency ⛓️
type:docs 📝
type:enhancement ⏫
type:maintenance 🛠️
type:meta
type:question ❓
type:request ✋
type:testing 🧪
version:1.x
version:latest
version:py2
version:py3
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmoxer#56
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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
backendargument (see the docs). If the HTTPS backend will work for you, you just need to addverify_ssl = Falseto where you are creating the ProxmoxAPI object (docs).As for as specifically how to configure Ansible, I have no idea.
@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
backendorverify_ssloptions.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 :
I thought doing :
pip install proxmoxer requests openssh_wrapper paramikowas 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.
@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
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.
@jhollowe commented on GitHub (Oct 4, 2022):
please repoen if you are still having issues with proxmoxer.