This is follow-up of change I2ef63caf72f0f8f72fe8af87b21742088221578c
and fixes a few values referenced before being assigned.
Related-Bug: #2055784
Change-Id: I7ecc47b2b923d264342c69258b309ce1037c9102
For some inventories MEMORY_MB and DISK_GB are optional,
so we need to check before displaying them.
Closes-Bug: #2055784
Change-Id: I2ef63caf72f0f8f72fe8af87b21742088221578c
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
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
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