Bug 670283 - Yum Repo sync failing for fedora channels
Summary: Yum Repo sync failing for fedora channels
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: John Matthews
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-01-17 19:12 UTC by Preethi Thomas
Modified: 2011-08-15 15:14 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-15 15:14:33 UTC
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2011-01-17 19:12:17 UTC
Description of problem:


[root@preethi ~]# rpm -q pulp
pulp-0.0.125-1.fc14.noarch


[root@preethi ~]#  pulp-admin -u admin -p admin repo create --id=f13 --name=f13 --arch=x86_64 --feed=yum:http://download.devel.redhat.com/released/F-13/GOLD/Fedora/x86_64/os/
Successfully created repository [ f13 ]

[root@preethi ~]# pulp-admin repo sync --id=f13 --foreground
Sync for repository f13 started
You can safely CTRL+C this current command and it will continue
[                            ] 0%
Sync: Error
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'NoneType'

[root@preethi ~]# pulp-admin repo sync --id=f13 -F
Sync for repository f13 started
You can safely CTRL+C this current command and it will continue
[                            ] 0%
Sync: Error
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'NoneType'

[root@preethi ~]# pulp-admin -u admin -p admin repo create --id=f14 --name=f14 --arch=x86_64 --feed=yum:http://download.devel.redhat.com/released/F-14/GOLD/Fedora/x86_64/os/  
Successfully created repository [ f14 ]

[root@preethi ~]# pulp-admin repo sync --id=f14 -FSync for repository f14 started
You can safely CTRL+C this current command and it will continue
[                            ] 0%
Sync: Error
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'NoneType'



2011-01-17 14:16:56,849 [ERROR][Dummy-2] report_error() @ base.py:61 - Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/base.py", line 57, in report_error
    return method(self, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/repositories.py", line 658, in GET
    tasks = [t for t in find_async(method_name=action_methods[action_name])
TypeError: 'NoneType' object is not callable

2011-01-17 14:16:57,983 [ERROR][Thread-69] failed() @ task.py:207 - Task id:59c4d880-226e-11e0-9bbd-002564a85a58, method_name:_sync:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pulp/server/tasking/task.py", line 131, in run
    result = self.callable(*self.args, **self.kwargs)
  File "/usr/lib/python2.7/site-packages/pulp/server/api/repo.py", line 1170, in _sync
    synchronizer)
  File "/usr/lib/python2.7/site-packages/pulp/server/api/repo_sync.py", line 93, in sync
    repo_dir = synchronizer.sync(repo, repo_source, skip_dict, progress_callback)
  File "/usr/lib/python2.7/site-packages/pulp/server/api/repo_sync.py", line 385, in sync
    report = self.yum_repo_grinder.fetchYumRepo(store_path, callback=progress_callback)
  File "/usr/lib/python2.7/site-packages/grinder/RepoFetch.py", line 308, in fetchYumRepo
    self.fetchPkgs.addItemList(self.downloadinfo)
  File "/usr/lib/python2.7/site-packages/grinder/ParallelFetch.py", line 87, in addItemList
    self.addItem(p)
  File "/usr/lib/python2.7/site-packages/grinder/ParallelFetch.py", line 82, in addItem
    self._update_totals(item)
  File "/usr/lib/python2.7/site-packages/grinder/ParallelFetch.py", line 75, in _update_totals
    self.details[item_type]["total_size_bytes"] += item["size"]
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'NoneType'

Comment 1 John Matthews 2011-01-17 19:42:52 UTC
Fixed in grinder 0.72

Commit is here:
http://git.fedorahosted.org/git/?p=grinder.git;a=commit;h=7f1388eef3d22bf28e441f71e213174583124b54

Comment 2 Jay Dobies 2011-01-17 21:33:42 UTC
Fixed in 0.126.

Comment 3 Preethi Thomas 2011-01-18 20:24:57 UTC
verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.129-1.fc14.noarch


[root@preethi ~]#  pulp-admin repo sync --id=f13 -F
Sync for repository f13 started
You can safely CTRL+C this current command and it will continue
[=========================] 100% Total: 3111/3111 items (9/9<tree_files> 3102/3102<rpms>)
0/3111 new items downloaded
3111/3111 existing items verified
Sync: Finished

Comment 4 Preethi Thomas 2011-08-15 15:14:33 UTC
Closing with current community release

pulp-0.0.223


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