Reviewed:  https://review.opendev.org/c/openstack/horizon/+/926160
Committed: 
https://opendev.org/openstack/horizon/commit/30888edfd52bfaadad241aa2fcdf44151d0aed96
Submitter: "Zuul (22348)"
Branch:    master

commit 30888edfd52bfaadad241aa2fcdf44151d0aed96
Author: Tatiana Ovchinnikova <[email protected]>
Date:   Mon Aug 12 14:40:45 2024 -0500

    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


** Changed in: horizon
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/2055784

Title:
  Resource MEMORY_MB Unable to retrieve providers information

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  Hello
  When I click on admin -> compute -> hypervisor I get error and nothing is 
displayed in resource providers summary.
  This
  This happens because i have an environment in which i have activate pci 
passthrough in nova and there are tracked in placement: 
https://docs.openstack.org/nova/2023.1/admin/pci-passthrough.html#pci-tracking-in-placement

  
  and this inventory doesn't have MEMORY_MB or DISK_GB (i looked at 
https://opendev.org/openstack/horizon/src/branch/master/openstack_dashboard/api/placement.py#L117-L127)

  eg
  one compute node where i have activated pci passthrough
  ```
  (openstack) [osc@ansible-3 ~]$ openstack resource provider show 
1fe9d32f-43cd-445a-8a49-a68f9ff5158f
  +----------------------+--------------------------------------+
  | Field                | Value                                |
  +----------------------+--------------------------------------+
  | uuid                 | 1fe9d32f-43cd-445a-8a49-a68f9ff5158f |
  | name                 | compute-19_0000:04:00.0              |
  | generation           | 44                                   |
  | root_provider_uuid   | e9cb6a8d-e638-4245-bf79-981211c5a232 |
  | parent_provider_uuid | e9cb6a8d-e638-4245-bf79-981211c5a232 |
  +----------------------+--------------------------------------+
  (openstack) [osc@ansible-3 ~]$ openstack resource provider usage show  
1fe9d32f-43cd-445a-8a49-a68f9ff5158f
  +----------------------+-------+
  | resource_class       | usage |
  +----------------------+-------+
  | CUSTOM_PCI_10DE_2330 |     1 |
  +----------------------+-------+
  ```

  One simple compute node show as
  ```
  (openstack) [osc@ansible-3 ~]$ openstack resource provider usage show  
f7af998e-1563-4a55-9145-4ee5f527d12b
  +----------------+--------+
  | resource_class |  usage |
  +----------------+--------+
  | VCPU           |    412 |
  | MEMORY_MB      | 824320 |
  | DISK_GB        |      0 |
  +----------------+--------+

  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/2055784/+subscriptions


-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to