Bug 1262109 - clicking 'stop' button for a test causes AttributeError
Summary: clicking 'stop' button for a test causes AttributeError
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Certification Program
Classification: Red Hat
Component: redhat-certification
Version: 1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Greg Nichols
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-10 20:10 UTC by Brian Brock
Modified: 2015-11-19 16:36 UTC (History)
1 user (show)

Fixed In Version: redhat-certification-2.0-20150911
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 16:36:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2479 0 normal SHIPPED_LIVE redhat-certification bug fix and enhancement update 2015-11-19 21:34:15 UTC

Description Brian Brock 2015-09-10 20:10:05 UTC
when running a test, clicking the 'stop' button results in an AttributeError that is not handled.

redhat-certification-2.0-20150909.el6
redhat-certification-hardware-1.6.6-20150901.el6

no workaround yet

Steps to Reproduce:
1. install on a laptop system (with mandatory 'suspend' test)
2. create a certification with a host attached
3. run a test
4. click 'stop' to abort the suspend test (there's no other way to bypass it in the web ui).

Actual results:
Environment:


Request Method: POST
Request URL: http://$LTS/interactive

Django Version: 1.8.4
Python Version: 2.7.5
Installed Applications:
('django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.messages',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.staticfiles',
 'application')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware')


Traceback:
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  132.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/var/www/rhcert/application/views.py" in interactive
  108.     return Interactive().serve(request, "interactive.html")
File "/var/www/rhcert/wsgi/view.py" in serve
  40.         result = self.view(request)
File "/var/www/rhcert/wsgi/interactive.py" in view
  44.             errors = self.restartHost()

Exception Type: AttributeError at /interactive
Exception Value: 'Interactive' object has no attribute 'restartHost'


Expected results:
test stops, bypassing suspend test.

Additional info:

Comment 2 Greg Nichols 2015-09-11 12:20:53 UTC
Also, Re-labeling the button to "restart", because that's what it does.

Comment 4 Brian Brock 2015-09-16 21:31:21 UTC
verified in redhat-certification-2.0-20150916.el7

using the 'restart' button does not trigger a python error with backtrace.

Comment 6 errata-xmlrpc 2015-11-19 16:36:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2479.html


Note You need to log in before you can comment on or make changes to this bug.