Bug 994789 - When executing "beaker-sync-tasks", it shows "no attribute 'update_repo'"
Summary: When executing "beaker-sync-tasks", it shows "no attribute 'update_repo'"
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: scheduler
Version: 0.14
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: 0.15
Assignee: Amit Saha
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On: 998369
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-08 02:40 UTC by xjia
Modified: 2018-02-06 00:41 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-03 02:28:52 UTC
Embargoed:


Attachments (Terms of Use)

Description xjia 2013-08-08 02:40:11 UTC
Description of problem:
On beaker server, try to sync task from beaker production env. 

 su apache -s /bin/bash -c 'beaker-sync-tasks --debug --remote=https://beaker'

It will get the error "AttributeError: type object 'Task' has no attribute 'update_repo"

Version-Release number of selected component (if applicable):
0.14

How reproducible:
Always

Steps to Reproduce:
1.On beaker server: su apache -s /bin/bash -c 'beaker-sync-tasks --debug --remote=https://beaker...'
2.
3.

Actual results:
2013-08-06 23:46:24,228 - Creating repodata..
Traceback (most recent call last):
  File "/usr/bin/beaker-sync-tasks", line 9, in <module>
    load_entry_point('bkr.server==0.14.0', 'console_scripts', 'beaker-sync-tasks')()
  File "/usr/lib/python2.6/site-packages/bkr/server/tools/sync_tasks.py", line 338, in main
    task_sync.tasks_add(new_tasks, old_tasks)
  File "/usr/lib/python2.6/site-packages/bkr/server/tools/sync_tasks.py", line 275, in tasks_add
    self.update_db()
  File "/usr/lib/python2.6/site-packages/bkr/server/tools/sync_tasks.py", line 209, in update_db
    Task.update_repo()
AttributeError: type object 'Task' has no attribute 'update_repo'


Expected results:
No such error

Additional info:

Comment 2 Amit Saha 2013-09-03 02:51:56 UTC
On Gerrit: http://gerrit.beaker-project.org/#/c/2203/2

Comment 5 Nick Coghlan 2013-10-03 02:28:52 UTC
Beaker 0.15 has been released.


Note You need to log in before you can comment on or make changes to this bug.