Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

currentBalance and targetBalance Key/Values for ClusterComputeResource #46

Open
GoogleCodeExporter opened this issue Apr 14, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.
properties = ["summary.targetBalance"]

results = s._retrieve_properties_traversal(property_names=properties,
                                           obj_type=MORTypes.ClusterComputeResource)


for item in results:
    print "=" * 80
    print "MOR:", item.Obj
    for p in item.PropSet:
        print p.Name, "=>", p.Val


What is the expected output? 
the same as effectiveCpu

What do you see instead?
Invalid Property Type

What version of the product are you using? On what operating system?
pysphere-0.1.7

Please provide any additional information below.
They keys are there
['AdmissionControlInfo', 'CurrentBalance', 'CurrentEVCModeKey', 
'CurrentFailoverLevel', 'DasData', 'DynamicProperty', '
DynamicType', 'EffectiveCpu',....


Output from

mors = s.get_datacenters().keys() + s.get_clusters().keys() + 
s.get_hosts().keys() + s._get_managed_objects(MORTypes.VirtualMachine).keys()
# for mor in mors: print mor
props = {MORTypes.ClusterComputeResource:[]}
results = s._get_object_properties_bulk(mors, props)


for host in results:
    for prop in host.PropSet:
       print "prop Name"
       print "========="
       print dir(prop.Name)
       print "prop Val"
       print "========="
       print dir(prop.Val)



Original issue reported on code.google.com by [email protected] on 15 Nov 2013 at 10:52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant