salt icon indicating copy to clipboard operation
salt copied to clipboard

Salt Cloud Proxmox Driver: Hardcoded API Port

Open BrianTillman opened this issue 7 years ago • 8 comments

Description of Issue

The Salt Cloud Proxmox Driver is hardcoded to call the Proxmox service API on the default port of 8006. The port number cannot be appended to the URL setting. It is not possible to leverage the Proxmox driver against a Proxmox PVE deployment where the web services (pveproxy) are using a non-default port.

Setup

Current production builds of Salt-Cloud, Proxmox PVE, and Salt-Cloud Proxmox Driver (proxmox.py)

Steps to Reproduce Issue

Deploy Proxmox and configure a working integration with Salt-Cloud. Modify the Proxmox web services (pveproxy) to listen on TCP 443. Make awkward attempts to shove '443' into your providers.conf (/etc/salt/cloud.providers.d/Proxmox.conf or similar)

Versions Report

root@Salt:/srv/salt# salt --versions-report Salt Version: Salt: 2018.3.0

Dependency Versions: cffi: Not Installed cherrypy: Not Installed dateutil: 2.7.3 docker-py: Not Installed gitdb: Not Installed gitpython: Not Installed ioflo: Not Installed Jinja2: 2.10 libgit2: 0.27.7 libnacl: Not Installed M2Crypto: 0.35.2 Mako: Not Installed msgpack-pure: Not Installed msgpack-python: 0.5.6 mysql-python: Not Installed pycparser: 2.19 pycrypto: 2.6.1 pycryptodome: Not Installed pygit2: 0.27.4 Python: 3.7.3 (default, Oct 7 2019, 12:56:13) python-gnupg: Not Installed PyYAML: 3.13 PyZMQ: 17.1.2 RAET: Not Installed smmap: Not Installed timelib: Not Installed Tornado: 4.5.3 ZMQ: 4.3.1

System Versions: dist: Ubuntu 19.04 disco locale: utf-8 machine: x86_64 release: 5.0.21-4-pve system: Linux version: Ubuntu 19.04 disco

BrianTillman avatar Nov 08 '19 17:11 BrianTillman

seems an easy enough change, add a new option and convert it to a more dynamic url. Did you want to give a go at a PR fix?

Ch3LL avatar Nov 08 '19 20:11 Ch3LL

@Ch3LL I have a fix, looking at creating some tests for this driver before submitting the PR. Heads up: I ran into a few additional minor issues, including #40297. I'll see if I can't put together a few PRs.

BrianTillman avatar Nov 08 '19 20:11 BrianTillman

Opened PR #55246

BrianTillman avatar Nov 08 '19 21:11 BrianTillman

This feature already exists in the neon branch: https://github.com/saltstack/salt/pull/50620

max-arnold avatar Nov 09 '19 04:11 max-arnold

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.

stale[bot] avatar Jan 07 '20 14:01 stale[bot]

Thank you for updating this issue. It is no longer marked as stale.

stale[bot] avatar Jan 08 '20 13:01 stale[bot]

Only recently found this issue, I'll be looking at it.

mthibaut avatar May 10 '23 21:05 mthibaut

@Ch3LL or @nicholasmhughes you can close this one. This has already been implemented and documented (see https://github.com/saltstack/salt/commit/6a60271702f79f630c9541bc463a99ec477e4b4f)

I3urny avatar Sep 18 '23 20:09 I3urny