← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1376738] [NEW] [sahara] Job execution page not working

 

Public bug reported:

Steps to reproduce:
1. Create Sahara cluster.
2. Launch EDP job to cluster.
3. Delete cluster.
4. Go to "Job execution" page.

Error:
Internal Server Error: /project/data_processing/job_executions/
Traceback (most recent call last):
  File "/home/serg/projects/horizon/.venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/serg/projects/horizon/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/home/serg/projects/horizon/horizon/decorators.py", line 52, in dec
    return view_func(request, *args, **kwargs)
  File "/home/serg/projects/horizon/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/home/serg/projects/horizon/horizon/decorators.py", line 84, in dec
    return view_func(request, *args, **kwargs)
  File "/home/serg/projects/horizon/.venv/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/serg/projects/horizon/.venv/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
    return handler(request, *args, **kwargs)
  File "/home/serg/projects/horizon/horizon/tables/views.py", line 157, in get
    handled = self.construct_tables()
  File "/home/serg/projects/horizon/horizon/tables/views.py", line 148, in construct_tables
    handled = self.handle_table(table)
  File "/home/serg/projects/horizon/horizon/tables/views.py", line 120, in handle_table
    data = self._get_data_dict()
  File "/home/serg/projects/horizon/horizon/tables/views.py", line 185, in _get_data_dict
    self._data = {self.table_class._meta.name: self.get_data()}
  File "/home/serg/projects/horizon/openstack_dashboard/dashboards/project/data_processing/job_executions/views.py", line 43, in get_data
    _("Unable to fetch job executions."))
  File "/home/serg/projects/horizon/horizon/exceptions.py", line 334, in handle
    six.reraise(exc_type, exc_value, exc_traceback)
  File "/home/serg/projects/horizon/openstack_dashboard/dashboards/project/data_processing/job_executions/views.py", line 39, in get_data
    jobs = saharaclient.job_execution_list(self.request)
  File "/home/serg/projects/horizon/openstack_dashboard/api/sahara.py", line 299, in job_execution_list
    setattr(jex, 'cluster_name', cluster_dict.get(jex.cluster_id).name)
AttributeError: 'NoneType' object has no attribute 'name'

** Affects: horizon
     Importance: Undecided
         Status: New


** Tags: sahara

** Tags added: sahara

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1376738

Title:
  [sahara] Job execution page not working

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Steps to reproduce:
  1. Create Sahara cluster.
  2. Launch EDP job to cluster.
  3. Delete cluster.
  4. Go to "Job execution" page.

  Error:
  Internal Server Error: /project/data_processing/job_executions/
  Traceback (most recent call last):
    File "/home/serg/projects/horizon/.venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response
      response = wrapped_callback(request, *callback_args, **callback_kwargs)
    File "/home/serg/projects/horizon/horizon/decorators.py", line 36, in dec
      return view_func(request, *args, **kwargs)
    File "/home/serg/projects/horizon/horizon/decorators.py", line 52, in dec
      return view_func(request, *args, **kwargs)
    File "/home/serg/projects/horizon/horizon/decorators.py", line 36, in dec
      return view_func(request, *args, **kwargs)
    File "/home/serg/projects/horizon/horizon/decorators.py", line 84, in dec
      return view_func(request, *args, **kwargs)
    File "/home/serg/projects/horizon/.venv/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
      return self.dispatch(request, *args, **kwargs)
    File "/home/serg/projects/horizon/.venv/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
      return handler(request, *args, **kwargs)
    File "/home/serg/projects/horizon/horizon/tables/views.py", line 157, in get
      handled = self.construct_tables()
    File "/home/serg/projects/horizon/horizon/tables/views.py", line 148, in construct_tables
      handled = self.handle_table(table)
    File "/home/serg/projects/horizon/horizon/tables/views.py", line 120, in handle_table
      data = self._get_data_dict()
    File "/home/serg/projects/horizon/horizon/tables/views.py", line 185, in _get_data_dict
      self._data = {self.table_class._meta.name: self.get_data()}
    File "/home/serg/projects/horizon/openstack_dashboard/dashboards/project/data_processing/job_executions/views.py", line 43, in get_data
      _("Unable to fetch job executions."))
    File "/home/serg/projects/horizon/horizon/exceptions.py", line 334, in handle
      six.reraise(exc_type, exc_value, exc_traceback)
    File "/home/serg/projects/horizon/openstack_dashboard/dashboards/project/data_processing/job_executions/views.py", line 39, in get_data
      jobs = saharaclient.job_execution_list(self.request)
    File "/home/serg/projects/horizon/openstack_dashboard/api/sahara.py", line 299, in job_execution_list
      setattr(jex, 'cluster_name', cluster_dict.get(jex.cluster_id).name)
  AttributeError: 'NoneType' object has no attribute 'name'

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1376738/+subscriptions


Follow ups

References