Bug #25543

Proper error messages for VMware exceptions

Added by Richard van Vliet about 1 year ago. Updated 11 months ago.

Nice to have
William Grzybowski
Target version:
Seen in:
Backlog Priority:
Reason for Closing:
Reason for Blocked:
Needs QA:
Needs Doc:
Needs Merging:
Needs Automation:
Support Suite Ticket:
Hardware Configuration:

Poweredge 2950III 2 DUAL Core CPU, 64Gb RAM 15x WD RED Pro 2TB , PERC 6/E

ChangeLog Required:



Since FreeNAS 11 i'm unable to create vmware synched snapshots. all Datastore relates VM's fail with the error below.

After investigation i found this bugs report : Title: Change pysphere to pyvmomi
and this commit

My other FreeNAS running FreeNAS-9.10.2-U1 is working fine Somewhere the python libs are different with "pysphere" i am able to create snapshot with the "pyvmomi" i'am not.
i'am using the ESXI Free Licence and was not having ESXi snapshot problems until this change, can this feature be brought back to FreeNAS.

With regards,

----Error Response Manual Snapshot VMware Synched ----

Software Version: FreeNAS-11.0-U2 (e417d8aa5)
Request Method: POST
Request URL: http://x.x.x.x/storage/snapshot/create/ZPOOL03B/DATASET10/

File "/usr/local/lib/python3.6/site-packages/django/core/handlers/" in inner
39. response = get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/" in _legacy_get_response
249. response = self._get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/" in _get_response
178. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "./freenasUI/freeadmin/" in process_view
162. return login_required(view_func)(request, view_args, **view_kwargs)
File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "./freenasUI/storage/" in manualsnap
777. form.commit(fs)
File "./freenasUI/storage/" in commit
1836. memory=False, quiesce=False,
File "/usr/local/lib/python3.6/site-packages/pyVmomi/" in <lambda>
580. self.f(
(self.args + (obj,) + args), **kwargs)
File "/usr/local/lib/python3.6/site-packages/pyVmomi/" in _InvokeMethod
386. return self._stub.InvokeMethod(self, info, args)
File "/usr/local/lib/python3.6/site-packages/pyVmomi/" in InvokeMethod
1373. raise obj # pylint: disable-msg=E0702

Exception Type: vim.fault.RestrictedVersion at /storage/snapshot/create/ZPOOL03B/DATASET10/
Exception Value: (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) []

Associated revisions

Revision 98c2a490 (diff)
Added by William Grzybowski 12 months ago

feat(middlewared/vmware): catch generic exceptions

Ticket: #25543


#1 Updated by Dru Lavigne about 1 year ago

  • Assignee changed from Release Council to William Grzybowski

William: is this due to the esxi license? If so, should we fix the traceback to provide an error message?

#2 Updated by William Grzybowski about 1 year ago

  • Status changed from Unscreened to Screened
  • Priority changed from No priority to Nice to have
  • Target version set to 11.2-BETA1

pysphere is a deprecated project. pyvmomi is an official project from VMWare and there is nothing we can do about it. You will need a valid license.

All we can do here is make a proper error message.

#3 Updated by William Grzybowski 12 months ago

  • Subject changed from Not able to create Vmware Synced Snapshots to Proper error messages for vmware exceptions
  • Status changed from Screened to Needs Developer Review
  • Assignee changed from William Grzybowski to Vladimir Vinogradenko

#4 Updated by Vladimir Vinogradenko 12 months ago

  • Status changed from Needs Developer Review to Reviewed by Developer
  • Assignee changed from Vladimir Vinogradenko to William Grzybowski

#5 Updated by William Grzybowski 12 months ago

  • Status changed from Reviewed by Developer to Ready For Release
  • Target version changed from 11.2-BETA1 to 11.1

#6 Updated by William Grzybowski 12 months ago

  • Target version changed from 11.1 to 11.1-RC1

#7 Updated by Dru Lavigne 12 months ago

  • Subject changed from Proper error messages for vmware exceptions to Proper error messages for VMware exceptions

#8 Updated by Dru Lavigne 12 months ago

  • Status changed from Ready For Release to Resolved

#9 Updated by Joe Maloney 11 months ago

  • Needs QA changed from Yes to No

Also available in: Atom PDF