← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1427289] [NEW] [sahara] Back trace when a job binary is created using an existing script

 

Public bug reported:

>From "Create Job Binary", add a valid name, "storage type" internal, and
choose an existing job binary (neither "upload...", nor "create..." in
the "Internal Binary" box. The following backtrace can be seen in
Horizon logs:

[02/Mar/2015 16:24:14] "POST /project/data_processing/job_binaries/create-job-binary HTTP/1.1" 200 6462
Internal Server Error: /project/data_processing/job_binaries/create-job-binary
Traceback (most recent call last):
  File "/home/toscano/OpenStack/code/os/openstack/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/toscano/OpenStack/code/os/openstack/horizon/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/home/toscano/OpenStack/code/os/openstack/horizon/horizon/decorators.py", line 52, in dec
    return view_func(request, *args, **kwargs)
  File "/home/toscano/OpenStack/code/os/openstack/horizon/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/home/toscano/OpenStack/code/os/openstack/horizon/horizon/decorators.py", line 84, in dec
    return view_func(request, *args, **kwargs)
  File "/home/toscano/OpenStack/code/os/openstack/horizon/.venv/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/toscano/OpenStack/code/os/openstack/horizon/.venv/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
    return handler(request, *args, **kwargs)
  File "/home/toscano/OpenStack/code/os/openstack/horizon/.venv/lib/python2.7/site-packages/django/views/generic/edit.py", line 171, in post
    return self.form_valid(form)
  File "/home/toscano/OpenStack/code/os/openstack/horizon/horizon/forms/views.py", line 173, in form_valid
    exceptions.handle(self.request)
  File "/home/toscano/OpenStack/code/os/openstack/horizon/horizon/exceptions.py", line 364, in handle
    six.reraise(exc_type, exc_value, exc_traceback)
  File "/home/toscano/OpenStack/code/os/openstack/horizon/horizon/forms/views.py", line 170, in form_valid
    handled = form.handle(self.request, form.cleaned_data)
  File "/home/toscano/OpenStack/code/os/openstack/horizon/openstack_dashboard/dashboards/project/data_processing/job_binaries/forms.py", line 183, in handle
    _("Unable to create job binary"))
  File "/home/toscano/OpenStack/code/os/openstack/horizon/horizon/exceptions.py", line 364, in handle
    six.reraise(exc_type, exc_value, exc_traceback)
  File "/home/toscano/OpenStack/code/os/openstack/horizon/openstack_dashboard/dashboards/project/data_processing/job_binaries/forms.py", line 169, in handle
    bin_url = self.handle_internal(request, context)
  File "/home/toscano/OpenStack/code/os/openstack/horizon/openstack_dashboard/dashboards/project/data_processing/job_binaries/forms.py", line 229, in handle_internal
    bin_id = result.id
AttributeError: 'str' object has no attribute 'id'
[02/Mar/2015 16:25:44] "POST /project/data_processing/job_binaries/create-job-binary HTTP/1.1" 500 39108

Reproduced on current Horizon git master.

** Affects: horizon
     Importance: Undecided
         Status: Confirmed


** Tags: 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/1427289

Title:
  [sahara] Back trace when a job binary is created using an existing
  script

Status in OpenStack Dashboard (Horizon):
  Confirmed

Bug description:
  From "Create Job Binary", add a valid name, "storage type" internal,
  and choose an existing job binary (neither "upload...", nor
  "create..." in the "Internal Binary" box. The following backtrace can
  be seen in Horizon logs:

  [02/Mar/2015 16:24:14] "POST /project/data_processing/job_binaries/create-job-binary HTTP/1.1" 200 6462
  Internal Server Error: /project/data_processing/job_binaries/create-job-binary
  Traceback (most recent call last):
    File "/home/toscano/OpenStack/code/os/openstack/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/toscano/OpenStack/code/os/openstack/horizon/horizon/decorators.py", line 36, in dec
      return view_func(request, *args, **kwargs)
    File "/home/toscano/OpenStack/code/os/openstack/horizon/horizon/decorators.py", line 52, in dec
      return view_func(request, *args, **kwargs)
    File "/home/toscano/OpenStack/code/os/openstack/horizon/horizon/decorators.py", line 36, in dec
      return view_func(request, *args, **kwargs)
    File "/home/toscano/OpenStack/code/os/openstack/horizon/horizon/decorators.py", line 84, in dec
      return view_func(request, *args, **kwargs)
    File "/home/toscano/OpenStack/code/os/openstack/horizon/.venv/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
      return self.dispatch(request, *args, **kwargs)
    File "/home/toscano/OpenStack/code/os/openstack/horizon/.venv/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
      return handler(request, *args, **kwargs)
    File "/home/toscano/OpenStack/code/os/openstack/horizon/.venv/lib/python2.7/site-packages/django/views/generic/edit.py", line 171, in post
      return self.form_valid(form)
    File "/home/toscano/OpenStack/code/os/openstack/horizon/horizon/forms/views.py", line 173, in form_valid
      exceptions.handle(self.request)
    File "/home/toscano/OpenStack/code/os/openstack/horizon/horizon/exceptions.py", line 364, in handle
      six.reraise(exc_type, exc_value, exc_traceback)
    File "/home/toscano/OpenStack/code/os/openstack/horizon/horizon/forms/views.py", line 170, in form_valid
      handled = form.handle(self.request, form.cleaned_data)
    File "/home/toscano/OpenStack/code/os/openstack/horizon/openstack_dashboard/dashboards/project/data_processing/job_binaries/forms.py", line 183, in handle
      _("Unable to create job binary"))
    File "/home/toscano/OpenStack/code/os/openstack/horizon/horizon/exceptions.py", line 364, in handle
      six.reraise(exc_type, exc_value, exc_traceback)
    File "/home/toscano/OpenStack/code/os/openstack/horizon/openstack_dashboard/dashboards/project/data_processing/job_binaries/forms.py", line 169, in handle
      bin_url = self.handle_internal(request, context)
    File "/home/toscano/OpenStack/code/os/openstack/horizon/openstack_dashboard/dashboards/project/data_processing/job_binaries/forms.py", line 229, in handle_internal
      bin_id = result.id
  AttributeError: 'str' object has no attribute 'id'
  [02/Mar/2015 16:25:44] "POST /project/data_processing/job_binaries/create-job-binary HTTP/1.1" 500 39108

  Reproduced on current Horizon git master.

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


Follow ups

References