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

Crash when API Snapshot not available #53

Open
h00die opened this issue Dec 4, 2020 · 1 comment
Open

Crash when API Snapshot not available #53

h00die opened this issue Dec 4, 2020 · 1 comment

Comments

@h00die
Copy link

h00die commented Dec 4, 2020

Traceback (most recent call last):
  File "build_linux_baselines.py", line 139, in <module>
    main(sys.argv)
  File "build_linux_baselines.py", line 132, in main
    build_base(target, common_vars, packer_file, replace_existing=replace_vms, vmServer=vm_server, prependString=prependString)
  File "build_linux_baselines.py", line 83, in build_base
    vm.takeSnapshot(snapshotName='baseline')
  File "/var/jenkins_home/.pyenv/versions/2.7.13/lib/python2.7/site-packages/vm_automation/esxiVm.py", line 893, in takeSnapshot
    setQuiescent)
  File "/var/jenkins_home/.pyenv/versions/2.7.13/lib/python2.7/site-packages/pyVmomi/VmomiSupport.py", line 706, in <lambda>
    self.f(*(self.args + (obj,) + args), **kwargs)
  File "/var/jenkins_home/.pyenv/versions/2.7.13/lib/python2.7/site-packages/pyVmomi/VmomiSupport.py", line 512, in _InvokeMethod
    return self._stub.InvokeMethod(self, info, args)
  File "/var/jenkins_home/.pyenv/versions/2.7.13/lib/python2.7/site-packages/pyVmomi/SoapAdapter.py", line 1397, in InvokeMethod
    raise obj # pylint: disable-msg=E0702
pyVmomi.VmomiSupport.RestrictedVersion: (vim.fault.RestrictedVersion) {
   dynamicType = <unset>,
   dynamicProperty = (vmodl.DynamicProperty) [],
   msg = 'Current license or ESXi version prohibits execution of the requested operation.',
   faultCause = <unset>,
   faultMessage = (vmodl.LocalizableMessage) []
}
@jmartin-tech
Copy link
Contributor

Fixed by update to vm-automation library see rapid7/vm-automation#22

Snapshots are now silently skipped. Leaving this open for the time being while considering adding a summary report and details about when snapshots are not taken.

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

No branches or pull requests

2 participants