py-pve-cloud 3.3.1__tar.gz → 3.4.0__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.3.1/src/py_pve_cloud.egg-info → py_pve_cloud-3.4.0}/PKG-INFO +2 -2
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/pyproject.toml +1 -1
- py_pve_cloud-3.4.0/src/pve_cloud/_version.py +1 -0
- py_pve_cloud-3.4.0/src/pve_cloud/lib/backup_rpc.py +10 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/pve_cloud/lib/inventory.py +6 -6
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0/src/py_pve_cloud.egg-info}/PKG-INFO +2 -2
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/py_pve_cloud.egg-info/SOURCES.txt +1 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/py_pve_cloud.egg-info/requires.txt +1 -1
- py_pve_cloud-3.3.1/src/pve_cloud/_version.py +0 -1
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/LICENSE.md +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/README.md +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/setup.cfg +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/pve_cloud/cli/pvcli.py +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/pve_cloud/cli/pvclu.py +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/pve_cloud/cli/pxrpc.py +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/pve_cloud/lib/ssh.py +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/pve_cloud/orm/alchemy.py +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/pve_cloud/orm/alembic.ini +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/pve_cloud/orm/migrations/env.py +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/pve_cloud/orm/migrations/versions/04398db10434_external_cp_extra_sans.py +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/pve_cloud/orm/migrations/versions/0ad803c51325_machine_type_refactor.py +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/pve_cloud/orm/migrations/versions/24a548bfce3e_len_rules_enforcements.py +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/pve_cloud/orm/migrations/versions/27724e407e2b_proxy_fqdn.py +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/pve_cloud/orm/migrations/versions/3c95509a5de9_fix.py +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/pve_cloud/orm/migrations/versions/7496c3f3b2e8_fix_secrets_constraint.py +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/pve_cloud/orm/migrations/versions/7868bcd05006_migrate_old.py +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/pve_cloud/orm/migrations/versions/7dea8c4ee39f_init.py +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/pve_cloud/orm/migrations/versions/944a8fd5d5bc_ext_ctrl_plns.py +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/pve_cloud/orm/migrations/versions/9de11ef8ba39_vm_vars_and_cloud_secrets.py +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/pve_cloud/orm/migrations/versions/d9b711555be8_ext_control_plane.py +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/pve_cloud/orm/migrations/versions/e60b9cc63413_ingress_generic.py +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/pve_cloud/orm/migrations/versions/e6ae1e138c1f_change_scope_cloud.py +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/pve_cloud/orm/migrations/versions/ee4924ac4f60_secrets_plural_type.py +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/pve_cloud/orm/migrations/versions/fdcb5aa33b76_slop_firewall_seperation.py +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/py_pve_cloud.egg-info/dependency_links.txt +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/py_pve_cloud.egg-info/entry_points.txt +0 -0
- {py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/src/py_pve_cloud.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: py-pve-cloud
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.4.0
|
|
4
4
|
Author-email: Tobias Huebner <tobias.huebner@vmzberlin.com>
|
|
5
5
|
License-Expression: GPL-3.0-or-later
|
|
6
6
|
License-File: LICENSE.md
|
|
@@ -13,5 +13,5 @@ Requires-Dist: dnspython==2.8.0
|
|
|
13
13
|
Requires-Dist: rpyc==6.0.2
|
|
14
14
|
Requires-Dist: fabric==3.2.3
|
|
15
15
|
Requires-Dist: asyncssh==2.22.0
|
|
16
|
-
Requires-Dist: pve-cloud-schemas<3.3.0,>=3.2.
|
|
16
|
+
Requires-Dist: pve-cloud-schemas<3.3.0,>=3.2.3
|
|
17
17
|
Dynamic: license-file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "3.4.0"
|
|
@@ -73,7 +73,8 @@ def get_cloud_dyn_inv_path():
|
|
|
73
73
|
return os.path.expanduser("~/.pve-cloud-dyn-inv.yaml")
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
# stack fqdn can be any stack fdqn, of single stacks or target_pve
|
|
77
|
+
def get_cloud_domain(stack_fqdn):
|
|
77
78
|
inv_path = get_cloud_dyn_inv_path()
|
|
78
79
|
if os.path.exists(inv_path):
|
|
79
80
|
with open(inv_path, "r") as f:
|
|
@@ -82,16 +83,15 @@ def get_cloud_domain(target_pve):
|
|
|
82
83
|
validate_cloud_dyn_inv(pve_inventory)
|
|
83
84
|
|
|
84
85
|
for pve_cloud in pve_inventory:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
return pve_cloud
|
|
86
|
+
if stack_fqdn.endswith(pve_cloud):
|
|
87
|
+
return pve_cloud
|
|
88
88
|
|
|
89
89
|
if shutil.which("avahi-browse"):
|
|
90
90
|
for service in get_avahi_iterator():
|
|
91
|
-
if
|
|
91
|
+
if stack_fqdn.endswith(service.cloud_domain):
|
|
92
92
|
return service.cloud_domain
|
|
93
93
|
|
|
94
|
-
raise Exception(f"Could not identify cloud domain for {
|
|
94
|
+
raise Exception(f"Could not identify cloud domain for {stack_fqdn}")
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
# returns the inventory containing all hosts of a pve cloud domain
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: py-pve-cloud
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.4.0
|
|
4
4
|
Author-email: Tobias Huebner <tobias.huebner@vmzberlin.com>
|
|
5
5
|
License-Expression: GPL-3.0-or-later
|
|
6
6
|
License-File: LICENSE.md
|
|
@@ -13,5 +13,5 @@ Requires-Dist: dnspython==2.8.0
|
|
|
13
13
|
Requires-Dist: rpyc==6.0.2
|
|
14
14
|
Requires-Dist: fabric==3.2.3
|
|
15
15
|
Requires-Dist: asyncssh==2.22.0
|
|
16
|
-
Requires-Dist: pve-cloud-schemas<3.3.0,>=3.2.
|
|
16
|
+
Requires-Dist: pve-cloud-schemas<3.3.0,>=3.2.3
|
|
17
17
|
Dynamic: license-file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "3.3.1"
|
|
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.3.1 → py_pve_cloud-3.4.0}/src/pve_cloud/orm/migrations/versions/3c95509a5de9_fix.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{py_pve_cloud-3.3.1 → py_pve_cloud-3.4.0}/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
|