Bypass proxy environment for Proxmox API requests

This commit is contained in:
2026-07-10 11:23:34 +02:00
parent 20e6487030
commit 2a40d7952f
5 changed files with 6 additions and 2 deletions
+1
View File
@@ -14,3 +14,4 @@
| 0.2.0 | 4.4.0 | 4.6.x |
| 0.2.1 | 4.4.0 | 4.6.x |
| 0.2.2 | 4.4.0 | 4.6.x |
| 0.2.3 | 4.4.0 | 4.6.x |
+2
View File
@@ -54,6 +54,8 @@ sudo systemctl restart netbox netbox-rq
Bei selbstsignierten Proxmox-Zertifikaten `Validate SSL` deaktiviert lassen. Wenn Proxmox langsam antwortet, kann `API timeout` am Endpoint erhoeht werden.
Der Proxmox-Client ignoriert Proxy-Umgebungsvariablen des NetBox-Dienstes, damit interne Proxmox-Adressen nicht versehentlich ueber einen HTTPS-Proxy laufen.
Wenn Passwort-Login auf `access/ticket` haengt, zuerst den Realm im Benutzernamen pruefen (`root@pam`, `user@pve`, `user@ldaprealm`). Fuer produktive Imports ist ein Proxmox API-Token meistens stabiler als Passwort-Login.
Wenn `Sync interval minutes` gesetzt ist, prueft ein Systemjob alle fuenf Minuten, welche Endpoints faellig sind, und stellt die eigentlichen Sync-Jobs in die Queue.
+1 -1
View File
@@ -5,7 +5,7 @@ class VMwareImporterConfig(PluginConfig):
name = "netbox_vmware_importer"
verbose_name = "Virtualization Importer"
description = "Synchronize VMware vSphere and Proxmox VE virtual machines into NetBox."
version = "0.2.2"
version = "0.2.3"
author = "Internal NetBox Team"
base_url = "vmware-importer"
min_version = "4.4.0"
+1
View File
@@ -242,6 +242,7 @@ class ProxmoxClient:
raise ProxmoxConnectionError("Proxmox username must include a realm, e.g. root@pam or user@pve.")
self.session = requests.Session()
self.session.trust_env = False
self.session.verify = self.endpoint.validate_ssl
if not self.endpoint.validate_ssl and InsecureRequestWarning is not None:
requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning)
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "netbox-vmware-importer"
version = "0.2.2"
version = "0.2.3"
description = "NetBox plugin to synchronize VMware vSphere and Proxmox VE virtual machines into NetBox."
readme = "README.md"
requires-python = ">=3.12"