osi-dump 0.1.3.1.7__py3-none-any.whl → 0.1.3.1.8__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/importer/hypervisor/openstack_hypervisor_importer.py +7 -3
- osi_dump/model/hypervisor.py +1 -0
- {osi_dump-0.1.3.1.7.dist-info → osi_dump-0.1.3.1.8.dist-info}/METADATA +1 -1
- {osi_dump-0.1.3.1.7.dist-info → osi_dump-0.1.3.1.8.dist-info}/RECORD +7 -7
- {osi_dump-0.1.3.1.7.dist-info → osi_dump-0.1.3.1.8.dist-info}/WHEEL +0 -0
- {osi_dump-0.1.3.1.7.dist-info → osi_dump-0.1.3.1.8.dist-info}/entry_points.txt +0 -0
- {osi_dump-0.1.3.1.7.dist-info → osi_dump-0.1.3.1.8.dist-info}/top_level.txt +0 -0
@@ -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,21 @@ 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
|
+
az = aggregate.availability_zone
|
114
|
+
|
111
115
|
aggregates_ret = [
|
112
116
|
dict(sorted(aggregate.items())) for aggregate in aggregates_ret
|
113
117
|
]
|
114
118
|
|
115
|
-
return aggregates_ret
|
119
|
+
return aggregates_ret, az
|
osi_dump/model/hypervisor.py
CHANGED
@@ -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=2ZogcGmxRY8mhlrBn2YTIbP-Uw8pNWMC1ggzCMYBqxs,3863
|
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.8.dist-info/METADATA,sha256=LWlloVXpcgTsnLoCiMlfAM3tO3HptXDvNkwYHeuZ87Q,677
|
112
|
+
osi_dump-0.1.3.1.8.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
113
|
+
osi_dump-0.1.3.1.8.dist-info/entry_points.txt,sha256=ozm5sIBtXzLv6_FiUe26v1BgA3_xUReGLPhKQKZ56wQ,46
|
114
|
+
osi_dump-0.1.3.1.8.dist-info/top_level.txt,sha256=OtAAwmJfcoPvlw_Cemo_H1aXIGV_7w0O2941KQt6faQ,9
|
115
|
+
osi_dump-0.1.3.1.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|