Uploaded image for project: 'Hue (READ ONLY)'
  1. Hue (READ ONLY)
  2. HUE-9598

Ceph S3 Access not working with Hue on Kubernetes

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 4.8.0
    • Fix Version/s: None
    • Component/s: con.aws
    • Labels:
      None
    • Environment:

      Description

      When trying to access Ceph S3 from Hue, we're seeing this error. Note that region is configured as "None" as we do not have any region.

      [26/Nov/2020 20:19:19 -0800] middleware INFO Processing exception: S3 filesystem exception.: Traceback (most recent call last):
      File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/core/handlers/base.py", line 185, in _get_response
      response = wrapped_callback(request, *callback_args, **callback_kwargs)
      File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/utils/decorators.py", line 185, in inner
      return func(*args, **kwargs)
      File "/usr/share/hue/apps/filebrowser/src/filebrowser/views.py", line 226, in view
      raise PopupException(msg, detail=e)
      PopupException: S3 filesystem exception.
      [26/Nov/2020 20:19:19 -0800] exceptions_renderable ERROR Potential trace: [('/usr/share/hue/apps/filebrowser/src/filebrowser/views.py', 215, 'view', 'return listdir_paged(request, path)'), ('/usr/share/hue/apps/filebrowser/src/filebrowser/views.py', 471, 'listdir_paged', 'all_stats = request.fs.do_as_user(do_as, request.fs.listdir_stats, path)'), ('/usr/share/hue/desktop/core/src/desktop/lib/fs/proxyfs.py', 129, 'do_as_user', 'return fn(*args, **kwargs)'), ('/usr/share/hue/desktop/core/src/desktop/lib/fs/proxyfs.py', 151, 'listdir_stats', 'return self._get_fs(path).listdir_stats(path, **kwargs)'), ('/usr/share/hue/desktop/libs/aws/src/aws/s3/__init__.py', 54, 'wrapped', 'return fn(*args, **kwargs)'), ('/usr/share/hue/desktop/libs/aws/src/aws/s3/s3fs.py', 309, 'listdir_stats', "raise S3FileSystemException(_('Failed to retrieve buckets: %s') % e)")]
      [26/Nov/2020 20:19:19 -0800] exceptions_renderable ERROR Potential detail: Failed to retrieve buckets: local variable 'region_name' referenced before assignment
      [26/Nov/2020 20:19:19 -0800] auth DEBUG CanonicalRequest:
      GET

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              abhisrao Abhishek
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: