Bug 1145295
| Summary: | Specifying kernel version during vmcore submission results in 'Internal Server Error' | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora EPEL | Reporter: | Dave Wysochanski <dwysocha> | ||||
| Component: | retrace-server | Assignee: | Radek Vokál <rvokal> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | urgent | ||||||
| Version: | el6 | CC: | dwysocha, harshula, jfilak, sbarcomb | ||||
| Target Milestone: | --- | Keywords: | Patch, Regression | ||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | retrace-server-1.12-3.el6 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2016-06-03 07:23:54 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: | |||||||
| Attachments: |
|
||||||
|
Description
Dave Wysochanski
2014-09-22 18:42:20 UTC
The most obvious bug to check would be this patch to clarify 'kernel VRA': https://bugzilla.redhat.com/show_bug.cgi?id=1080702#c2 (In reply to Dave Wysochanski from comment #1) > The most obvious bug to check would be this patch to clarify 'kernel VRA': > https://bugzilla.redhat.com/show_bug.cgi?id=1080702#c2 The above doesn't look relevant. FWIW, from what I can tell, something in this list caused the regression: a12f064 increase version to 1.12 dc055c6 rs-interact: set finish time if necessary f4cffef rs-cleanup: add config sanity checks e9dbe45 add kernel version example where applicable 4cdd713 forward kwargs in task.start() d8168b6 rs-interact: add 'set-success' and 'set-fail' actions 91a6d6c add arch-based remote execution 42db064 retrace-server.conf: clarify cleanup options 134f279 get_kernel_release: do not match 'OSRELEASE=%s' Just guessing but probably ones to look at: commit 4cdd713d73dde059593d37fca553fb3bc9fb7492 Author: Michal Toman <mtoman> Date: Wed Jul 30 10:45:59 2014 +0200 forward kwargs in task.start() Signed-off-by: Michal Toman <mtoman> commit 91a6d6cd772cfb950f933a032a3212f80cf2e514 Author: Michal Toman <mtoman> Date: Wed Jun 11 14:34:15 2014 +0200 add arch-based remote execution Signed-off-by: Michal Toman <mtoman> https://docs.python.org/2/library/functions.html#str "Return a string containing a nicely printable representation of an object." ------------------------------------------------------- commit 91a6d6cd772cfb950f933a032a3212f80cf2e514 Author: Michal Toman <mtoman> Date: Wed Jun 11 14:34:15 2014 +0200 add arch-based remote execution Signed-off-by: Michal Toman <mtoman> @@ -122,15 +121,13 @@ def application(environ, start_response): except Exception as ex: return response(start_response, "403 Forbidden", _("Please use - cmdline.append("--kernelver") - cmdline.append(str(kernelver)) - cmdline.append("--arch") - cmdline.append(kernelver.arch) + kernelver = str(kernelver) + arch = kernelver.arch if "notify" in get: task.set_notify(filter(None, set(n.strip() for n in get["notify"][0 - call(cmdline) + task.start(debug=debug, kernelver=kernelver, arch=arch) # ugly, ugly, ugly! retrace-server-worker double-forks and needs a whil time.sleep(2) ------------------------------------------------------- Fix?: ------------------------------------------------------- From d93dd3e8a7b00823541b7cec4431a11841ea363c Mon Sep 17 00:00:00 2001 From: Harshula Jayasuriya <harshula> Date: Tue, 23 Sep 2014 11:49:00 +1000 Subject: [PATCH] manager.wsgi: Don't treat a string as an object Error: Traceback (most recent call last): File "/usr/share/retrace-server/manager.wsgi", line 125, in application arch = kernelver.arch AttributeError: 'str' object has no attribute 'arch' Grab the arch from kernelver before it's made into a string. --- src/manager.wsgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manager.wsgi b/src/manager.wsgi index fcd4b7e..d1765f3 100644 --- a/src/manager.wsgi +++ b/src/manager.wsgi @@ -121,8 +121,8 @@ def application(environ, start_response): except Exception as ex: return response(start_response, "403 Forbidden", _("Please use VRA format for kernel version (e.g. 2.6.32-287.el6.x86_64)")) - kernelver = str(kernelver) arch = kernelver.arch + kernelver = str(kernelver) if "notify" in get: task.set_notify(filter(None, set(n.strip() for n in get["notify"][0].replace(";", ",").split(",")))) -- 1.9.3 ------------------------------------------------------- Created attachment 940403 [details]
Don't treat a string as an object
(In reply to Harshula Jayasuriya from comment #4) > Created attachment 940403 [details] > Don't treat a string as an object Thx Harshula! Need more sleep, and/or read the apache error log more carefully! And FWIW, verified on optimus-dev just now. Acked-by: Dave Wysochanski <dwysocha> Michal - can we get this 1-line fix into a retrace-server build (maybe 1.12-3.el6) so we can get the latest code into production? Or do you have other concerns about some of the patches? Sorry for not looking at this earlier. The patch looks good, I've merged it upstream. (In reply to Michal Toman from comment #7) > Sorry for not looking at this earlier. The patch looks good, I've merged it > upstream. No problem - thanks for merging. Will do sanity testing with retrace-server-1.12-3.el6.noarch.rpm in dev then move to production ASAP. Looks fixed in retrace-server-1.12-3.el6.noarch.rpm The fix is definitely committed in upstream:
commit 702a09da52b59edf712c23e80770964af4381688
Author: Harshula Jayasuriya <harshula>
Date: Tue Sep 23 11:49:00 2014 +1000
manager.wsgi: Don't treat a string as an object
Error:
Traceback (most recent call last):
File "/usr/share/retrace-server/manager.wsgi", line 125, in application
arch = kernelver.arch
AttributeError: 'str' object has no attribute 'arch'
Grab the arch from kernelver before it's made into a string.
Dave's confirmed that it is fixed in retrace-server-1.12-3.el6.noarch.rpm.
Is that everything, should this BZ be closed now?
|