Project

General

Profile

Bug #25543

Proper error messages for VMware exceptions

Added by Richard van Vliet over 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Nice to have
Assignee:
William Grzybowski
Category:
Middleware
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:

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

ChangeLog Required:
No

Description

Hello,

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 : https://bugs.freenas.org/issues/22353 Title: Change pysphere to pyvmomi
and this commit https://github.com/freenas/freenas/commit/05bb91c0dec45c5020d74e179925f0161b18b613

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,
Richard

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

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

Traceback:
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
39. response = get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
178. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "./freenasUI/freeadmin/middleware.py" 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/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "./freenasUI/storage/views.py" in manualsnap
777. form.commit(fs)
File "./freenasUI/storage/forms.py" in commit
1836. memory=False, quiesce=False,
File "/usr/local/lib/python3.6/site-packages/pyVmomi/VmomiSupport.py" in <lambda>
580. self.f(
(self.args + (obj,) + args), **kwargs)
File "/usr/local/lib/python3.6/site-packages/pyVmomi/VmomiSupport.py" in _InvokeMethod
386. return self._stub.InvokeMethod(self, info, args)
File "/usr/local/lib/python3.6/site-packages/pyVmomi/SoapAdapter.py" 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 about 1 year ago

feat(middlewared/vmware): catch generic exceptions

Ticket: #25543

History

#1 Updated by Dru Lavigne over 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 over 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 about 1 year 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 about 1 year ago

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

#5 Updated by William Grzybowski about 1 year 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 about 1 year ago

  • Target version changed from 11.1 to 11.1-RC1

#7 Updated by Dru Lavigne about 1 year ago

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

#8 Updated by Dru Lavigne about 1 year ago

  • Status changed from Ready For Release to Resolved

#9 Updated by Joe Maloney about 1 year ago

  • Needs QA changed from Yes to No

Also available in: Atom PDF