[Sahara] Job executions don't show Job and Cluster for pending state

Bug #1391356 reported by Andrew Lazarev
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Nikita Konovalov

Bug Description

Steps to repro:
1. Create job execution
2. See job execution page

Job and Cluster columns contain dashes.
Logs:
The attribute job_name doesn't exist on JobExecution {u'output_id': u'91e796c9-1896-49dd-a807-5a34b0f733fb', u'info': {u'status': u'PENDING'}, u'job_id': u'02e0f0c1-6698-47cc-b0b9-439953f9b3a2', u'tenant_id': u'8e44eb2ce32b4c72b82070abbcd61ba8', u'start_time': None, u'return_code': None, u'updated_at': None, u'oozie_job_id': None, u'input_id': u'e8865f9a-f666-4df4-9612-8571d98d8ec6', u'end_time': None, u'progress': None, u'id': u'a106f3bb-b2f2-4187-9702-0de5d2a0f25d', u'cluster_id': u'04ad1b90-d04b-4b96-93f9-bd24c03f8693', u'job_configs': {u'configs': {}, u'args': [], u'params': {}}, u'created_at': u'2014-11-11 01:02:11.219366'}.
The attribute cluster_name doesn't exist on JobExecution {u'output_id': u'91e796c9-1896-49dd-a807-5a34b0f733fb', u'info': {u'status': u'PENDING'}, u'job_id': u'02e0f0c1-6698-47cc-b0b9-439953f9b3a2', u'tenant_id': u'8e44eb2ce32b4c72b82070abbcd61ba8', u'start_time': None, u'return_code': None, u'updated_at': None, u'oozie_job_id': None, u'input_id': u'e8865f9a-f666-4df4-9612-8571d98d8ec6', u'end_time': None, u'progress': None, u'id': u'a106f3bb-b2f2-4187-9702-0de5d2a0f25d', u'cluster_id': u'04ad1b90-d04b-4b96-93f9-bd24c03f8693', u'job_configs': {u'configs': {}, u'args': [], u'params': {}}, u'created_at': u'2014-11-11 01:02:11.219366'}.

3. Wait while job moved to SUCCEEDED state

Job and Cluster contain correct values.

Tags: sahara
tags: added: sahara
Changed in horizon:
assignee: nobody → Andrew Lazarev (alazarev)
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/136871

Changed in horizon:
status: New → In Progress
Changed in horizon:
assignee: Andrew Lazarev (alazarev) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by Andrew Lazarev (<email address hidden>) on branch: master
Review: https://review.openstack.org/136871
Reason: Addressed by https://review.openstack.org/#/c/125927

Changed in horizon:
assignee: nobody → Nikita Konovalov (nkonovalov)
Julie Pichon (jpichon)
Changed in horizon:
importance: Undecided → Medium
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.