| Summary: | Repeat build throws TB | ||
|---|---|---|---|
| Product: | [Community] Copr | Reporter: | Miroslav Suchý <msuchy> |
| Component: | backend | Assignee: | Adam Samalik <asamalik> |
| Status: | CLOSED WORKSFORME | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | msuchy |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-06-12 08:26:55 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: | |
I couldn't reproduce this - there is no cancel button. However, I tried this directly with link .../repeat_build/<build-id> and it worked fine. |
Description of problem: When some job is stuck (started, but not finished) and you hit "Repeat" button. You will get traceback: Message type: ERROR Location: /usr/lib/python2.7/site-packages/flask/app.py:1306 Module: app Function: log_exception Time: 2013-12-04 14:16:06,722 Message: Exception on /coprs/msuchy/foo/repeat_build/25/ [POST] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/flask/app.py", line 1687, in wsgi_app response = self.full_dispatch_request() File "/usr/lib/python2.7/site-packages/flask/app.py", line 1360, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/lib/python2.7/site-packages/flask/app.py", line 1358, in full_dispatch_request rv = self.dispatch_request() File "/usr/lib/python2.7/site-packages/flask/app.py", line 1344, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/usr/share/copr/coprs_frontend/coprs/views/misc.py", line 121, in decorated_function return f(*args, **kwargs) File "/usr/share/copr/coprs_frontend/coprs/views/coprs_ns/coprs_builds.py", line 105, in copr_repeat_build setattr(new_build, a, getattr(build, a)) File "/usr/lib64/python2.7/site-packages/sqlalchemy/ext/associationproxy.py", line 270, in __set__ self._set(proxy, values) File "/usr/lib64/python2.7/site-packages/sqlalchemy/ext/associationproxy.py", line 338, in _set proxy.extend(values) File "/usr/lib64/python2.7/site-packages/sqlalchemy/ext/associationproxy.py", line 576, in extend self.append(v) File "/usr/lib64/python2.7/site-packages/sqlalchemy/ext/associationproxy.py", line 567, in append item = self._create(value) File "/usr/lib64/python2.7/site-packages/sqlalchemy/ext/associationproxy.py", line 494, in _create return self.creator(value) TypeError: __init__() takes exactly 1 argument (2 given)