[sahara] Job execution page not working

Bug #1376738 reported by Sergey Reshetnyak
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Nikita Konovalov

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'

Tags: sahara
tags: added: sahara
Changed in horizon:
assignee: nobody → Nikita Konovalov (nkonovalov)
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/125927

Changed in horizon:
status: Confirmed → In Progress
Julie Pichon (jpichon)
Changed in horizon:
importance: Undecided → High
milestone: none → kilo-3
Thierry Carrez (ttx)
Changed in horizon:
milestone: kilo-3 → kilo-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/125927
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=4f947f8cb21e68f3dffbeac52ad9b1e938946060
Submitter: Jenkins
Branch: master

commit 4f947f8cb21e68f3dffbeac52ad9b1e938946060
Author: Nikita Konovalov <email address hidden>
Date: Fri Oct 3 14:48:27 2014 +0400

    [Data_processing] fix job_executions table

    The table does not crash anymore after the cluster is deleted.
    Both the cluster object and the job are queried before extending a job execution.
    When the cluster or the job are deleted 'Not available' is assigned as the name.

    Closes-Bug: #1376738
    Closes-Bug: #1391356
    Closes-Bug: #1391507
    Change-Id: Iee60572f3a6e02447a6cd8508735bbb91ec020e9

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: kilo-rc1 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.