Bug 1262109

Summary: clicking 'stop' button for a test causes AttributeError
Product: Red Hat Certification Program Reporter: Brian Brock <bbrock>
Component: redhat-certificationAssignee: Greg Nichols <gnichols>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0CC: brose
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: redhat-certification-2.0-20150911 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 16:36:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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