Skip to content

Commit

Permalink
Merge pull request #22951 from agrare/fix_container_manager_aggregate…
Browse files Browse the repository at this point in the history
…_cpu_memory_methods

Fix aggregate_cpu/memory utilization methods for Containers
  • Loading branch information
Fryguy authored Mar 28, 2024
2 parents 6da151e + bfa1249 commit 5a25f61
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/models/manageiq/providers/container_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ class ContainerManager < BaseManager
has_many :all_container_quotas, :foreign_key => :ems_id, :dependent => :destroy, :class_name => "ContainerQuota"

virtual_column :port_show, :type => :string
virtual_sum :aggregate_cpu_speed, :computer_system_hardwares, :aggregate_cpu_speed
virtual_sum :aggregate_cpu_total_cores, :computer_system_hardwares, :cpu_total_cores
virtual_sum :aggregate_disk_capacity, :computer_system_hardwares, :disk_capacity
virtual_sum :aggregate_memory, :computer_system_hardwares, :memory_mb
virtual_sum :aggregate_physical_cpus, :computer_system_hardwares, :cpu_sockets

supports :authentication_status
supports :metrics
Expand Down

0 comments on commit 5a25f61

Please sign in to comment.