Bug 1422410
| Summary: | Exception: <Fault 1: "<type 'exceptions.TypeError'>:append() got an unexpected keyword argument 'osmajor'"> | ||
|---|---|---|---|
| Product: | [Retired] Beaker | Reporter: | Jan Stancek <jstancek> |
| Component: | general | Assignee: | Dan Callaghan <dcallagh> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Dan Callaghan <dcallagh> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 24 | CC: | asavkov, bpeck, dcallagh, jburke, jracek, liwan, mjia, pbunyan, pstudeni, rjoost |
| Target Milestone: | 24.1 | Keywords: | Patch, Regression |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-02-28 16:50:38 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
Jan Stancek
2017-02-15 09:13:51 UTC
The bug is only triggered when the task is introducing new excluded osmajors using the Releases: field in metadata (this includes a task which has an inclusion list which is translated to an exclusion list on the server side). So one possible workaround is to upload your task with Releases: commented out. Complete tb:
bkr.server.tasks ERROR Failed to import kernel-kernel-distribution-ltp-include-20170116-7.noarch.rpm
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/bkr/server/tasks.py", line 214, in save
task = Task.update_task(task_rpm.filename, write_data)
File "/usr/lib/python2.6/site-packages/bkr/server/model/tasklibrary.py", line 382, in update_task
return cls.library.update_task(rpm_name, write_rpm)
File "/usr/lib/python2.6/site-packages/bkr/server/model/tasklibrary.py", line 178, in update_task
tasks = self.update_tasks([(rpm_name, write_rpm)])
File "/usr/lib/python2.6/site-packages/bkr/server/model/tasklibrary.py", line 224, in update_tasks
task, downgrade = Task.create_from_taskinfo(self.read_taskinfo(f))
File "/usr/lib/python2.6/site-packages/bkr/server/model/tasklibrary.py", line 450, in create_from_taskinfo
task.excluded_osmajors.append(osmajor=OSMajor.by_name_alias(family))
TypeError: append() got an unexpected keyword argument 'osmajor'
Yes good point, I will cut 24.1 now. Beaker 24.1 has been released. |