Hello.
I want to add information to onecluster command output.
Information like this:
CLUSTER 113 INFORMATION
ID : 113
NAME : ceph
CLUSTER RESOURCES:
TOTAL CPUs: 100
OCCUPIED CPUs: 34
AVAILABLE CPUs: 64
TOTAL RAM: 500G
OCCUPIED RAM: 125G
AVAILABLE RAM: 375G
I’ve checked that object which is providing into format_resource(cluster, options={}) doesn’t have any methots which can get objects of contained hosts.
Can you help me if there has any tools to get cluster resources inside onecluster_helper.rb, if no, maybe there are another ways to get resources from cluster object ?
Thanks.