py-pve-cloud 3.2.2__tar.gz → 3.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {py_pve_cloud-3.2.2/src/py_pve_cloud.egg-info → py_pve_cloud-3.2.4}/PKG-INFO +1 -1
- py_pve_cloud-3.2.4/src/pve_cloud/_version.py +1 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/lib/inventory.py +14 -2
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4/src/py_pve_cloud.egg-info}/PKG-INFO +1 -1
- py_pve_cloud-3.2.2/src/pve_cloud/_version.py +0 -1
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/LICENSE.md +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/README.md +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/pyproject.toml +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/setup.cfg +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/cli/pvcli.py +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/cli/pvclu.py +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/cli/pxrpc.py +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/lib/ssh.py +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/orm/alchemy.py +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/orm/alembic.ini +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/orm/migrations/env.py +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/orm/migrations/versions/04398db10434_external_cp_extra_sans.py +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/orm/migrations/versions/0ad803c51325_machine_type_refactor.py +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/orm/migrations/versions/24a548bfce3e_len_rules_enforcements.py +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/orm/migrations/versions/27724e407e2b_proxy_fqdn.py +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/orm/migrations/versions/3c95509a5de9_fix.py +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/orm/migrations/versions/7496c3f3b2e8_fix_secrets_constraint.py +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/orm/migrations/versions/7868bcd05006_migrate_old.py +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/orm/migrations/versions/7dea8c4ee39f_init.py +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/orm/migrations/versions/944a8fd5d5bc_ext_ctrl_plns.py +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/orm/migrations/versions/9de11ef8ba39_vm_vars_and_cloud_secrets.py +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/orm/migrations/versions/d9b711555be8_ext_control_plane.py +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/orm/migrations/versions/e60b9cc63413_ingress_generic.py +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/orm/migrations/versions/e6ae1e138c1f_change_scope_cloud.py +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/orm/migrations/versions/ee4924ac4f60_secrets_plural_type.py +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/orm/migrations/versions/fdcb5aa33b76_slop_firewall_seperation.py +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/py_pve_cloud.egg-info/SOURCES.txt +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/py_pve_cloud.egg-info/dependency_links.txt +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/py_pve_cloud.egg-info/entry_points.txt +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/py_pve_cloud.egg-info/requires.txt +0 -0
- {py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/py_pve_cloud.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "3.2.4"
|
|
@@ -258,12 +258,24 @@ def get_online_pve_host(pve_inventory, target_cluster):
|
|
|
258
258
|
online_jump_host,
|
|
259
259
|
):
|
|
260
260
|
online_pve_host = pve_host_ip
|
|
261
|
-
break
|
|
262
261
|
else:
|
|
263
262
|
# direct connect
|
|
264
263
|
if check_ssh_open(pve_host_ip):
|
|
265
264
|
online_pve_host = pve_host_ip
|
|
266
|
-
|
|
265
|
+
|
|
266
|
+
if online_pve_host:
|
|
267
|
+
# perform additional check on clusters vars, hosts that have no pve corosync vote
|
|
268
|
+
# should be excluded as they are optional
|
|
269
|
+
cluster_vars = get_cluster_vars(online_pve_host, jump_host=online_jump_host)
|
|
270
|
+
if (
|
|
271
|
+
pve_host in cluster_vars["pve_host_vars"]
|
|
272
|
+
and "pve_corosync_vote" in cluster_vars["pve_host_vars"][pve_host]
|
|
273
|
+
):
|
|
274
|
+
if not cluster_vars["pve_host_vars"][pve_host]["pve_corosync_vote"]:
|
|
275
|
+
online_pve_host = None
|
|
276
|
+
continue # look for another host
|
|
277
|
+
|
|
278
|
+
break # checks passed
|
|
267
279
|
|
|
268
280
|
if not online_pve_host:
|
|
269
281
|
raise RuntimeError("Could not find online pve host for {target_cluster}")
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "3.2.2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/orm/migrations/versions/3c95509a5de9_fix.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{py_pve_cloud-3.2.2 → py_pve_cloud-3.2.4}/src/pve_cloud/orm/migrations/versions/7dea8c4ee39f_init.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|