Hide Forgot
Description of problem: Sometimes the Web-UI does strange things. I'm testing a machine and due to FAIL in the results I try to repeat the test several times. But then, suddenly after the test was finished, I don't see the "Continue Testing" button but I see a "Create new test run" button instead. If I click on that a results file with status "new" will be added and then I see this "Create new test run" button again. Version-Release number of selected component (if applicable): 4.0 How reproducible: Sporadically Steps to Reproduce: 1. Do the same test several times again 2. 3. Actual results: Suddenly instead of "Continue testing" the "Create new test run" button appears and you're in a loop, creating lots of new test runs. Expected results: Can alyways continue testing. Additional info: Those extra empty result files seem also to affect the Web-UI. In some cases I see a "Continue testing" button, but if I press it all I get is an error message with this traceback from Python: --------------8<-snip----------------- Environment: Request Method: POST Request URL: http://192.168.2.3/certification/hardware/42/192.168.2.138/2016-11-03%2008:07:49/testing/ 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 activity_testing 132. return Testing().serve(request, 'activity-testing.html', program, certID, host, time) File "/var/www/rhcert/wsgi/testing.py" in serve 31. return Certification.serve(self, request, template, program, certID) File "/var/www/rhcert/wsgi/certification.py" in serve 38. return Product.serve(self, request, template, vendorID, productID) File "/var/www/rhcert/wsgi/product.py" in serve 27. return View.serve(self, request, template) File "/var/www/rhcert/wsgi/view.py" in serve 51. result = self.view(request) File "/var/www/rhcert/wsgi/testing.py" in view 46. self.initializeView(request) File "/var/www/rhcert/wsgi/testing.py" in initializeView 43. self.testHost = Host(self.resultsDocument.getOS(Tags.hostname), ipAddress=self.resultsDocument.getOS(Tags.ip_address)) Exception Type: AttributeError at /certification/hardware/42/192.168.2.138/2016-11-03 08:07:49/testing/ Exception Value: 'NoneType' object has no attribute 'getOS' --------------8<-snip----------------- This problem disappears when I delete the "empty" test results file.