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

Host Profile Export BUG #1072

Open
MarioRuggieri opened this issue May 14, 2024 · 0 comments
Open

Host Profile Export BUG #1072

MarioRuggieri opened this issue May 14, 2024 · 0 comments
Labels

Comments

@MarioRuggieri
Copy link

Describe the bug

The export of an host profile via the vSphere web client or via pyVmomi using the ExportProfile method is not deterministic.

Each time ExportProfile() is called the result is different. The same happens via the vCenter GUI.

Reproduction steps

  1. Install pyvmomi via pip3
  2. Use vCenter v8.0.2
  3. Execute the following script:
from pyVim.connect import SmartConnect
from pyVmomi import vim

si = SmartConnect(host='HOSTNAME', user='USERNAME', pwd='PASSWORD', disableSslCertValidation=True)
content = si.RetrieveContent()
pm = content.hostProfileManager
profile = pm.profile[0]
for _ in range(5):
  print(len(profile.ExportProfile()))
  1. The result will be NOT the same, for example this is what happens on my side:
1426335
1426265
1426265
1426265
1426335
  1. Go to the vSphere web client, select an host profile, go to Actions -> Export Host Profile -> Save
  2. Execute the point 5 many times and observe how the XML changes. For example, in my case sometimes there is the following xml tag inside:
    <string xsi:type="xsd:string">VMkernel.Boot.execInstalledOnly</string>
    and sometimes not.

Expected behavior

We expect to have the same output string each time ExportProfile() is called.
We expect to have the same XML vpf file each time we export the profile from the vSphere web client.

Additional context

No response

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

No branches or pull requests

1 participant