vmware / vmware/pyvmomi

PbmApplyProfile is Missing in : vSphere 6.7 Update 3 Release(Note:same methods available in v6.7.1.2018.12 Bug Fix release)

Open
#866 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs verification
Dominant language
Python
Stars
2.3k
Forks
763
PR merge metrics
No merged PRs in 30d

Description

1.PbmApplyProfile is missing in CreateManagedType("pbm.profile.ProfileManager" from PbmObjects/ProfileManager (6.7 u3 pyVmomi)

CreateManagedType("pbm.profile.ProfileManager", "PbmProfileProfileManager", "vmodl.ManagedObject", "pbm.version.version1", None, [("fetchResourceType", "PbmFetchResourceType", "pbm.version.version1", (), (F_OPTIONAL, "pbm.profile.ResourceType[]", "pbm.profile.ResourceType[]"), "StorageProfile.View", None),

.
.
.
("applyProfile", "PbmApplyProfile", "pbm.version.version1", (("profiles", "pbm.profile.ProfileId[]", "pbm.version.version1", 0, None),), (0, "pbm.profile.ApplyProfileOutcome[]", "pbm.profile.ApplyProfileOutcome[]"), "StorageProfile.Update", None)

2.Also CreateDataType("pbm.profile.ApplyProfileOutcome" missing from PbmObjects (6.7 u3 pyVmomi)

CreateDataType("pbm.profile.ApplyProfileOutcome", "PbmProfileApplyOutcome", "vmodl.DynamicData", "pbm.version.version1", [("profileId", "pbm.profile.ProfileId", "pbm.version.version1", 0), ("reconfigOutcome", "pbm.profile.ReconfigOutcome[]", "pbm.version.version1", F_OPTIONAL), ("fault", "vmodl.MethodFault", "pbm.version.version11", F_OPTIONAL)])

3.Also many methods are missing in ProfileManager (latest pyVmomi source code)

sample:

======

Below methods from pyvmomi 6.7.0.2018.9 - ProfileManager

type(profile_manager)
<class 'pyVmomi.VmomiSupport.pbm.profile.ProfileManager'>
profile_manager.
Display all 114 possibilities? (y or n)
profile_manager.ApplyAssociated( profile_manager.QueryDefaultRequirementProfiles(
profile_manager.ApplyProfile( profile_manager.QueryIOFilterInfo(
profile_manager.Array( profile_manager.QueryIOFiltersFromProfileId(
profile_manager.AssignDefaultRequirementProfile( profile_manager.QueryParentStoragePolicies(
profile_manager.Associate( profile_manager.QueryPmemPolicyInfo(
profile_manager.ConfigureErrorMode( profile_manager.QueryProfile(
profile_manager.Create( profile_manager.QuerySpaceStatsForStorageContainer(
profile_manager.Delete( profile_manager.ReconfigEntityAssociations(
profile_manager.Dissociate( profile_manager.ResetDefaultRequirementProfile(
profile_manager.FetchCapabilityMetadata( profile_manager.ResetVSanDefaultProfile(
profile_manager.FetchCapabilitySchema( profile_manager.RetrieveContent(
profile_manager.FetchResourceType( profile_manager.RetrieveContentAsString(
profile_manager.FetchVendorInfo( profile_manager.RetrieveContentAsStringBySpec(
profile_manager.FindApplicableDefaultProfile( profile_manager.RetrieveContentForHub(
profile_manager.FindTargetProfileCapabilityValues( profile_manager.Update(
profile_manager.PbmApplyAssociated( profile_manager._GetMethodInfo(
profile_manager.PbmApplyProfile( profile_manager._GetMethodList(
profile_manager.PbmAssignDefaultRequirementProfile( profile_manager._GetMoId(
profile_manager.PbmAssociate( profile_manager._GetPropertyInfo(
profile_manager.PbmCreate( profile_manager._GetPropertyList(
profile_manager.PbmDelete( profile_manager._GetServerGuid(
profile_manager.PbmDissociate( profile_manager._GetStub(
profile_manager.PbmFetchCapabilityMetadata( profile_manager._InvokeAccessor(
profile_manager.PbmFetchCapabilitySchema( profile_manager._InvokeMethod(
profile_manager.PbmFetchResourceType( profile_manager.class(
profile_manager.PbmFetchVendorInfo( profile_manager.delattr(
profile_manager.PbmFindApplicableDefaultProfile( profile_manager.dict
profile_manager.PbmFindTargetProfileCapabilityValues( profile_manager.dir(
profile_manager.PbmPreProvisionProcess( profile_manager.doc
profile_manager.PbmQueryAssociatedEntities( profile_manager.eq(
profile_manager.PbmQueryAssociatedEntity( profile_manager.format(
profile_manager.PbmQueryAssociatedProfile( profile_manager.ge(
profile_manager.PbmQueryAssociatedProfiles( profile_manager.getattribute(
profile_manager.PbmQueryDefaultCapabilityValues( profile_manager.gt(
profile_manager.PbmQueryDefaultRequirementProfile( profile_manager.hash(
profile_manager.PbmQueryDefaultRequirementProfiles( profile_manager.init(
profile_manager.PbmQueryIOFilterInfo( profile_manager.le(
profile_manager.PbmQueryIOFiltersFromProfileId( profile_manager.lt(
profile_manager.PbmQueryParentStoragePolicies( profile_manager.module
profile_manager.PbmQueryPmemPolicyInfo( profile_manager.ne(
profile_manager.PbmQueryProfile( profile_manager.new(
profile_manager.PbmQuerySpaceStatsForStorageContainer( profile_manager.reduce(
profile_manager.PbmReconfigEntityAssociations( profile_manager.reduce_ex(
profile_manager.PbmResetDefaultRequirementProfile( profile_manager.repr(
profile_manager.PbmResetVSanDefaultProfile( profile_manager.setattr(
profile_manager.PbmRetrieveContent( profile_manager.sizeof(
profile_manager.PbmRetrieveProfileContentAsString( profile_manager.str(
profile_manager.PbmRetrieveProfileContentAsStringBySpec( profile_manager.subclasshook(
profile_manager.PbmRetrieveProfileContentForHub( profile_manager.weakref
profile_manager.PbmUpdate( profile_manager._methodInfo
profile_manager.PreProvisionProcess( profile_manager._moId
profile_manager.QueryAssociatedEntities( profile_manager._propInfo
profile_manager.QueryAssociatedEntity( profile_manager._propList
profile_manager.QueryAssociatedProfile( profile_manager._serverGuid
profile_manager.QueryAssociatedProfiles( profile_manager._stub
profile_manager.QueryDefaultCapabilityValues( profile_manager._version
profile_manager.QueryDefaultRequirementProfile( profile_manager._wsdlName
profile_manager.

Below methods from pyvmomi 6.7.3 - ProfileManager

type(profile_manager)
<class 'pyVmomi.VmomiSupport.pbm.profile.ProfileManager'>
profile_manager.
profile_manager.Array( profile_manager._GetMethodList(
profile_manager.AssignDefaultRequirementProfile( profile_manager._GetMoId(
profile_manager.Create( profile_manager._GetPropertyInfo(
profile_manager.Delete( profile_manager._GetPropertyList(
profile_manager.FetchCapabilityMetadata( profile_manager._GetServerGuid(
profile_manager.FetchCapabilitySchema( profile_manager._GetStub(
profile_manager.FetchResourceType( profile_manager._InvokeAccessor(
profile_manager.FetchVendorInfo( profile_manager._InvokeMethod(
profile_manager.FindApplicableDefaultProfile( profile_manager.class(
profile_manager.PbmAssignDefaultRequirementProfile( profile_manager.delattr(
profile_manager.PbmCreate( profile_manager.dict
profile_manager.PbmDelete( profile_manager.dir(
profile_manager.PbmFetchCapabilityMetadata( profile_manager.doc
profile_manager.PbmFetchCapabilitySchema( profile_manager.eq(
profile_manager.PbmFetchResourceType( profile_manager.format(
profile_manager.PbmFetchVendorInfo( profile_manager.ge(
profile_manager.PbmFindApplicableDefaultProfile( profile_manager.getattribute(
profile_manager.PbmQueryAssociatedEntities( profile_manager.gt(
profile_manager.PbmQueryAssociatedEntity( profile_manager.hash(
profile_manager.PbmQueryAssociatedProfile( profile_manager.init(
profile_manager.PbmQueryAssociatedProfiles( profile_manager.le(
profile_manager.PbmQueryDefaultRequirementProfile( profile_manager.lt(
profile_manager.PbmQueryDefaultRequirementProfiles( profile_manager.module
profile_manager.PbmQueryProfile( profile_manager.ne(
profile_manager.PbmQuerySpaceStatsForStorageContainer( profile_manager.new(
profile_manager.PbmResetDefaultRequirementProfile( profile_manager.reduce(
profile_manager.PbmResetVSanDefaultProfile( profile_manager.reduce_ex(
profile_manager.PbmRetrieveContent( profile_manager.repr(
profile_manager.PbmUpdate( profile_manager.setattr(
profile_manager.QueryAssociatedEntities( profile_manager.sizeof(
profile_manager.QueryAssociatedEntity( profile_manager.str(
profile_manager.QueryAssociatedProfile( profile_manager.subclasshook(
profile_manager.QueryAssociatedProfiles( profile_manager.weakref
profile_manager.QueryDefaultRequirementProfile( profile_manager._methodInfo
profile_manager.QueryDefaultRequirementProfiles( profile_manager._moId
profile_manager.QueryProfile( profile_manager._propInfo
profile_manager.QuerySpaceStatsForStorageContainer( profile_manager._propList
profile_manager.ResetDefaultRequirementProfile( profile_manager._serverGuid
profile_manager.ResetVSanDefaultProfile( profile_manager._stub
profile_manager.RetrieveContent( profile_manager._version
profile_manager.Update( profile_manager._wsdlName
profile_manager._GetMethodInfo(
profile_manager.

when we see pyvmomi 6.7.3 - ProfileManager - many methods are missing, due to this we are unable to run our existing codes using latest pyVmomi source code

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the PbmObjects/ProfileManager definitions and compare the listed pyVmomi 6.7.0 and 6.7.3 ProfileManager method sets. Verify the missing PbmApplyProfile method and PbmProfileApplyOutcome data type against the signatures in the issue, then confirm that the affected existing code works with the updated bindings.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.