Project

General

Profile

Bug #26083

Fix S3 cloud credentials traceback

Added by Vaibhav Chauhan almost 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
No priority
Assignee:
William Grzybowski
Category:
Middleware
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

so in order to reproduce this issue

go to amazon S3 cloud credentials
add an Account Name,
add Access Key
add Secret Key

click ok

Oct  5 09:55:58 freenas uwsgi: [freeadmin.views:210] UI crash exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 42, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
    response = self._get_response(request)
  File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 178, in _get_response
    response = middleware_method(request, callback, callback_args, callback_kwargs)
  File "./freenasUI/freeadmin/middleware.py", line 162, in process_view
    return login_required(view_func)(request, *view_args, **view_kwargs)
  File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "./freenasUI/freeadmin/options.py", line 209, in wrapper
    return self._admin.admi
Oct  5 09:55:58 freenas uwsgi: n_view(view)(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/django/utils/decorators.py", line 149, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "./freenasUI/freeadmin/site.py", line 142, in inner
    return view(request, *args, **kwargs)
  File "./freenasUI/freeadmin/options.py", line 348, in add
    valid &= mf.is_valid(formsets=formsets)
  File "./freenasUI/common/forms.py", line 144, in is_valid
    valid = super(ModelForm, self).is_valid()
  File "/usr/local/lib/python3.6/site-packages/django/forms/forms.py", line 169, in is_valid
    return self.is_bound and not self.errors
  File "/usr/local/lib/python3.6/site-packages/django/forms/forms.py", line 161, in errors
    self.full_clean()
  File "/usr/local/lib/python3.6/site-pa
Oct  5 09:55:58 freenas uwsgi: ckages/django/forms/forms.py", line 370, in full_clean
    self._clean_fields()
  File "/usr/local/lib/python3.6/site-packages/django/forms/forms.py", line 391, in _clean_fields
    value = getattr(self, 'clean_%s' % name)()
  File "./freenasUI/system/forms.py", line 3441, in clean_GCLOUD_keyfile
    keyfile = keyfile.read()
AttributeError: 'NoneType' object has no attribute 'read'

Associated revisions

Revision 43ed3b11 (diff)
Added by William Grzybowski almost 4 years ago

fix(gui): google cloud keyfile can be empty Ticket: #26083

History

#1 Updated by Vaibhav Chauhan almost 4 years ago

Build FreeNAS-11-MASTER-201710030506

#2 Updated by William Grzybowski almost 4 years ago

  • Status changed from Unscreened to Ready For Release

#3 Updated by Dru Lavigne almost 4 years ago

  • Subject changed from trying to create a S3 Cloud Cred entry, it fails on me with the following to Fix S3 cloud credentials traceback

#4 Updated by Dru Lavigne almost 4 years ago

  • Status changed from Ready For Release to Resolved

Also available in: Atom PDF