[INFRA-115] pfs_infra_ipmu/libvirt: nodeinfo does not sum usage in one host Created: 07/Feb/17  Updated: 10/Apr/17  Resolved: 10/Apr/17

Status: Done
Project: Software Development Infrastructure
Component/s: tools
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major
Reporter: shimono Assignee: shimono
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

https://github.com/Subaru-PFS/pfs_infra_ipmu/blob/master/libvirt/nodeinfo.py#L32
summary output just takes the last item from array in nodelist. fix the line to show sum(s) correctly.



 Comments   
Comment by shimono [ 10/Apr/17 ]

confirmed it's working

Information for 'r710-2':
  Memory : 31.5 GB / 21.7 GB free
  VCPUs  : 8 in 2127 MHz (2 NUMA, 1 socket, 4 core, 1 thread)
  domains:
    ics-g2insdev    ( 3): RUNNING Mem 8.0GB (8.0GB max) 2CPU (2 max)
    ics-mhs         ( 2): RUNNING Mem 8.0GB (8.0GB max) 2CPU (2 max)
    ics-db          ( 4): RUNNING Mem 8.0GB (8.0GB max) 2CPU (2 max)
    ics-arch        ( 5): RUNNING Mem 4.0GB (4.0GB max) 1CPU (1 max)
  Memory usage: 28.0GB (28.0GB max) 3.5GB allocatable
Comment by shimono [ 10/Apr/17 ]

merged.

Generated at Sat Feb 10 16:49:34 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.