osi-dump 0.1.3.1.7__py3-none-any.whl → 0.1.3.1.9__py3-none-any.whl
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.
- osi_dump/exporter/load_balancer/excel_load_balancer_exporter.py +1 -1
- osi_dump/importer/hypervisor/openstack_hypervisor_importer.py +8 -3
- osi_dump/model/hypervisor.py +1 -0
- {osi_dump-0.1.3.1.7.dist-info → osi_dump-0.1.3.1.9.dist-info}/METADATA +1 -1
- {osi_dump-0.1.3.1.7.dist-info → osi_dump-0.1.3.1.9.dist-info}/RECORD +8 -8
- {osi_dump-0.1.3.1.7.dist-info → osi_dump-0.1.3.1.9.dist-info}/WHEEL +0 -0
- {osi_dump-0.1.3.1.7.dist-info → osi_dump-0.1.3.1.9.dist-info}/entry_points.txt +0 -0
- {osi_dump-0.1.3.1.7.dist-info → osi_dump-0.1.3.1.9.dist-info}/top_level.txt +0 -0
@@ -23,7 +23,7 @@ class ExcelLoadBalancerExporter(LoadBalancerExporter):
|
|
23
23
|
df = pd.json_normalize(
|
24
24
|
[load_balancer.model_dump() for load_balancer in load_balancers]
|
25
25
|
)
|
26
|
-
|
26
|
+
|
27
27
|
df = util.expand_list_column(df, "amphoraes")
|
28
28
|
|
29
29
|
logger.info(f"Exporting load_balancers for {self.sheet_name}")
|
@@ -59,7 +59,7 @@ class OpenStackHypervisorImporter(HypervisorImporter):
|
|
59
59
|
def _get_hypervisor_info(
|
60
60
|
self, hypervisor: OSHypervisor, aggregates: list[OSAggregate]
|
61
61
|
) -> Hypervisor:
|
62
|
-
aggregate_list = self._get_aggregates(hypervisor=hypervisor)
|
62
|
+
aggregate_list, az = self._get_aggregates(hypervisor=hypervisor)
|
63
63
|
|
64
64
|
placement_proxy: PlacementProxy = self.connection.placement
|
65
65
|
|
@@ -89,6 +89,7 @@ class OpenStackHypervisorImporter(HypervisorImporter):
|
|
89
89
|
local_disk_usage=usage_data["DISK_GB"],
|
90
90
|
vm_count=len(hypervisor.servers),
|
91
91
|
aggregates=aggregate_list,
|
92
|
+
availability_zone=az,
|
92
93
|
)
|
93
94
|
|
94
95
|
return ret_hypervisor
|
@@ -98,18 +99,22 @@ class OpenStackHypervisorImporter(HypervisorImporter):
|
|
98
99
|
|
99
100
|
aggregates: OSAggregate = list(self.connection.list_aggregates())
|
100
101
|
|
102
|
+
az = None
|
103
|
+
|
101
104
|
for aggregate in aggregates:
|
102
105
|
if hypervisor.name in aggregate.hosts:
|
103
106
|
aggregates_ret.append(
|
104
107
|
{
|
105
108
|
"id": aggregate.id,
|
106
109
|
"name": aggregate.name,
|
107
|
-
"availability_zone": aggregate.availability_zone,
|
108
110
|
}
|
109
111
|
)
|
110
112
|
|
113
|
+
if aggregate.availability_zone != None:
|
114
|
+
az = aggregate.availability_zone
|
115
|
+
|
111
116
|
aggregates_ret = [
|
112
117
|
dict(sorted(aggregate.items())) for aggregate in aggregates_ret
|
113
118
|
]
|
114
119
|
|
115
|
-
return aggregates_ret
|
120
|
+
return aggregates_ret, az
|
osi_dump/model/hypervisor.py
CHANGED
@@ -37,7 +37,7 @@ osi_dump/exporter/instance/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
|
|
37
37
|
osi_dump/exporter/instance/excel_instance_exporter.py,sha256=8WTv3RDOdUkumyWzwUK4KAZCnnq9P2yKi5TC091I9fs,931
|
38
38
|
osi_dump/exporter/instance/instance_exporter.py,sha256=5CuKKvTa5S2_Ds7fap6tle4go9pOFmQ5VEf6O7tjwBo,161
|
39
39
|
osi_dump/exporter/load_balancer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
40
|
-
osi_dump/exporter/load_balancer/excel_load_balancer_exporter.py,sha256=
|
40
|
+
osi_dump/exporter/load_balancer/excel_load_balancer_exporter.py,sha256=Wq5ik_BTfa2RqMZKtCP2AkFVyJXne7N5OTXj0RCQsbI,1071
|
41
41
|
osi_dump/exporter/load_balancer/load_balancer_exporter.py,sha256=Z5uvEKz1UG_dpAw5KVh-IX5PWLzlPt7pV9773bkgjXs,175
|
42
42
|
osi_dump/exporter/project/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
43
43
|
osi_dump/exporter/project/excel_project_exporter.py,sha256=2U3Tvn_Bk4xEQk3Tmh-oj5WXAG1bfxI6m7WVPF1upQw,916
|
@@ -62,7 +62,7 @@ osi_dump/importer/floating_ip/floating_ip_importer.py,sha256=2_lCZYF-r2dgdL4Yzws
|
|
62
62
|
osi_dump/importer/floating_ip/openstack_floating_ip_importer.py,sha256=xuALHyiyb4LdRgFN0hZvOx0pImKpGsLUtPWW_1q52gc,2286
|
63
63
|
osi_dump/importer/hypervisor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
64
64
|
osi_dump/importer/hypervisor/hypervisor_importer.py,sha256=JuoJBltqFYhH-Ql9TLUPHX2YurS0JFV7Augrc6bDJ5Q,206
|
65
|
-
osi_dump/importer/hypervisor/openstack_hypervisor_importer.py,sha256=
|
65
|
+
osi_dump/importer/hypervisor/openstack_hypervisor_importer.py,sha256=zyAwuERJQxRyTNtaT7w-5EXmizo18qBr4jMgMBDROLk,3915
|
66
66
|
osi_dump/importer/image/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
67
67
|
osi_dump/importer/image/image_importer.py,sha256=6zwAMnS58S2HGwARwebqf4VE9IBQBv5Ot6nmcn9H4fY,181
|
68
68
|
osi_dump/importer/image/openstack_image_importer.py,sha256=ffc13qnIGu07OXnIPaKiVxGdufep82RfQoKqLb1bwHc,2455
|
@@ -89,7 +89,7 @@ osi_dump/model/authentication_info.py,sha256=02kXxtILfjh8t45_-bPM8rtyRk2cQcJK6l2
|
|
89
89
|
osi_dump/model/external_port.py,sha256=4FlyG8ZmQO7nNdavmRBhK8ZMsNogmhMqEBa03okvqXM,477
|
90
90
|
osi_dump/model/flavor.py,sha256=bV1DAL0fMN-bZ0Is7Cd-LLuEdL1ihVPeGcLvbhOcB-I,301
|
91
91
|
osi_dump/model/floating_ip.py,sha256=CRJufC5ZaxxcbGvdot7Af-sO8uyKbyQK9zHljfBnyFA,427
|
92
|
-
osi_dump/model/hypervisor.py,sha256=
|
92
|
+
osi_dump/model/hypervisor.py,sha256=6dWEMVrrjOQolX936FqY994S7RAXpMPATpsLPVNeCyk,455
|
93
93
|
osi_dump/model/image.py,sha256=JUr90XQgA6d3EyoZyV-Cyz4Y1GkEBIDhALsf-_eoR-Y,524
|
94
94
|
osi_dump/model/instance.py,sha256=ixJUGMsNAsWIRSXXHZ2fHA9Wr1wPYZONyEhS75wfQp8,577
|
95
95
|
osi_dump/model/load_balancer.py,sha256=T5RU6gm36ePYCh3KQ_OYO44FHMfxTcSNaiuKP5E_9CY,352
|
@@ -108,8 +108,8 @@ osi_dump/util/extract_hostname.py,sha256=IpdklGHevmtRu67xeSRE_5n2mvWGI1sDsnJwExo
|
|
108
108
|
osi_dump/util/openstack_util.py,sha256=mPWLoVdSg4mukqtX87fN0Q9aDcRicJIqIsIOIIu1PnY,591
|
109
109
|
osi_dump/util/panda_excel.py,sha256=owr8AffIxqN3yY8kIv55Ox4j2dRz7kXZvSZFZeft8dw,734
|
110
110
|
osi_dump/util/validate_dir_path.py,sha256=pL_OrY8JnNwk3vj6Zp6bsZtgHXhszSGRoqIt-1G5S90,507
|
111
|
-
osi_dump-0.1.3.1.
|
112
|
-
osi_dump-0.1.3.1.
|
113
|
-
osi_dump-0.1.3.1.
|
114
|
-
osi_dump-0.1.3.1.
|
115
|
-
osi_dump-0.1.3.1.
|
111
|
+
osi_dump-0.1.3.1.9.dist-info/METADATA,sha256=Vhl2agmL6Kpk7LOxX8VuAHkYA7c_UlZdJIXV7ABUIUo,677
|
112
|
+
osi_dump-0.1.3.1.9.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
113
|
+
osi_dump-0.1.3.1.9.dist-info/entry_points.txt,sha256=ozm5sIBtXzLv6_FiUe26v1BgA3_xUReGLPhKQKZ56wQ,46
|
114
|
+
osi_dump-0.1.3.1.9.dist-info/top_level.txt,sha256=OtAAwmJfcoPvlw_Cemo_H1aXIGV_7w0O2941KQt6faQ,9
|
115
|
+
osi_dump-0.1.3.1.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|