[SOLVED] Proxmoxer proxmox_kvm ignore urllib3 self-signed cert error?

jdancer

Renowned Member
May 26, 2019
202
55
68
55
I forgot the command-line kung-fu to tell urllib3 to ignore the self-signed certs on the Proxmox hosts. I have the same error as this post https://learn.redhat.com/t5/Automation-Management-Ansible/Ansible-proxmox-kvm-module/td-p/3935

Anyone remember the command-line or environment variable to tell urllib3 to ignore self-signed cert? The error is

"msg": "authorization on proxmox cluster failed with exception: HTTPSConnectionPool(host='192.168.0.11', port=8006):
Max retries exceeded with url: /api2/json/access/ticket (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f0847f2f650>:
Failed to establish a new connection: [Errno 111] Connection refused'

Thanks for the replies!
 
This is fixed.

Was several issues.

First was updating Ansible to latest version to use the Proxmoxer pip module to support the Proxmox 6.x APIs to create VMs.

Second was that the behavior of the "connection: local" being used playbook-wide has changed since Ansible 2.8.5. I add to add "connection: local" to each proxmox_kvm task in the playbook.

Go figure. <sigh>
 
  • Like
Reactions: Stoiko Ivanov