5 Commits

Author SHA1 Message Date
Takashi Kajinami
c786ebb588 Fix generation of inventory capacities
This is follow-up of change I2ef63caf72f0f8f72fe8af87b21742088221578c
and fixes a few values referenced before being assigned.

Related-Bug: #2055784
Change-Id: I7ecc47b2b923d264342c69258b309ce1037c9102
2024-08-22 11:52:36 -05:00
Tatiana Ovchinnikova
30888edfd5 Fix Placement statistics display
For some inventories MEMORY_MB and DISK_GB are optional,
so we need to check before displaying them.

Closes-Bug: #2055784
Change-Id: I2ef63caf72f0f8f72fe8af87b21742088221578c
2024-08-21 12:15:22 +00:00
Radomir Dopieralski
14212342cf Respect SSL settings in placement API
Make the placement API client respect the OPENSTACK_SSL_NO_VERIFY and
OPENSTACK_SSL_CACERT configuration options, so that it can work properly
in TLS-everywhere deployments.

Change-Id: Id0bb085bdf411eef240c3d50da56016c0a1d075c
2024-04-19 15:36:08 +02:00
Tatiana Ovchinnikova
3acbf227a4 Add allocation ratios to Placement stats
All the Placement API stats "total" show the actual amount of the
resource that the provider can accommodate. Using allocation ratio
it is possible to exceed physical constraints.

This patch uses allocation ratios to display the diagrams properly
and adds the data to the stats table.

Closes-Bug: #1974470
Closes-Bug: #1397917

Change-Id: Iab0ce21ae63f4cc26d3ec5684615189b8ab35231
2024-01-17 21:00:32 +00:00
Radomir Dopieralski
ebdb19ab8c Use Placement API along with the hypervisor stats
Hypervisor stats do not reflect accurate VCPUs and PCPUs usage, so
to have a correct picture we need to use Placement API along with
hypervisors.

We add VCPUs and PCPUs usage diagrams and Resource Provider tab
to display correct stats.

Since there is no python client for the Placement API, and the
OpenStack SDK doesn't support the endpoints we need, we call the
endpoints directly.

Related-Bug: #1974470
Related-Bug: #1397917

Change-Id: If41cea0edeec8c95717229eb017e32898417a891
2023-12-06 15:39:34 +00:00